Completed
Push — master ( 9205ec...3b76a4 )
by Michał
04:04
created
src/Utils/Camelizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
      */
10 10
     public function camelize($scored)
11 11
     {
12
-        return lcfirst(implode('',array_map('ucfirst', array_map('strtolower', explode('_', $scored)))));
12
+        return lcfirst(implode('', array_map('ucfirst', array_map('strtolower', explode('_', $scored)))));
13 13
     }
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
src/Parser.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@  discard block
 block discarded – undo
90 90
                 try
91 91
                 {
92 92
                     $property = $reflection->getProperty($place);
93
-                }
94
-                catch (\Exception $e)
93
+                } catch (\Exception $e)
95 94
                 {
96 95
                     $property = null;
97 96
                 }
@@ -100,18 +99,15 @@  discard block
 block discarded – undo
100 99
                 if ($property && $property->isPublic())
101 100
                 {
102 101
                     $c = $c->{$place};
103
-                }
104
-                else if ($reflection->hasMethod($methodName))
102
+                } else if ($reflection->hasMethod($methodName))
105 103
                 {
106 104
                     $c = call_user_func(array($c, $methodName));
107
-                }
108
-                else
105
+                } else
109 106
                 {
110 107
                     $message = "Class %s has not property or getter for: %s. Full path: %s";
111 108
                     throw new \Exception(sprintf($message, get_class($c), $place, join('.', $places)));
112 109
                 }
113
-            }
114
-            else if (is_array($c))
110
+            } else if (is_array($c))
115 111
             {
116 112
                 $c = $c[$place];
117 113
             }
Please login to merge, or discard this patch.