Passed
Push — master ( 0756b4...22a454 )
by Gabor
06:47
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/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/DataStorageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param DataEntityInterface &$entity
59 59
      * @return DataStorageInterface
60 60
      */
61
-    public function saveEntity(DataEntityInterface &$entity);
61
+    public function saveEntity(DataEntityInterface&$entity);
62 62
 
63 63
     /**
64 64
      * Returns the DataAdapter instance.
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/User/UserStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param DataEntityInterface $entity
49 49
      * @param array               $data
50 50
      */
51
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
51
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
52 52
     {
53 53
         /* @var UserEntity $entity */
54 54
         $entity->setUserId($data[$this->idKey])
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
             $this->email => $entity->getEmail(),
81 81
             $this->password => $entity->getPassword(),
82 82
             $this->hash => $entity->getHash(),
83
-            $this->isActive => (int)$entity->getActive(),
84
-            $this->isEnabled => (int)$entity->getEnabled(),
83
+            $this->isActive => (int) $entity->getActive(),
84
+            $this->isEnabled => (int) $entity->getEnabled(),
85 85
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
86 86
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
87 87
         ];
Please login to merge, or discard this patch.