Completed
Branch master (2d89f6)
by Vladislav
03:27 queued 01:30
created
src/Hydrator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace RainbowCat\Hydrator;
4 4
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 } elseif (isset($this->reflectionProperties[$propertyName])) {
85 85
                     $this->reflectionProperties[$propertyName]->setValue($object, $data[$dataKey]);
86 86
                 } else {
87
-                    throw new InvalidArgumentException('Class '. $this->className .' doesn\'t have property $'. $propertyName .'.');
87
+                    throw new InvalidArgumentException('Class '.$this->className.' doesn\'t have property $'.$propertyName.'.');
88 88
                 }
89 89
             }
90 90
         }
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function validateObject($object)
126 126
     {
127
-        if ( ! is_object($object) || $this->className !== get_class($object) ) {
128
-            throw new InvalidArgumentException('Argument $object must be an instance of '. $this->className .'.');
127
+        if ( ! is_object($object) || $this->className !== get_class($object)) {
128
+            throw new InvalidArgumentException('Argument $object must be an instance of '.$this->className.'.');
129 129
         }
130 130
     }
131 131
     
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                 $ucPropertyName = ucfirst($propertyName);
165 165
                 
166 166
                 if ( ! $this->ignoreSetters) {
167
-                    $propertySetterName = 'set'. $ucPropertyName;
167
+                    $propertySetterName = 'set'.$ucPropertyName;
168 168
                     
169 169
                     if ($this->isMethodExistsAndCallable($reflectionClass, $propertySetterName)) {
170 170
                         $this->propertySetters[$propertyName] = $propertySetterName;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 }
173 173
                 
174 174
                 if ( ! $this->ignoreGetters) {
175
-                    $propertyGetterName = 'get'. $ucPropertyName;
175
+                    $propertyGetterName = 'get'.$ucPropertyName;
176 176
                     
177 177
                     if ($this->isMethodExistsAndCallable($reflectionClass, $propertyGetterName)) {
178 178
                         $this->propertyGetters[$propertyName] = $propertyGetterName;
Please login to merge, or discard this patch.