@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | /** @var string|NULL */ |
| 17 | 17 | protected $lang = NULL; |
| 18 | 18 | |
| 19 | - function getLang(): ?string { |
|
| 19 | + function getLang(): ? string { |
|
| 20 | 20 | return $this->lang; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $this->lang = $lang; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - function resolve(): ?string { |
|
| 27 | + function resolve(): ? string { |
|
| 28 | 28 | return $this->getLang(); |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * |
| 19 | 19 | * @return NULL |
| 20 | 20 | */ |
| 21 | - function resolve(): ?string { |
|
| 21 | + function resolve(): ? string { |
|
| 22 | 22 | return NULL; |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -12,6 +12,6 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * Resolve language |
| 14 | 14 | */ |
| 15 | - function resolve(): ?string; |
|
| 15 | + function resolve(): ? string; |
|
| 16 | 16 | } |
| 17 | 17 | ?> |
| 18 | 18 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Bridges\Tracy; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Loaders; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $this[] = $resolver; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - function resolve(): ?string { |
|
| 24 | + function resolve(): ? string { |
|
| 25 | 25 | foreach($this as $resolver) { |
| 26 | 26 | $lang = $resolver->resolve(); |
| 27 | 27 | if(!is_null($lang)) { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** @var string */ |
| 18 | 18 | protected $varName = "TRANSLATOR_LANGUAGE"; |
| 19 | 19 | |
| 20 | - function getLang(): ?string { |
|
| 20 | + function getLang(): ? string { |
|
| 21 | 21 | $lang = getenv($this->varName); |
| 22 | 22 | if($lang) { |
| 23 | 23 | return $lang; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $this->varName = $varName; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - function resolve(): ?string { |
|
| 40 | + function resolve(): ? string { |
|
| 41 | 41 | return $this->getLang(); |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Nexendrie\Translation\Resolvers; |
| 5 | 5 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $this->section = $session->getSection(get_class($this)); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - function getLang(): ?string { |
|
| 38 | + function getLang(): ? string { |
|
| 39 | 39 | if(empty($this->section->{$this->varName})) { |
| 40 | 40 | return NULL; |
| 41 | 41 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Resolve language |
| 59 | 59 | */ |
| 60 | - function resolve(): ?string { |
|
| 60 | + function resolve(): ? string { |
|
| 61 | 61 | return $this->getLang(); |
| 62 | 62 | } |
| 63 | 63 | } |