Passed
Push — master ( 4b954d...b01812 )
by Gabor
03:38
created
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 1 patch
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.
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.
src/WebHemi/Data/Storage/User/UserMetaStorage.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
      * @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])
Please login to merge, or discard this patch.
src/WebHemi/Adapter/Data/PDO/MySQLAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     {
273 273
         list($columnNameOnly) = explode(' ', $column);
274 274
 
275
-        $inParameters  = str_repeat('?,', $parameterCount - 1).'?';
275
+        $inParameters = str_repeat('?,', $parameterCount - 1).'?';
276 276
 
277 277
         return $columnNameOnly.' IN ('.$inParameters.')';
278 278
     }
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      *
326 326
      * @codeCoverageIgnore Don't test external library.
327 327
      */
328
-    private function bindValuesToStatement(PDOStatement &$statement, array $queryBind)
328
+    private function bindValuesToStatement(PDOStatement&$statement, array $queryBind)
329 329
     {
330 330
         foreach ($queryBind as $index => $data) {
331 331
             $paramType = PDO::PARAM_STR;
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/Traits/GetEntityListFromDataSetTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,5 +89,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/WebHemi/Application/SessionManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
             ini_set('session.entropy_file', '/dev/urandom');
49 49
             ini_set('session.entropy_length', '16');
50 50
             ini_set('session.hash_function', $config['hash_function']);
51
-            ini_set('session.use_only_cookies', (int)$config['use_only_cookies']);
52
-            ini_set('session.use_cookies', (int)$config['use_cookies']);
53
-            ini_set('session.use_trans_sid', (int)$config['use_trans_sid']);
54
-            ini_set('session.cookie_httponly', (int)$config['cookie_http_only']);
51
+            ini_set('session.use_only_cookies', (int) $config['use_only_cookies']);
52
+            ini_set('session.use_cookies', (int) $config['use_cookies']);
53
+            ini_set('session.use_trans_sid', (int) $config['use_trans_sid']);
54
+            ini_set('session.cookie_httponly', (int) $config['cookie_http_only']);
55 55
             ini_set('session.save_path', $config['save_path']);
56 56
         }
57 57
         // @codeCoverageIgnoreEnd
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         // @codeCoverageIgnoreStart
132 132
         if (!defined('PHPUNIT_WEBHEMI_TESTSUITE')) {
133
-            session_name($this->cookiePrefix.'-'.bin2hex($name . $this->sessionNameSalt));
133
+            session_name($this->cookiePrefix.'-'.bin2hex($name.$this->sessionNameSalt));
134 134
             session_set_cookie_params($timeOut, $path, $domain, $secure, $httpOnly);
135 135
             session_start();
136 136
         }
Please login to merge, or discard this patch.
src/WebHemi/Middleware/Security/AclMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/ApplicationStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param DataEntityInterface $entity
44 44
      * @param array               $data
45 45
      */
46
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
46
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
47 47
     {
48 48
         /* @var ApplicationEntity $entity */
49 49
         $entity->setApplicationId($data[$this->idKey])
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             $this->name => $entity->getName(),
73 73
             $this->title => $entity->getTitle(),
74 74
             $this->description => $entity->getDescription(),
75
-            $this->isReadOnly => (int)$entity->getReadOnly(),
75
+            $this->isReadOnly => (int) $entity->getReadOnly(),
76 76
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
77 77
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
78 78
         ];
Please login to merge, or discard this patch.