Completed
Push — master ( e87053...ec70af )
by Mārtiņš
02:10
created
src/Structures/ArtworkItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
         $item->artworkId = $raw['artworkId'];
90 90
         $item->name = $raw['name'];
91
-        $item->isPublic = (bool)$raw['isPublic'];
92
-        $item->isProcessing = (bool)$raw['isProcessing'];
91
+        $item->isPublic = (bool) $raw['isPublic'];
92
+        $item->isProcessing = (bool) $raw['isProcessing'];
93 93
         if (isset($raw['description'])) {
94 94
             $item->description = $raw['description'];
95 95
         }
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
         $item->mainArtworkFile = ArtworkFileItem::fromArray($raw['mainArtworkFile']);
103 103
 
104 104
         if (isset($raw['artworkFiles'])) {
105
-            $item->artworkFiles = array_map(function ($v) {
105
+            $item->artworkFiles = array_map(function($v) {
106 106
                 return ArtworkFileItem::fromArray($v);
107 107
             }, $raw['artworkFiles']);
108 108
         }
109 109
 
110 110
         if (isset($raw['artworkProducts'])) {
111
-            $item->artworkProducts = array_map(function ($v) {
111
+            $item->artworkProducts = array_map(function($v) {
112 112
                 return ArtworkProductItem::fromArray($v);
113 113
             }, $raw['artworkProducts']);
114 114
         }
Please login to merge, or discard this patch.
src/Structures/ArtworkListItem.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@
 block discarded – undo
43 43
     {
44 44
         $item = new self;
45 45
 
46
-        $item->page = (int)$raw['pagination']['page'];
47
-        $item->perPage = (int)$raw['pagination']['perPage'];
48
-        $item->totalPages = (int)$raw['pagination']['totalPages'];
49
-        $item->total = (int)$raw['pagination']['total'];
46
+        $item->page = (int) $raw['pagination']['page'];
47
+        $item->perPage = (int) $raw['pagination']['perPage'];
48
+        $item->totalPages = (int) $raw['pagination']['totalPages'];
49
+        $item->total = (int) $raw['pagination']['total'];
50 50
 
51
-        $item->items = array_map(function ($v) {
51
+        $item->items = array_map(function($v) {
52 52
             return ArtworkItem::fromArray($v);
53 53
         }, $raw['artworks']);
54 54
 
Please login to merge, or discard this patch.