Completed
Push — master ( 1ff773...5cae73 )
by Maik
08:05
created
src/Orm/OrmPersister.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,15 +119,15 @@
 block discarded – undo
119 119
     private static function persistProperty(\ReflectionProperty $property, string $class, \Nkey\Caribu\Model\AbstractModel $object, string $namespace, bool $persist)
120 120
     {
121 121
         try {
122
-            if ("" !== ($type = self::getAnnotatedType($property->getDocComment(), $namespace)) && ! self::isPrimitive($type)) {
123
-                if (! $persist && self::isCascadeAnnotated($property->getDocComment())) {
122
+            if ("" !== ($type = self::getAnnotatedType($property->getDocComment(), $namespace)) && !self::isPrimitive($type)) {
123
+                if (!$persist && self::isCascadeAnnotated($property->getDocComment())) {
124 124
                     $persist = true;
125 125
                 }
126 126
                 
127 127
                 $rfMethod = new \ReflectionMethod($class, sprintf("get%s", ucfirst($property->getName())));
128 128
                 $entity = $rfMethod->invoke($object);
129 129
                 if ($entity instanceof \Nkey\Caribu\Model\AbstractModel) {
130
-                    if (! $persist && count($pk = self::getAnnotatedPrimaryKey($type, $entity, false))) {
130
+                    if (!$persist && count($pk = self::getAnnotatedPrimaryKey($type, $entity, false))) {
131 131
                         list ($pkCol) = $pk;
132 132
                         if (!isset($pk[$pkCol]) || empty($pk[$pkCol])) {
133 133
                             $persist = true;
Please login to merge, or discard this patch.