Completed
Branch master (53fdb9)
by Mārtiņš
04:03 queued 01:53
created
src/Palladium/Component/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /** code that does the actualy population of data from the given array in blueprint */
54 54
     private function populateEntity($instance, $parameters)
55 55
     {
56
-        foreach ((array)$parameters as $key => $value) {
56
+        foreach ((array) $parameters as $key => $value) {
57 57
             $method = 'set' . str_replace('_', '', $key);
58 58
             if (method_exists($instance, $method)) {
59 59
                 $instance->{$method}($value);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
     public function offsetGet($offset)
235 235
     {
236
-        if (isset($this->indexed[$offset])){
236
+        if (isset($this->indexed[$offset])) {
237 237
             return $this->indexed[$offset];
238 238
         }
239 239
 
Please login to merge, or discard this patch.
src/Palladium/Component/DataMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function applyValues($instance, array $parameters)
15 15
     {
16
-        foreach ((array)$parameters as $key => $value) {
16
+        foreach ((array) $parameters as $key => $value) {
17 17
             $method = 'set' . str_replace('_', '', $key);
18 18
             if (method_exists($instance, $method)) {
19 19
                 $instance->{$method}($value);
Please login to merge, or discard this patch.
src/Palladium/Entity/Identity.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     const ACTION_RESET = 2;
23 23
 
24 24
     const STATUS_ANY = null;
25
-    const STATUS_NEW = 1;       // not veriefoed user
26
-    const STATUS_ACTIVE = 2;    // this is the "good" state
25
+    const STATUS_NEW = 1; // not veriefoed user
26
+    const STATUS_ACTIVE = 2; // this is the "good" state
27 27
     const STATUS_DISCARDED = 3; // user logged out or changed password
28
-    const STATUS_BLOCKED = 4;   // someone tried to us an invalid auth cookie
28
+    const STATUS_BLOCKED = 4; // someone tried to us an invalid auth cookie
29 29
     const STATUS_EXPIRED = 5;
30 30
 
31 31
     const TYPE_ANY = null;
Please login to merge, or discard this patch.
src/Palladium/Service/Identification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 
138 138
         $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class);
139 139
 
140
-        if ($identity->getExpiresOn() <  time()) {
140
+        if ($identity->getExpiresOn() < time()) {
141 141
             $identity->setStatus(Entity\Identity::STATUS_EXPIRED);
142 142
             $mapper->store($identity);
143 143
             $this->logger->info('cookie expired', [
Please login to merge, or discard this patch.