Passed
Push — main ( 11ec11...d7c743 )
by Pranjal
02:33
created
src/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function refresh(): void{
200 200
         $model = $this->recordManager->getById($this->getName(), $this->getId());
201
-        if(!is_null($model)){
201
+        if (!is_null($model)) {
202 202
             $this->cleanModel();
203 203
             $this->setLoadedProperties($model->getSelfProperties());
204 204
             $this->setLoaded();
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      *
327 327
      * @throws Exception\InvalidModelException
328 328
      */
329
-    private function createCollection(?Collection $collection, array|Collection $models): Collection
329
+    private function createCollection(?Collection $collection, array | Collection $models): Collection
330 330
     {
331 331
         if (is_null($collection)) {
332 332
             $collection = Collection::fromIterable([]);
Please login to merge, or discard this patch.