| @@ -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 | - public function resolve(): ?string; | |
| 15 | + public function resolve(): ? string; | |
| 16 | 16 | } | 
| 17 | 17 | ?> | 
| 18 | 18 | \ No newline at end of file | 
| @@ -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 | -  public function getLang(): ?string { | |
| 38 | +  public function getLang(): ? string { | |
| 39 | 39 |      if(empty($this->section->{$this->varName})) { | 
| 40 | 40 | return NULL; | 
| 41 | 41 | } | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | $this->varName = $varName; | 
| 55 | 55 | } | 
| 56 | 56 | |
| 57 | -  public function resolve(): ?string { | |
| 57 | +  public function resolve(): ? string { | |
| 58 | 58 | return $this->getLang(); | 
| 59 | 59 | } | 
| 60 | 60 | } | 
| @@ -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\Bridges\NetteApplication; | 
| 5 | 5 | |
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | $this->request = $request; | 
| 37 | 37 | } | 
| 38 | 38 | |
| 39 | -  public function resolve(): ?string { | |
| 39 | +  public function resolve(): ? string { | |
| 40 | 40 |      if(!is_null($this->request)) { | 
| 41 | 41 | return $this->request->getParameter($this->param); | 
| 42 | 42 | } |