Passed
Push — master ( ff9723...c2666e )
by Vadim
01:26
created
src/storage/OfflineStorageAdapter.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,12 +25,14 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function fetch($name) {
27 27
         $value = $this->storage->fetch(self::DI_VALUE_PREFIX.$name);
28
-        if ($value !== null)
29
-            return $value;
28
+        if ($value !== null) {
29
+                    return $value;
30
+        }
30 31
 
31 32
         $alias = $this->storage->fetch(self::DI_ALIAS_PREFIX.$name);
32
-        if ($alias !== null)
33
-            return $this->storage->fetch(self::DI_VALUE_PREFIX.$alias);
33
+        if ($alias !== null) {
34
+                    return $this->storage->fetch(self::DI_VALUE_PREFIX.$alias);
35
+        }
34 36
 
35 37
         return null;
36 38
     }
@@ -43,8 +45,9 @@  discard block
 block discarded – undo
43 45
      */
44 46
     public function store(Bean $bean) {
45 47
         $this->storage->store(self::DI_VALUE_PREFIX.$bean->name, $bean->value);
46
-        foreach($bean->aliases as $alias)
47
-            $this->storage->store(self::DI_ALIAS_PREFIX.$alias, $bean->name);
48
+        foreach($bean->aliases as $alias) {
49
+                    $this->storage->store(self::DI_ALIAS_PREFIX.$alias, $bean->name);
50
+        }
48 51
 
49 52
         return $bean->value;
50 53
     }
Please login to merge, or discard this patch.
src/storage/LocalStorage.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,12 +27,14 @@
 block discarded – undo
27 27
      * @return  mixed          Stored value from the supplied bean.
28 28
      */
29 29
     protected function toLocal(Bean $bean) {
30
-        if ($bean->scope !== null || ($bean->value instanceof Scope))
31
-            return null;
30
+        if ($bean->scope !== null || ($bean->value instanceof Scope)) {
31
+                    return null;
32
+        }
32 33
 
33 34
         $this->storage[$bean->name] = $bean->value;
34
-        foreach ($bean->aliases as $alias)
35
-            $this->storage[$alias] = $bean->value;
35
+        foreach ($bean->aliases as $alias) {
36
+                    $this->storage[$alias] = $bean->value;
37
+        }
36 38
 
37 39
         return $bean->value;
38 40
     }
Please login to merge, or discard this patch.
src/storage/impl/ApcuCache.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,9 @@
 block discarded – undo
8 8
 {
9 9
     /** Just check the precondition - APCu must be installed */
10 10
     public function __construct() {
11
-        if (function_exists('apcu_fetch') === false)
12
-            throw new ApcuNotInstalled();
11
+        if (function_exists('apcu_fetch') === false) {
12
+                    throw new ApcuNotInstalled();
13
+        }
13 14
     }
14 15
 
15 16
     /** {@inheritdoc} */
Please login to merge, or discard this patch.
src/storage/impl/Session.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,11 @@
 block discarded – undo
8 8
 {
9 9
     /** Just ensure the preconditions - session is active and started */
10 10
     public function __construct() {
11
-        if (session_status() === PHP_SESSION_NONE)
12
-            session_start();
13
-        else if (session_status() === PHP_SESSION_DISABLED)
14
-            throw new SessionsNotEnabled();
11
+        if (session_status() === PHP_SESSION_NONE) {
12
+                    session_start();
13
+        } else if (session_status() === PHP_SESSION_DISABLED) {
14
+                    throw new SessionsNotEnabled();
15
+        }
15 16
     }
16 17
 
17 18
     /** {@inheritdoc} */
Please login to merge, or discard this patch.