Completed
Push — master ( dc3621...a9840c )
by Todd
02:00
created
src/Config/MutableConfig.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
37 37
 
38 38
   private function nextNumericIndex() {
39 39
     $numericKeys = array_filter(array_keys($this->rawValues()), 'is_numeric');
40
-    if (count($numericKeys) === 0) return 0;
40
+    if (count($numericKeys) === 0) {
41
+      return 0;
42
+    }
41 43
     return max($numericKeys) + 1;
42 44
   }
43 45
 }
44 46
\ No newline at end of file
Please login to merge, or discard this patch.
src/Config/PathEval.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,9 @@
 block discarded – undo
15 15
   }
16 16
 
17 17
   public function find($path, $default=null, $delimiter='.') {
18
-    if ($this->pathStartsWithConfig($path, $delimiter))
19
-      return $this->evalSubPath($path, $delimiter, $default);
18
+    if ($this->pathStartsWithConfig($path, $delimiter)) {
19
+          return $this->evalSubPath($path, $delimiter, $default);
20
+    }
20 21
 
21 22
     return $this->get($this->getFirstToken($path, $delimiter), $default);
22 23
   }
Please login to merge, or discard this patch.
src/Config.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@  discard block
 block discarded – undo
14 14
 
15 15
   public function __construct(array $arrayConfig = []) {
16 16
     parent::__construct();
17
-    foreach($arrayConfig as $key => $value)
18
-      $this->offsetSet($key, $value);
17
+    foreach($arrayConfig as $key => $value) {
18
+          $this->offsetSet($key, $value);
19
+    }
19 20
 
20 21
     $this->onConstruct();
21 22
   }
@@ -82,7 +83,8 @@  discard block
 block discarded – undo
82 83
   }
83 84
 
84 85
   private function blockIfLocked() {
85
-    if ($this->isLocked())
86
-      throw new CanNotMutateException();
86
+    if ($this->isLocked()) {
87
+          throw new CanNotMutateException();
88
+    }
87 89
   }
88 90
 }
89 91
\ No newline at end of file
Please login to merge, or discard this patch.
src/Registry.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,9 @@
 block discarded – undo
58 58
   public function __isset($offset)       { return $this->offsetExists($offset); }
59 59
 
60 60
   protected function requireOffset($offset) {
61
-    if (!$this->offsetExists($offset))
62
-      throw new \OutOfBoundsException("offset '{$offset}' does not exist");
61
+    if (!$this->offsetExists($offset)) {
62
+          throw new \OutOfBoundsException("offset '{$offset}' does not exist");
63
+    }
63 64
 
64 65
     return $this->values[$offset];
65 66
   }
Please login to merge, or discard this patch.