Skip to content

Commit 27749bc

Browse files
committed
use strict
1 parent 5396c33 commit 27749bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+134
-3
lines changed

config/translator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use Elegantly\Translator\Drivers\PhpDriver;
46
use Elegantly\Translator\Support\LocaleValidator;
57

pint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"declare_strict_types": true,
5+
"explicit_string_variable": true,
6+
"mb_str_functions": true
7+
}
8+
}

src/Caches/SearchCodeCache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Caches;
46

57
use Illuminate\Contracts\Filesystem\Filesystem;

src/Collections/JsonTranslations.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Collections;
46

57
use Elegantly\Translator\Drivers\JsonDriver;

src/Collections/PhpTranslations.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Collections;
46

57
use Elegantly\Translator\Drivers\PhpDriver;

src/Collections/Translations.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Collections;
46

57
use Elegantly\Translator\Drivers\Driver;

src/Commands/AddLocaleCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Commands;
46

57
use Illuminate\Contracts\Console\PromptsForMissingInput;

src/Commands/ClearCacheCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Commands;
46

57
use Elegantly\Translator\Facades\Translator;

src/Commands/DeadCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Commands;
46

57
use Illuminate\Contracts\Console\PromptsForMissingInput;

src/Commands/LocalesCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Elegantly\Translator\Commands;
46

57
use Illuminate\Contracts\Console\PromptsForMissingInput;

0 commit comments

Comments
 (0)