@@ -238,7 +238,7 @@ |
||
238 | 238 | */ |
239 | 239 | private function checkInArrayMatch($data, $subject) |
240 | 240 | { |
241 | - return in_array($data, (array)$subject); |
|
241 | + return in_array($data, (array) $subject); |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | /** |
@@ -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 | }); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | ); |
53 | 53 | |
54 | 54 | // For simplicity in rendering (twig macro), we store it in an array. |
55 | - $this->nodes[0] =& $this->form; |
|
55 | + $this->nodes[0] = & $this->form; |
|
56 | 56 | // Set a default salt for the form name. If the AutoComplete attribute is 'off', it will be added to the form's |
57 | 57 | // name attribute. The default salt will change every hour. |
58 | 58 | $this->salt = md5(gmdate('YmdH')); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | // Turn off aut complete feature. |
37 | 37 | $form->setAutoComplete(false); |
38 | 38 | // test data setter |
39 | - $form->setData((array)$this->request->getParsedBody()); |
|
39 | + $form->setData((array) $this->request->getParsedBody()); |
|
40 | 40 | |
41 | 41 | return [ |
42 | 42 | 'blogPosts' => [ |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function getValue() |
45 | 45 | { |
46 | 46 | if (empty($this->options)) { |
47 | - return (int)$this->value; |
|
47 | + return (int) $this->value; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return parent::getValue(); |