@@ -158,7 +158,7 @@ |
||
| 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)))); |
@@ -20,6 +20,6 @@ |
||
| 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 | } |
@@ -20,6 +20,6 @@ |
||
| 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 | } |
@@ -43,7 +43,7 @@ |
||
| 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 | |
@@ -39,7 +39,7 @@ |
||
| 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 | |
@@ -29,7 +29,7 @@ |
||
| 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)); |
@@ -65,7 +65,7 @@ discard block |
||
| 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 |
||
| 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 { |