Passed
Push — master ( 247079...248e3c )
by
unknown
02:21
created
src/Model/Article.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $category = '',
140 140
         $editor = ''
141 141
     ) {
142
-        if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) {
142
+        if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) {
143 143
             throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType));
144 144
         }
145 145
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             self::CATEGORY_LAIN_LAIN
181 181
         ];
182 182
 
183
-        if (! in_array($categoryId, $allowedCategory, true)) {
183
+        if (!in_array($categoryId, $allowedCategory, true)) {
184 184
             throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory));
185 185
         }
186 186
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $editor = ''
141 141
     ) {
142 142
         if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) {
143
-            throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType));
143
+            throw new \InvalidArgumentException("Invalid typeId : ${typeid}, allowed typeId are " . implode(', ', $allowedType));
144 144
         }
145 145
 
146 146
         $allowedCategory = [
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         ];
182 182
 
183 183
         if (! in_array($categoryId, $allowedCategory, true)) {
184
-            throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory));
184
+            throw new \InvalidArgumentException("Invalid categoryId : ${categoryid}, allowed category are " . implode(', ', $allowedCategory));
185 185
         }
186 186
 
187 187
         $this->collection = new Collection([
Please login to merge, or discard this patch.
src/Model/Video.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
             'duration' => $duration
31 31
         ];
32 32
 
33
-        if (! empty($source)) {
33
+        if (!empty($source)) {
34 34
             $properties['source'] = $this->filterUriInstance($source);
35 35
         }
36 36
 
37
-        if (! empty($cover)) {
37
+        if (!empty($cover)) {
38 38
             $properties['cover'] = $this->filterUriInstance($cover);
39 39
         }
40 40
 
41
-        if (! empty($ratio)) {
41
+        if (!empty($ratio)) {
42 42
             $properties['ratio'] = $this->filterStringInstance($ratio);
43 43
         }
44 44
 
Please login to merge, or discard this patch.