@@ -344,7 +344,7 @@ |
||
344 | 344 | */ |
345 | 345 | private function whereWrapper() |
346 | 346 | { |
347 | - return function ($parameter) { |
|
347 | + return function($parameter) { |
|
348 | 348 | if ($parameter instanceof FragmentInterface) { |
349 | 349 | //We are only not creating bindings for plan fragments |
350 | 350 | if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $value = ''; |
33 | 33 | } |
34 | 34 | |
35 | - $replaces[$prefix . $key . $postfix] = $value; |
|
35 | + $replaces[$prefix.$key.$postfix] = $value; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return strtr($string, $replaces); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | { |
223 | 223 | self::register(); |
224 | 224 | |
225 | - $uri = 'spiral://' . spl_object_hash($stream); |
|
225 | + $uri = 'spiral://'.spl_object_hash($stream); |
|
226 | 226 | self::$uris[$uri] = $stream; |
227 | 227 | |
228 | 228 | return $uri; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | public static function releaseUri($uri) |
274 | 274 | { |
275 | 275 | if ($uri instanceof StreamInterface) { |
276 | - $uri = 'spiral://' . spl_object_hash($uri); |
|
276 | + $uri = 'spiral://'.spl_object_hash($uri); |
|
277 | 277 | } |
278 | 278 | |
279 | 279 | unset(self::$uris[$uri]); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | if (preg_match_all('/ node:attributes(?:=\"([^\'"]+)\")?/i', $content, $matches)) { |
25 | 25 | //We have to sort from longest to shortest |
26 | - uasort($matches[0], function ($replaceA, $replaceB) { |
|
26 | + uasort($matches[0], function($replaceA, $replaceB) { |
|
27 | 27 | return strlen($replaceB) - strlen($replaceA); |
28 | 28 | }); |
29 | 29 | |
@@ -37,11 +37,11 @@ discard block |
||
37 | 37 | continue; |
38 | 38 | } |
39 | 39 | |
40 | - $inject[$name] = $name . '="' . $value . '"'; |
|
40 | + $inject[$name] = $name.'="'.$value.'"'; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | //Injecting |
44 | - $content = str_replace($replace, $inject ? ' ' . join(' ', $inject) : '', $content); |
|
44 | + $content = str_replace($replace, $inject ? ' '.join(' ', $inject) : '', $content); |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | $prefix = isset($attributes['namespace']) |
151 | - ? $attributes['namespace'] . ':' |
|
151 | + ? $attributes['namespace'].':' |
|
152 | 152 | : $attributes['prefix']; |
153 | 153 | |
154 | 154 | return new Prefixer($prefix, $path); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | if ($position == self::POSITION_IN_TAG) { |
132 | - $buffer = '<' . $buffer; |
|
132 | + $buffer = '<'.$buffer; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | //Handling previous token |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | //Checking for invalid characters in tag name or arguments |
169 | 169 | if ($position == self::POSITION_IN_TAG) { |
170 | 170 | if (!preg_match('/[a-z0-9 \._\-="\':\/\r\n\t]/i', $char)) { |
171 | - $buffer = '<' . $buffer; |
|
171 | + $buffer = '<'.$buffer; |
|
172 | 172 | $position = self::POSITION_PLAIN_TEXT; |
173 | 173 | } |
174 | 174 | } |
@@ -202,18 +202,18 @@ discard block |
||
202 | 202 | continue; |
203 | 203 | } |
204 | 204 | |
205 | - $attributes[] = $attribute . '="' . $value . '"'; |
|
205 | + $attributes[] = $attribute.'="'.$value.'"'; |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | if (!empty($attributes)) { |
209 | - $result .= ' ' . join(' ', $attributes); |
|
209 | + $result .= ' '.join(' ', $attributes); |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | if ($token[HtmlTokenizer::TOKEN_TYPE] == HtmlTokenizer::TAG_SHORT) { |
213 | 213 | $result .= '/'; |
214 | 214 | } |
215 | 215 | |
216 | - return '<' . $result . '>'; |
|
216 | + return '<'.$result.'>'; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $token = [ |
228 | 228 | self::TOKEN_NAME => '', |
229 | 229 | self::TOKEN_TYPE => self::TAG_OPEN, |
230 | - self::TOKEN_CONTENT => '<' . ($content = $this->repairPHP($content)) . '>', |
|
230 | + self::TOKEN_CONTENT => '<'.($content = $this->repairPHP($content)).'>', |
|
231 | 231 | self::TOKEN_ATTRIBUTES => [] |
232 | 232 | ]; |
233 | 233 |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | |
402 | 402 | $name = $this->tokens[$localID][self::TOKEN_CODE]; |
403 | 403 | if (!empty($namespace = $this->activeNamespace($tokenID))) { |
404 | - $name = $namespace . self::NS_SEPARATOR . $name; |
|
404 | + $name = $namespace.self::NS_SEPARATOR.$name; |
|
405 | 405 | } |
406 | 406 | |
407 | 407 | $this->functions[$name] = [ |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | |
427 | 427 | $name = $this->tokens[$localID][self::TOKEN_CODE]; |
428 | 428 | if (!empty($namespace = $this->activeNamespace($tokenID))) { |
429 | - $name = $namespace . self::NS_SEPARATOR . $name; |
|
429 | + $name = $namespace.self::NS_SEPARATOR.$name; |
|
430 | 430 | } |
431 | 431 | |
432 | 432 | $this->declarations[token_name($tokenType)][$name] = [ |
@@ -108,7 +108,7 @@ |
||
108 | 108 | { |
109 | 109 | if (is_array($this->value)) { |
110 | 110 | //Array were mocked |
111 | - return '(' . trim(str_repeat('?, ', count($this->value)), ', ') . ')'; |
|
111 | + return '('.trim(str_repeat('?, ', count($this->value)), ', ').')'; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | return '?'; |
@@ -187,7 +187,7 @@ |
||
187 | 187 | ]); |
188 | 188 | |
189 | 189 | return $this->files->normalizePath( |
190 | - $this->config->getDirectory() . FilesInterface::SEPARATOR . $filename |
|
190 | + $this->config->getDirectory().FilesInterface::SEPARATOR.$filename |
|
191 | 191 | ); |
192 | 192 | } |
193 | 193 | } |
194 | 194 | \ No newline at end of file |