Completed
Branch master (3026fa)
by
unknown
08:12
created
src/PropertyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function getPropertyValue($key) {
64 64
         $methodName = 'get' . $this->getMethodName($key);
65
-        if(method_exists($this, $methodName)) {
65
+        if (method_exists($this, $methodName)) {
66 66
             return $this->{$methodName}();
67 67
         }
68 68
         return false;
Please login to merge, or discard this patch.
src/HydratableTrait.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,9 +121,7 @@
 block discarded – undo
121 121
     {
122 122
         $propertyName = lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $key))));
123 123
 
124
-        return (property_exists($this, $propertyName)) ? $propertyName :
125
-            (property_exists($this, lcfirst($propertyName)) ? lcfirst($propertyName) :
126
-                preg_replace_callback('/([A-Z])/', function($match) {
124
+        return (property_exists($this, $propertyName)) ? $propertyName : (property_exists($this, lcfirst($propertyName)) ? lcfirst($propertyName) : preg_replace_callback('/([A-Z])/', function ($match) {
127 125
                     return strtolower('_' . $match[1]);
128 126
                 }, lcfirst($propertyName))
129 127
             );
Please login to merge, or discard this patch.
src/ArrayTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
      */
15 15
     public function recusiveImplode(array $array, $glue = ',')
16 16
     {
17
-        foreach($array as $key => $element) {
18
-            if(is_array($element)) {
17
+        foreach ($array as $key => $element) {
18
+            if (is_array($element)) {
19 19
                 $array[$key] = $this->recusiveImplode($element, $glue);
20 20
             }
21 21
         }
Please login to merge, or discard this patch.
src/ReflectionTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         if (preg_match('~\@var[\s]+([A-Za-z0-9\\\\]+)~', $comment, $matches)) {
26 26
             if ($includeNamespaces) {
27 27
                 if ($reflectionClass instanceof \ReflectionClass && !in_array($matches[1], HydratableTrait::$nonObjectTypes)) {
28
-                    return ($reflectionClass->getNamespaceName()) ? sprintf('\%s\%s', $reflectionClass->getNamespaceName(), $matches[1]) :  sprintf('\%s', $matches[1]);
28
+                    return ($reflectionClass->getNamespaceName()) ? sprintf('\%s\%s', $reflectionClass->getNamespaceName(), $matches[1]) : sprintf('\%s', $matches[1]);
29 29
                 }
30 30
                 return $matches[1];
31 31
             }
Please login to merge, or discard this patch.