Passed
Push — master ( 9670ea...dc3621 )
by Todd
02:03
created
src/Config/PathEval.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
     $this->config = $config;
15 15
   }
16 16
 
17
-  public function find($path, $default=null, $delimiter='.') {
17
+  public function find($path, $default = null, $delimiter = '.') {
18 18
     if ($this->pathStartsWithConfig($path, $delimiter))
19 19
       return $this->evalSubPath($path, $delimiter, $default);
20 20
 
21 21
     return $this->get($this->getFirstToken($path, $delimiter), $default);
22 22
   }
23 23
 
24
-  private function get($name, $default=null) {
24
+  private function get($name, $default = null) {
25 25
     return $this->config->get($name, $default);
26 26
   }
27 27
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
   }
35 35
 
36 36
   private function getFirstToken($path, $delimiter) {
37
-    return $this->gettok($path, $delimiter,0);
37
+    return $this->gettok($path, $delimiter, 0);
38 38
   }
39 39
 
40 40
   private function evalSubPath($path, $delimiter, $default) {
Please login to merge, or discard this 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.