Passed
Pull Request — main (#16)
by Artem
02:19
created
src/Entity/AbstractContent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
      * @return AbstractContent|ContentPage|ContentComment
272 272
      * @throws HydrationException
273 273
      */
274
-    public static function load(array $data): ContentComment|AbstractContent|ContentPage
274
+    public static function load(array $data): ContentComment | AbstractContent | ContentPage
275 275
     {
276 276
         /* handle older content versions */
277
-        if(isset($data['content'], $data['when'])) {
277
+        if (isset($data['content'], $data['when'])) {
278 278
             return self::load($data['content']);
279 279
         }
280 280
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             $content->setContent((string)$data['body']['storage']['value']);
305 305
         }
306 306
 
307
-        if(isset($data['status'])) {
307
+        if (isset($data['status'])) {
308 308
             Assert::string($data['status']);
309 309
             $content->setLatest($data['status'] === 'current');
310 310
         }
Please login to merge, or discard this patch.
src/Api/Content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
 
87 87
         $queryParameter['expand'] = self::DEFAULT_EXPAND;
88 88
 
89
-        if($limit !== null) {
89
+        if ($limit !== null) {
90 90
             $queryParameter['limit'] = $limit;
91 91
         }
92 92
 
93
-        if($start !== null) {
93
+        if ($start !== null) {
94 94
             $queryParameter['start'] = $start;
95 95
         }
96 96
 
Please login to merge, or discard this patch.