Passed
Push — master ( b01812...3926c4 )
by Gabor
03:44
created
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.
src/WebHemi/Data/Storage/AccessManagement/ResourceStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param DataEntityInterface $entity
45 45
      * @param array               $data
46 46
      */
47
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
47
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
48 48
     {
49 49
         /* @var ResourceEntity $entity */
50 50
         $entity->setResourceId($data[$this->idKey])
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $this->name => $entity->getName(),
74 74
             $this->title => $entity->getTitle(),
75 75
             $this->description => $entity->getDescription(),
76
-            $this->isReadOnly => (int)$entity->getReadOnly(),
76
+            $this->isReadOnly => (int) $entity->getReadOnly(),
77 77
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
78 78
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
79 79
         ];
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/AccessManagement/PolicyStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param DataEntityInterface $entity
55 55
      * @param array               $data
56 56
      */
57
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
57
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
58 58
     {
59 59
         /* @var PolicyEntity $entity */
60 60
         $entity->setPolicyId($data[$this->idKey])
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
             $this->name => $entity->getName(),
89 89
             $this->title => $entity->getTitle(),
90 90
             $this->description => $entity->getDescription(),
91
-            $this->isReadOnly => (int)$entity->getReadOnly(),
92
-            $this->isAllowed => (int)$entity->getAllowed(),
91
+            $this->isReadOnly => (int) $entity->getReadOnly(),
92
+            $this->isAllowed => (int) $entity->getAllowed(),
93 93
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
94 94
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
95 95
         ];
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/AbstractDataStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param DataEntityInterface &$entity
102 102
      * @return mixed The ID of the saved entity in the storage
103 103
      */
104
-    public function saveEntity(DataEntityInterface &$entity)
104
+    public function saveEntity(DataEntityInterface&$entity)
105 105
     {
106 106
         $entityClass = get_class($entity);
107 107
         $storageEntityClass = get_class($this->entityPrototype);
@@ -141,5 +141,5 @@  discard block
 block discarded – undo
141 141
      * @param DataEntityInterface $entity
142 142
      * @param array               $data
143 143
      */
144
-    abstract protected function populateEntity(DataEntityInterface &$entity, array $data);
144
+    abstract protected function populateEntity(DataEntityInterface&$entity, array $data);
145 145
 }
Please login to merge, or discard this patch.
src/WebHemi/Auth/Result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 class Result
21 21
 {
22
-    const FAILURE =  0;
22
+    const FAILURE = 0;
23 23
     const FAILURE_IDENTITY_NOT_FOUND = -1;
24 24
     const FAILURE_CREDENTIAL_INVALID = -2;
25 25
     const FAILURE_OTHER = -3;
26
-    const SUCCESS =  1;
26
+    const SUCCESS = 1;
27 27
 
28 28
     /** @var int */
29 29
     private $code;
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', $configuration['hash_function']);
51
-            ini_set('session.use_only_cookies', (int)$configuration['use_only_cookies']);
52
-            ini_set('session.use_cookies', (int)$configuration['use_cookies']);
53
-            ini_set('session.use_trans_sid', (int)$configuration['use_trans_sid']);
54
-            ini_set('session.cookie_httponly', (int)$configuration['cookie_http_only']);
51
+            ini_set('session.use_only_cookies', (int) $configuration['use_only_cookies']);
52
+            ini_set('session.use_cookies', (int) $configuration['use_cookies']);
53
+            ini_set('session.use_trans_sid', (int) $configuration['use_trans_sid']);
54
+            ini_set('session.cookie_httponly', (int) $configuration['cookie_http_only']);
55 55
             ini_set('session.save_path', $configuration['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/Data/Storage/ApplicationStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param DataEntityInterface $entity
45 45
      * @param array               $data
46 46
      */
47
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
47
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
48 48
     {
49 49
         /* @var ResourceEntity $entity */
50 50
         $entity->setResourceId($data[$this->idKey])
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $this->name => $entity->getName(),
74 74
             $this->title => $entity->getTitle(),
75 75
             $this->description => $entity->getDescription(),
76
-            $this->isReadOnly => (int)$entity->getReadOnly(),
76
+            $this->isReadOnly => (int) $entity->getReadOnly(),
77 77
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
78 78
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
79 79
         ];
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/User/UserGroupStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param DataEntityInterface $entity
45 45
      * @param array               $data
46 46
      */
47
-    protected function populateEntity(DataEntityInterface &$entity, array $data)
47
+    protected function populateEntity(DataEntityInterface&$entity, array $data)
48 48
     {
49 49
         /* @var ResourceEntity $entity */
50 50
         $entity->setResourceId($data[$this->idKey])
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $this->name => $entity->getName(),
74 74
             $this->title => $entity->getTitle(),
75 75
             $this->description => $entity->getDescription(),
76
-            $this->isReadOnly => (int)$entity->getReadOnly(),
76
+            $this->isReadOnly => (int) $entity->getReadOnly(),
77 77
             $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null,
78 78
             $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null
79 79
         ];
Please login to merge, or discard this patch.