Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 7, 2024
1 parent d6b6326 commit 39d84ac
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use LaravelLang\Routes\Middlewares\LocalizationByParameterWithRedirect;
use LaravelLang\Routes\Middlewares\LocalizationBySession;

app('router')
->middleware(LocalizationByParameterWithRedirect::class)
Expand Down
1 change: 0 additions & 1 deletion docs/snippets/models-usage-delete-base-model.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use App\Models\Article;
use LaravelLang\LocaleList\Locale;

$page = Article::first();

Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-cyclic-di.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected TranslateService $translate
) {}
) {
}

public function get1(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-deepl-direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Deepl $deepl
) {}
) {
}

public function fromString(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-deepl-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Translate $translator
) {}
) {
}

public function fromString(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-google-direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Google $google
) {}
) {
}

public function fromString(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-google-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Translate $translator
) {}
) {
}

public function fromString(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-yandex-direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Yandex $yandex
) {}
) {
}

public function fromString(): string
{
Expand Down
3 changes: 2 additions & 1 deletion docs/snippets/translator-usage-yandex-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Example
{
public function __construct(
protected Translate $translator
) {}
) {
}

public function fromString(): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/available.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function translate(Xml $dom, DOMElement &$chapter, string $locale, string $text)
foreach (Locale::values() as $locale) {
echo $locale . '...' . PHP_EOL;

$english = LocaleNames::get('en')[$locale];
$english = LocaleNames::get('en')[$locale];
$localized = LocaleNames::get($locale)[$locale];

$chapter = $dom->makeItem('chapter', '', [
Expand Down
3 changes: 1 addition & 2 deletions src/releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function request(string $uri, ?array $default = null): ?array
}

return $default;
}
catch (Throwable) {
} catch (Throwable) {
return $default;
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
$dom->doctype('topic', '', 'https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd');

$snippet = $dom->makeItem('snippet', '', ['id' => 'our-team']);
$table = $dom->makeItem('table', '');
$table = $dom->makeItem('table', '');

$headers = $dom->makeItem('tr', '');

Expand Down Expand Up @@ -188,9 +188,9 @@

$row = $dom->makeItem('tr', '');

$tableLocale = $dom->makeItem('td', '');
$tableLocale = $dom->makeItem('td', '');
$tablePackages = $dom->makeItem('td', '');
$tablePeoples = $dom->makeItem('td', '');
$tablePeoples = $dom->makeItem('td', '');

$localeLink = $dom->makeItem('a', $locale, [
'href' => 'available-locales-list.topic#lists-available-locales-' . $locale,
Expand All @@ -199,7 +199,7 @@

$tableLocale->appendChild($block($localeLink));

$paragraph = $dom->makeItem('p', '');
$paragraph = $dom->makeItem('p', '');
$lastPackage = array_key_last($packages);

foreach ($packages as $name => $package) {
Expand Down

0 comments on commit 39d84ac

Please sign in to comment.