Passed
Branch master (30ae21)
by Gabor
03:15
created
src/WebHemi/Adapter/Data/InMemory/InMemoryAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/WebHemi/Adapter/DependencyInjection/Symfony/SymfonyAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,8 +255,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/WebHemi/Middleware/AbstractMiddlewareAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Renderer/Twig/TwigRendererAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/WebHemi/Form/AbstractForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
src/WebHemi/Form/Element/Web/CheckboxElement.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * Sets element value.
24 24
      *
25
-     * @param mixed $value
25
+     * @param string $value
26 26
      * @return RadioElement
27 27
      */
28 28
     public function setValue($value)
Please login to merge, or discard this patch.
src/WebHemi/Form/Element/Web/AbstractElement.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * Sets element value.
142 142
      *
143
-     * @param mixed $value
143
+     * @param string $value
144 144
      * @return AbstractElement
145 145
      */
146 146
     public function setValue($value)
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     /**
263 263
      * Sets the element errors. Usually the validator should set it, but it is allowed to set from outside too.
264 264
      *
265
-     * @param array $errors
265
+     * @param string[] $errors
266 266
      * @return AbstractElement
267 267
      */
268 268
     public function setErrors(array $errors)
Please login to merge, or discard this patch.
src/WebHemi/Application/SessionManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             throw new RuntimeException('Cannot start session. Session is already started.', 1000);
83 83
         }
84 84
 
85
-        session_name($this->cookiePrefix.'-'.bin2hex($name . $this->sessionNameSalt));
85
+        session_name($this->cookiePrefix.'-'.bin2hex($name.$this->sessionNameSalt));
86 86
         session_set_cookie_params($timeOut, $path, $domain, $secure, $httpOnly);
87 87
         session_start();
88 88
 
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Action/FakeAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         // Turn off aut complete feature.
46 46
         $this->loginForm->setAutoComplete(false);
47 47
         // test data setter
48
-        $this->loginForm->setData((array)$this->request->getParsedBody());
48
+        $this->loginForm->setData((array) $this->request->getParsedBody());
49 49
 
50 50
         if (!empty($this->request->getParsedBody())) {
51 51
             $this->session->set('session', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
Please login to merge, or discard this patch.