@@ -9,6 +9,6 @@ |
||
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 |
@@ -90,8 +90,7 @@ discard block |
||
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 |
||
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 | } |