@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $filesJson = json_decode(file_get_contents($projectDir . '/theme/frontend/js/files.json'), true); |
104 | 104 | $ownFiles = $filesJson['files']; |
105 | 105 | |
106 | - $ownFiles = array_map(function ($file) use ($applicationJsPath) { |
|
106 | + $ownFiles = array_map(function($file) use ($applicationJsPath) { |
|
107 | 107 | if (strpos($file, '**') !== false) { |
108 | 108 | return null; |
109 | 109 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $finder = new Finder(); |
117 | 117 | $finder->in($applicationJsPath . '/plugins/')->name('*.js'); |
118 | 118 | |
119 | - $jsPlugins = array_map(function ($file) { |
|
119 | + $jsPlugins = array_map(function($file) { |
|
120 | 120 | return $file->getRealPath(); |
121 | 121 | }, iterator_to_array($finder->files())); |
122 | 122 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $scss = new Compiler(); |
148 | 148 | $scss->setIgnoreErrors(true); |
149 | 149 | $scss->addImportPath($applicationScssPath); |
150 | - $scss->addImportPath(function ($path) use ($projectDir) { |
|
150 | + $scss->addImportPath(function($path) use ($projectDir) { |
|
151 | 151 | //Check for tilde as this refers to the node_modules dir |
152 | 152 | if (strpos($path, '~') === 0) { |
153 | 153 | $path = str_replace( |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | [$uSec, $sec] = explode(' ', microtime()); |
27 | 27 | |
28 | - return ((float) $uSec + (float) $sec); |
|
28 | + return ((float)$uSec + (float)$sec); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -51,7 +51,7 @@ |
||
51 | 51 | if ($opt['session']['check_referer']) { |
52 | 52 | if (isset($_SERVER['REFERER'])) { |
53 | 53 | // TODO fix the following if statement, seems corrupted |
54 | - if (stripos('http' + strstr($_SERVER['REFERER'], '://'), strtolower($opt['page']['absolute_http_url'])) !== 0 |
|
54 | + if (stripos('http' +strstr($_SERVER['REFERER'], '://'), strtolower($opt['page']['absolute_http_url'])) !== 0 |
|
55 | 55 | ) { |
56 | 56 | $this->createNewSession(); |
57 | 57 | } |
@@ -13,14 +13,14 @@ |
||
13 | 13 | |
14 | 14 | public function push_pos(&$pos): void |
15 | 15 | { |
16 | - $this->stack[count($this->stack)] =& $pos; |
|
17 | - $this->stack_ref =& $pos; |
|
16 | + $this->stack[count($this->stack)] = & $pos; |
|
17 | + $this->stack_ref = & $pos; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function pop_pos(): void |
21 | 21 | { |
22 | 22 | unset($this->stack[count($this->stack) - 1]); |
23 | - $this->stack_ref =& $this->stack[count($this->stack) - 1]; |
|
23 | + $this->stack_ref = & $this->stack[count($this->stack) - 1]; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -11,7 +11,7 @@ |
||
11 | 11 | $opt['rootpath'] = __DIR__ . '/../'; |
12 | 12 | |
13 | 13 | spl_autoload_register( |
14 | - function ($className): void { |
|
14 | + function($className): void { |
|
15 | 15 | if (!preg_match('/^[\w]{1,}$/', $className)) { |
16 | 16 | return; |
17 | 17 | } |