@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | if (!empty($queryParams)) { |
| 225 | - $whereExpression = ' WHERE ' . implode(' AND ', $queryParams); |
|
| 225 | + $whereExpression = ' WHERE '.implode(' AND ', $queryParams); |
|
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | return $whereExpression; |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | * |
| 277 | 277 | * @codeCoverageIgnore Don't test external library. |
| 278 | 278 | */ |
| 279 | - private function bindValuesToStatement(PDOStatement &$statement, array $queryBind) |
|
| 279 | + private function bindValuesToStatement(PDOStatement&$statement, array $queryBind) |
|
| 280 | 280 | { |
| 281 | 281 | foreach ($queryBind as $index => $data) { |
| 282 | 282 | $paramType = PDO::PARAM_STR; |
@@ -255,8 +255,8 @@ |
||
| 255 | 255 | $normalizedName = $this->getNormalizedName($serviceClass, $parameterName); |
| 256 | 256 | |
| 257 | 257 | // If the parameter marked as to be used as a scalar |
| 258 | - if (is_scalar($parameter) && strpos((string)$parameter, '!:') === 0) { |
|
| 259 | - $parameter = substr((string)$parameter, 2); |
|
| 258 | + if (is_scalar($parameter) && strpos((string) $parameter, '!:') === 0) { |
|
| 259 | + $parameter = substr((string) $parameter, 2); |
|
| 260 | 260 | } else { |
| 261 | 261 | // Otherwise check if the parameter is a service. |
| 262 | 262 | $parameter = $this->getReferenceServiceIfAvailable($parameter); |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @return ResponseInterface |
| 52 | 52 | */ |
| 53 | - final public function __invoke(ServerRequestInterface &$request, ResponseInterface $response) |
|
| 53 | + final public function __invoke(ServerRequestInterface&$request, ResponseInterface $response) |
|
| 54 | 54 | { |
| 55 | 55 | $this->request = $request; |
| 56 | 56 | $this->response = $response; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $this->adapter->addExtension(new Twig_Extension_Debug()); |
| 60 | 60 | |
| 61 | 61 | $viewPath = $this->templateViewPath; |
| 62 | - $function = new Twig_SimpleFunction('defined', function ($fileName) use ($viewPath) { |
|
| 62 | + $function = new Twig_SimpleFunction('defined', function($fileName) use ($viewPath) { |
|
| 63 | 63 | $fileName = str_replace('@Theme', $viewPath, $fileName); |
| 64 | 64 | return file_exists($fileName); |
| 65 | 65 | }); |
@@ -68,11 +68,11 @@ discard block |
||
| 68 | 68 | $name = $this->name; |
| 69 | 69 | |
| 70 | 70 | if ($this->parentNode instanceof FormElementInterface) { |
| 71 | - $name = $this->parentNode->getName() . '[' . $this->name . ']'; |
|
| 71 | + $name = $this->parentNode->getName().'['.$this->name.']'; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | if (count($this->options) > 1 |
| 75 | - && $this->tagName == self::TAG_SELECT |
|
| 75 | + && $this->tagName == self::TAG_SELECT |
|
| 76 | 76 | && !empty($this->attributes['multiple']) |
| 77 | 77 | ) { |
| 78 | 78 | $name .= '[]'; |
@@ -119,10 +119,10 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | // Rip off the unique form prefix to make possible to work with fixed CSS id selectors. |
| 121 | 121 | if (preg_match('/^[a-z0-9]+\_(?P<md5>[a-f0-9]{32}).*$/', $name, $md5Match)) { |
| 122 | - $name = str_replace('_' . $md5Match['md5'], '', $name); |
|
| 122 | + $name = str_replace('_'.$md5Match['md5'], '', $name); |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - return 'id_' . trim(preg_replace('/[^a-z0-9]/', '_', $name), '_'); |
|
| 125 | + return 'id_'.trim(preg_replace('/[^a-z0-9]/', '_', $name), '_'); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |