@@ -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; |
@@ -216,13 +216,13 @@ discard block |
||
| 216 | 216 | $name = $this->name; |
| 217 | 217 | |
| 218 | 218 | if (isset($this->parentNode)) { |
| 219 | - $name = $this->parentNode->getName() . '[' . $this->name . ']'; |
|
| 219 | + $name = $this->parentNode->getName().'['.$this->name.']'; |
|
| 220 | 220 | } elseif (!empty($this->uniqueFormNamePostfix)) { |
| 221 | - $name .= '_' . $this->uniqueFormNamePostfix; |
|
| 221 | + $name .= '_'.$this->uniqueFormNamePostfix; |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | if (count($this->options) > 1 |
| 225 | - && $this->tagName == self::TAG_SELECT |
|
| 225 | + && $this->tagName == self::TAG_SELECT |
|
| 226 | 226 | && !empty($this->attributes['multiple']) |
| 227 | 227 | ) { |
| 228 | 228 | $name .= '[]'; |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | */ |
| 239 | 239 | public function getId() |
| 240 | 240 | { |
| 241 | - return 'id_' . trim(preg_replace('/[^a-z0-9]/', '_', $this->getName()), '_'); |
|
| 241 | + return 'id_'.trim(preg_replace('/[^a-z0-9]/', '_', $this->getName()), '_'); |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | /** |
@@ -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 | }); |