Passed
Push — master ( b361fa...68dd11 )
by Jakub
02:23
created
src/LoaderNotSetException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/PhpLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/FileLoader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
   public function setFolders(array $folders) {
82 82
     foreach($folders as $folder) {
83 83
       if(!is_dir($folder)) {
84
-        throw new InvalidFolderException("Folder $folder does not exist.");
84
+        throw new InvalidFolderException("folder $folder does not exist.");
85 85
       }
86 86
       $this->folders[] = $folder;
87 87
     }
88 88
   }
89 89
   
90 90
   protected function addResource(string $filename, string $domain): void {
91
-    if(!isset($this->resources[$domain]) OR !in_array($filename, $this->resources[$domain])) {
91
+    if(!isset($this->resources[$domain]) or !in_array($filename, $this->resources[$domain])) {
92 92
       $this->resources[$domain][] = $filename;
93 93
     }
94 94
   }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
       $lang = [];
120 120
       $filename = "$name.$this->lang.$extension";
121 121
       $filename = str_replace($defaultFilename, $filename, $file->getPathname());
122
-      if($this->lang != $defaultLang AND is_file($filename)) {
122
+      if($this->lang != $defaultLang and is_file($filename)) {
123 123
         $lang = $this->parseFile($filename);
124 124
         $this->addResource($filename, $name);
125 125
       }
Please login to merge, or discard this patch.
src/Loaders/MessagesCatalogue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/IniLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/ILoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/JsonLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Loaders/NeonLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Nexendrie\Translation\Loaders;
5 5
 
Please login to merge, or discard this patch.
src/Bridges/NetteApplication/ParamLocaleResolver.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
   
31 31
   public function onRequest(Application $application, Request $request): void {
32 32
     $locale = $request->getParameter($this->param);
33
-    if($request->method === Request::FORWARD AND is_null($locale)) {
33
+    if($request->method === Request::FORWARD and is_null($locale)) {
34 34
       return;
35 35
     }
36 36
     $this->request = $request;
Please login to merge, or discard this 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.