Test Failed
Branch master (eed71b)
by
unknown
03:04
created
src/PropertyTrait.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@
 block discarded – undo
60 60
      * @param $key
61 61
      * @return mixed
62 62
      */
63
-    public function getPropertyValue($key) {
63
+    public function getPropertyValue($key)
64
+    {
64 65
         $methodName = 'get' . $this->getMethodName($key);
65 66
         if(method_exists($this, $methodName)) {
66 67
             return $this->{$methodName}();
Please login to merge, or discard this patch.
src/HydratableTrait.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@  discard block
 block discarded – undo
69 69
             // Convert key to a propertyname in $this
70 70
             try {
71 71
                 $this->hydrateProperty($itemKey, $itemValue, $reflection);
72
-            } catch (\Exception $e) {
72
+            }
73
+            catch (\Exception $e) {
73 74
                 if ($failOnError) {
74 75
                     throw $e;
75 76
                 }
@@ -113,7 +114,8 @@  discard block
 block discarded – undo
113 114
             }
114 115
 
115 116
             $this->setPropertyValue($propertyName, $value, true);
116
-        } catch (\Exception $e) {
117
+        }
118
+        catch (\Exception $e) {
117 119
             throw $e;
118 120
         }
119 121
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param  object|array $class       class
55 55
      * @param  boolean      $failOnError Throw Exception if any error(s) occur
56 56
      *
57
-     * @return object
57
+     * @return HydratableTrait
58 58
      *
59 59
      * @throws \Exception if hydration failes AND $failOnError is true
60 60
      */
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param $key
123 123
      *
124
-     * @return mixed|string
124
+     * @return string
125 125
      */
126 126
     private function resolvePropertyName($key)
127 127
     {
Please login to merge, or discard this patch.