Passed
Push — master ( b361fa...68dd11 )
by Jakub
02:23
created
src/Resolvers/ILocaleResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Resolvers/SessionLocaleResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Bridges/NetteApplication/ParamLocaleResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.