Passed
Push — master ( c5a660...8d284d )
by Petr
02:17
created
php-src/ModulesLists/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 
159 159
     public function fillRecord(string $line): Record
160 160
     {
161
-        list($name, $enabled, $params, ) = explode(static::PARAM_SEPARATOR, $line, 4);
161
+        list($name, $enabled, $params,) = explode(static::PARAM_SEPARATOR, $line, 4);
162 162
         $record = new Record();
163 163
         $record->setModuleName($name);
164 164
         $record->setEnabled(boolval(intval(strval($enabled))));
Please login to merge, or discard this patch.
php-src/ModulesLists/ParamsFormat/Serialize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     public function unpack(string $content): array
21 21
     {
22 22
         $data = @ unserialize($content);
23
-        return (false === $data) ? [] : $data ;
23
+        return (false === $data) ? [] : $data;
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
php-src/ModulesLists/ParamsFormat/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     public function unpack(string $content): array
21 21
     {
22 22
         $data = @ json_decode($content, true);
23
-        return (false === $data) ? [] : $data ;
23
+        return (false === $data) ? [] : $data;
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
php-src/ModulesLists/File/Files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     public function setModuleLevel(int $level): void
44 44
     {
45 45
         $this->path = array_merge($this->moduleConfPath, [
46
-            sprintf('%s.%d.%s', IPaths::DIR_MODULE, $level, IPaths::DIR_CONF )
46
+            sprintf('%s.%d.%s', IPaths::DIR_MODULE, $level, IPaths::DIR_CONF)
47 47
         ]);
48 48
     }
49 49
 
Please login to merge, or discard this patch.
php-src/ModulesLists/File/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $this->path = Stuff::sanitize(implode(DIRECTORY_SEPARATOR, [
41 41
             $this->moduleConfPath,
42
-            sprintf('%s.%d.%s', IPaths::DIR_MODULE, $level, IPaths::DIR_CONF )
42
+            sprintf('%s.%d.%s', IPaths::DIR_MODULE, $level, IPaths::DIR_CONF)
43 43
         ]));
44 44
     }
45 45
 
Please login to merge, or discard this patch.
php-src/Loaders/TSeparate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         $target = strval(reset($path));
32
-        $constructPath = is_null($emptyDefault) ? $target : $emptyDefault ;
32
+        $constructPath = is_null($emptyDefault) ? $target : $emptyDefault;
33 33
 
34 34
         if (1 < count($path)) {
35 35
             $constructPath = implode('\\', array_slice($path, 1));
Please login to merge, or discard this patch.
php-src/Parser/GetModules.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $this->foundModules = [];
67 67
         // regexp got all available module tags on page, strpos their positions and then we van get the params
68
-        if (!preg_match_all('#{([a-zA-Z_!/-]+)}#mi', $this->content,  $matches)) {
68
+        if (!preg_match_all('#{([a-zA-Z_!/-]+)}#mi', $this->content, $matches)) {
69 69
             return $this;
70 70
         };
71 71
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $stack = new \SplStack();
99 99
         $len = count($rest);
100
-        for ($i=0; $i<$len; $i++) {
100
+        for ($i = 0; $i < $len; $i++) {
101 101
             if (!$this->filterEndingTag($rest[$i])) {
102 102
                 $stack[] = $rest[$i];
103 103
             } else {
Please login to merge, or discard this patch.