Passed
Push — master ( e5ac3d...ac2aaf )
by Fran
02:37
created
src/base/dto/Dto.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
                             }
58 58
                         }
59 59
                         $dto[$property->getName()] = $value;
60
-                    } else {
60
+                    }else {
61 61
                         $type = InjectorHelper::extractVarType($property->getDocComment());
62 62
                         $dto[$property->getName()] = $this->checkCastedValue($property->getValue($this), $type ?: 'string');
63 63
                     }
64 64
                 }
65 65
             }
66
-        } catch (\Exception $e) {
67
-            Logger::log(get_class($this) . ': ' . $e->getMessage(), LOG_ERR);
66
+        }catch (\Exception $e) {
67
+            Logger::log(get_class($this).': '.$e->getMessage(), LOG_ERR);
68 68
         }
69 69
         return $dto;
70 70
     }
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
                             $this->$key[] = $dto;
102 102
                         }
103 103
                     }
104
-                } else {
104
+                }else {
105 105
                     $this->$key = clone $this->__cache[$type];
106 106
                     $this->$key->fromArray($value);
107 107
                 }
108 108
             }
109
-        } else {
109
+        }else {
110 110
             $this->castValue($key, $value, $type);
111 111
         }
112 112
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * @return mixed
135 135
      */
136
-    public function jsonSerialize(): array|string|null
136
+    public function jsonSerialize(): array | string | null
137 137
     {
138 138
         return $this->toArray();
139 139
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                         foreach ($rawValue as $k => $v) {
184 184
                             $value[$k] = htmlentities($v, ENT_QUOTES, 'UTF-8');
185 185
                         }
186
-                    } else {
186
+                    }else {
187 187
                         $value = htmlentities($rawValue, ENT_QUOTES, 'UTF-8');
188 188
                     }
189 189
                     break;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                     $value = (bool)$rawValue;
201 201
                     break;
202 202
             }
203
-        } else {
203
+        }else {
204 204
             $value = $rawValue;
205 205
         }
206 206
         return $value;
Please login to merge, or discard this patch.