@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param DataEntityInterface $entity |
53 | 53 | * @param array $data |
54 | 54 | */ |
55 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
55 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
56 | 56 | { |
57 | 57 | /* @var UserEntity $entity */ |
58 | 58 | $entity->setUserId($data[$this->idKey]) |
@@ -89,5 +89,5 @@ |
||
89 | 89 | * @param DataEntityInterface $entity |
90 | 90 | * @param array $data |
91 | 91 | */ |
92 | - abstract protected function populateEntity(DataEntityInterface &$entity, array $data); |
|
92 | + abstract protected function populateEntity(DataEntityInterface&$entity, array $data); |
|
93 | 93 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param DataEntityInterface $entity |
53 | 53 | * @param array $data |
54 | 54 | */ |
55 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
55 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
56 | 56 | { |
57 | 57 | /* @var UserEntity $entity */ |
58 | 58 | $entity->setUserId($data[$this->idKey]) |
@@ -242,7 +242,7 @@ |
||
242 | 242 | * @param PDOStatement $statement |
243 | 243 | * @param array $queryBind |
244 | 244 | */ |
245 | - private function bindValuesToStatement(PDOStatement &$statement, array $queryBind) |
|
245 | + private function bindValuesToStatement(PDOStatement&$statement, array $queryBind) |
|
246 | 246 | { |
247 | 247 | foreach ($queryBind as $index => $data) { |
248 | 248 | $paramType = PDO::PARAM_STR; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | } |
199 | 199 | |
200 | - return (bool)$match; |
|
200 | + return (bool) $match; |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | private function checkWildcardMatch($data, $subject) |
210 | 210 | { |
211 | 211 | $subject = str_replace('%', '.*', $subject); |
212 | - return preg_match('/^' . $subject . '$/', $data); |
|
212 | + return preg_match('/^'.$subject.'$/', $data); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | private function checkInArrayMatch($data, $subject) |
222 | 222 | { |
223 | - return in_array($data, (array)$subject); |
|
223 | + return in_array($data, (array) $subject); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | if (is_numeric($maxKey)) { |
316 | 316 | $identifier = (int) $maxKey + 1; |
317 | 317 | } else { |
318 | - $identifier = $maxKey . '_1'; |
|
318 | + $identifier = $maxKey.'_1'; |
|
319 | 319 | } |
320 | 320 | } |
321 | 321 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return ResponseInterface |
44 | 44 | */ |
45 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface $response) |
|
45 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface $response) |
|
46 | 46 | { |
47 | 47 | $template = $request->getAttribute('template'); |
48 | 48 | $data = $request->getAttribute('data'); |
@@ -29,5 +29,5 @@ |
||
29 | 29 | * |
30 | 30 | * @return ResponseInterface |
31 | 31 | */ |
32 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface $response); |
|
32 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface $response); |
|
33 | 33 | } |
@@ -33,14 +33,14 @@ |
||
33 | 33 | if (isset($parameters['exception'])) { |
34 | 34 | /** @var \Exception $exp */ |
35 | 35 | $exp = $parameters['exception']; |
36 | - $output .= '<p>' . $exp->getMessage() . '</p>'; |
|
37 | - $output .= '<p>' . $exp->getFile() . ' at line ' . $exp->getLine() . '</p>'; |
|
38 | - $output .= '<pre>' . $exp->getTraceAsString() . '</pre>'; |
|
36 | + $output .= '<p>'.$exp->getMessage().'</p>'; |
|
37 | + $output .= '<p>'.$exp->getFile().' at line '.$exp->getLine().'</p>'; |
|
38 | + $output .= '<pre>'.$exp->getTraceAsString().'</pre>'; |
|
39 | 39 | } else { |
40 | 40 | $output .= $parameters[0]; |
41 | 41 | } |
42 | 42 | |
43 | - $output .= '<p>' . $template . '</p>'; |
|
43 | + $output .= '<p>'.$template.'</p>'; |
|
44 | 44 | |
45 | 45 | // The ugliest shit ever. But that is how they made it... :/ |
46 | 46 | return \GuzzleHttp\Psr7\stream_for($output); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return ResponseInterface |
44 | 44 | */ |
45 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface $response) |
|
45 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface $response) |
|
46 | 46 | { |
47 | 47 | $template = $request->getAttribute('template'); |
48 | 48 | $data = $request->getAttribute('data'); |