@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $this->setViolations($violations); |
19 | 19 | |
20 | - parent::__construct((string) $this); |
|
20 | + parent::__construct((string)$this); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function __toString(): string |
@@ -72,7 +72,7 @@ |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | $process = new Process($cmd, $this->rootPath, null, null, 9600); |
75 | - $process->run(function ($type, $buffer): void { |
|
75 | + $process->run(function($type, $buffer): void { |
|
76 | 76 | echo $buffer; |
77 | 77 | }); |
78 | 78 |
@@ -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 | /** |
@@ -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 | } |
@@ -125,6 +125,6 @@ |
||
125 | 125 | */ |
126 | 126 | $expressionAst = (new ExpressionLanguage())->parse($violation->getPropertyPath(), [])->getNodes(); |
127 | 127 | |
128 | - return (int) $expressionAst->nodes['node']->nodes[1]->attributes['value']; |
|
128 | + return (int)$expressionAst->nodes['node']->nodes[1]->attributes['value']; |
|
129 | 129 | } |
130 | 130 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | WHERE cache_id = :cacheId; |
226 | 226 | SQL |
227 | 227 | , [ |
228 | - 'cacheId' => (int) $cache['cache_id'], |
|
228 | + 'cacheId' => (int)$cache['cache_id'], |
|
229 | 229 | ]); |
230 | 230 | |
231 | 231 | $this->connection->executeQuery(<<<'SQL' |
@@ -237,19 +237,19 @@ discard block |
||
237 | 237 | WHERE cache_id = :cacheId |
238 | 238 | SQL |
239 | 239 | , [ |
240 | - 'cacheId' => (int) $cache['cache_id'], |
|
240 | + 'cacheId' => (int)$cache['cache_id'], |
|
241 | 241 | ]); |
242 | 242 | |
243 | 243 | $this->connection->executeQuery('DELETE FROM cache_desc_modified WHERE cache_id = :cacheId', [ |
244 | - 'cacheId' => (int) $cache['cache_id'], |
|
244 | + 'cacheId' => (int)$cache['cache_id'], |
|
245 | 245 | ]); |
246 | 246 | |
247 | 247 | $this->connection->executeQuery('DELETE FROM cache_ignore WHERE cache_id = :cacheId', [ |
248 | - 'cacheId' => (int) $cache['cache_id'], |
|
248 | + 'cacheId' => (int)$cache['cache_id'], |
|
249 | 249 | ]); |
250 | 250 | |
251 | 251 | $this->connection->executeQuery('DELETE FROM caches_modified WHERE cache_id = :cacheId', [ |
252 | - 'cacheId' => (int) $cache['cache_id'], |
|
252 | + 'cacheId' => (int)$cache['cache_id'], |
|
253 | 253 | ]); |
254 | 254 | } |
255 | 255 | } |
@@ -260,8 +260,8 @@ discard block |
||
260 | 260 | return []; |
261 | 261 | } |
262 | 262 | |
263 | - $ids = array_map(static function (array $cache) use ($idField) { |
|
264 | - return (int) $cache[$idField]; |
|
263 | + $ids = array_map(static function(array $cache) use ($idField) { |
|
264 | + return (int)$cache[$idField]; |
|
265 | 265 | }, $data); |
266 | 266 | |
267 | 267 | $pictures = $this->connection->fetchAll('SELECT * FROM pictures WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [ |
@@ -281,8 +281,8 @@ discard block |
||
281 | 281 | return []; |
282 | 282 | } |
283 | 283 | |
284 | - $ids = array_map(static function (array $cache) use ($idField) { |
|
285 | - return (int) $cache[$idField]; |
|
284 | + $ids = array_map(static function(array $cache) use ($idField) { |
|
285 | + return (int)$cache[$idField]; |
|
286 | 286 | }, $data); |
287 | 287 | |
288 | 288 | return $this->connection->fetchAll('SELECT * FROM pictures_modified WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [ |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php return array ( |
2 | - 'version_number' => 1926, |
|
3 | - 'git_revision' => 'dbed1d0d908dcc00a4aa7387de2e08b727dccee8', |
|
2 | + 'version_number' => 1926, |
|
3 | + 'git_revision' => 'dbed1d0d908dcc00a4aa7387de2e08b727dccee8', |
|
4 | 4 | ); |
5 | 5 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'version_number' => 1926, |
3 | 3 | 'git_revision' => 'dbed1d0d908dcc00a4aa7387de2e08b727dccee8', |
4 | 4 | ); |
5 | 5 | \ No newline at end of file |