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 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/Middleware/Action/FakeAction.php 2 patches
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.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
3 3
 namespace WebHemi\Middleware\Action;
4 4
 
5 5
 use WebHemi\Application\SessionManager;
6
+use WebHemi\Data\Coupler\UserGroupToPolicyCoupler;
7
+use WebHemi\Data\Coupler\UserToGroupCoupler;
8
+use WebHemi\Data\Coupler\UserToPolicyCoupler;
6 9
 use WebHemi\Data\Entity\User\UserEntity;
7 10
 use WebHemi\Data\Entity\User\UserGroupEntity;
8 11
 use WebHemi\Data\Storage\User\UserStorage;
9
-use WebHemi\Data\Coupler\UserToGroupCoupler;
10
-use WebHemi\Data\Coupler\UserToPolicyCoupler;
11
-use WebHemi\Data\Coupler\UserGroupToPolicyCoupler;
12 12
 use WebHemi\Form\FormInterface;
13 13
 use WebHemi\Form\Web\TestForm;
14 14
 use WebHemi\Middleware\AbstractMiddlewareAction;
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/PipelineManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     /**
84 84
      * Checks the given class against Middleware Criteria.
85 85
      *
86
-     * @param $middleWareClass
86
+     * @param string $middleWareClass
87 87
      *
88 88
      * @throws RuntimeException
89 89
      *
Please login to merge, or discard this patch.
src/WebHemi/Auth/Auth.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 namespace WebHemi\Auth;
13 13
 
14 14
 use Exception;
15
-use WebHemi\Data\Storage\User\UserStorage;
16
-use WebHemi\Data\Entity\User\UserEntity;
17 15
 use WebHemi\Adapter\Auth\AbstractAuthAdapter;
16
+use WebHemi\Data\Entity\User\UserEntity;
17
+use WebHemi\Data\Storage\User\UserStorage;
18 18
 
19 19
 /**
20 20
  * Class Auth
Please login to merge, or discard this patch.