Passed
Pull Request — master (#1)
by Rafal
01:36
created
src/Domain/DataTransferObject/PlaylistTracksDataProvider.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 final class PlaylistTracksDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface
9 9
 {
10 10
     /** @var \SpotifyApiConnect\Domain\DataTransferObject\ItemDataProvider[] */
11
-    protected $items = [];
11
+    protected $items = [ ];
12 12
 
13 13
     /** @var int */
14 14
     protected $limit;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function hasItems()
65 65
     {
66
-        return ($this->items !== null && $this->items !== []);
66
+        return ($this->items !== null && $this->items !== [ ]);
67 67
     }
68 68
 
69 69
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function additem(ItemDataProvider $item)
75 75
     {
76
-        $this->items[] = $item; return $this;
76
+        $this->items[ ] = $item; return $this;
77 77
     }
78 78
 
79 79
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function hasLimit()
116 116
     {
117
-        return ($this->limit !== null && $this->limit !== []);
117
+        return ($this->limit !== null && $this->limit !== [ ]);
118 118
     }
119 119
 
120 120
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function hasNext()
157 157
     {
158
-        return ($this->next !== null && $this->next !== []);
158
+        return ($this->next !== null && $this->next !== [ ]);
159 159
     }
160 160
 
161 161
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function hasOffset()
198 198
     {
199
-        return ($this->offset !== null && $this->offset !== []);
199
+        return ($this->offset !== null && $this->offset !== [ ]);
200 200
     }
201 201
 
202 202
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function hasPrevious()
239 239
     {
240
-        return ($this->previous !== null && $this->previous !== []);
240
+        return ($this->previous !== null && $this->previous !== [ ]);
241 241
     }
242 242
 
243 243
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     public function hasTotal()
280 280
     {
281
-        return ($this->total !== null && $this->total !== []);
281
+        return ($this->total !== null && $this->total !== [ ]);
282 282
     }
283 283
 
284 284
 
@@ -287,9 +287,9 @@  discard block
 block discarded – undo
287 287
      */
288 288
     protected function getElements(): array
289 289
     {
290
-        return array (
290
+        return array(
291 291
           'items' =>
292
-          array (
292
+          array(
293 293
             'name' => 'items',
294 294
             'allownull' => true,
295 295
             'default' => '',
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             'singleton_type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ItemDataProvider',
302 302
           ),
303 303
           'limit' =>
304
-          array (
304
+          array(
305 305
             'name' => 'limit',
306 306
             'allownull' => true,
307 307
             'default' => '',
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
             'isCamelCase' => false,
312 312
           ),
313 313
           'next' =>
314
-          array (
314
+          array(
315 315
             'name' => 'next',
316 316
             'allownull' => true,
317 317
             'default' => '',
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             'isCamelCase' => false,
322 322
           ),
323 323
           'offset' =>
324
-          array (
324
+          array(
325 325
             'name' => 'offset',
326 326
             'allownull' => true,
327 327
             'default' => '',
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             'isCamelCase' => false,
332 332
           ),
333 333
           'previous' =>
334
-          array (
334
+          array(
335 335
             'name' => 'previous',
336 336
             'allownull' => true,
337 337
             'default' => '',
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             'isCamelCase' => false,
342 342
           ),
343 343
           'total' =>
344
-          array (
344
+          array(
345 345
             'name' => 'total',
346 346
             'allownull' => true,
347 347
             'default' => '',
Please login to merge, or discard this patch.
src/Application/SpotifyWebApiPhp/SpotifyWebApi.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param array $options
27 27
      * @return bool
28 28
      */
29
-    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = [])
29
+    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = [ ])
30 30
     {
31 31
         return $this->baseSpotifyWebAPI->addUserPlaylistTracks($userId, $playlistId, $tracks, $options);
32 32
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param array $options
50 50
      * @return array|object
51 51
      */
52
-    public function getUserPlaylist(string $userId, string $playlistId, array $options = [])
52
+    public function getUserPlaylist(string $userId, string $playlistId, array $options = [ ])
53 53
     {
54 54
         return $this->baseSpotifyWebAPI->getUserPlaylist($userId, $playlistId, $options);
55 55
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param array $options
60 60
      * @return array|object
61 61
      */
62
-    public function getUserPlaylists(string $userId, array $options = [])
62
+    public function getUserPlaylists(string $userId, array $options = [ ])
63 63
     {
64 64
         return $this->baseSpotifyWebAPI->getUserPlaylists($userId, $options);
65 65
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param array $options
70 70
      * @return array|object
71 71
      */
72
-    public function getPlaylistTracks(string $playlistId, array $options = []) : PlaylistTracksDataProvider
72
+    public function getPlaylistTracks(string $playlistId, array $options = [ ]) : PlaylistTracksDataProvider
73 73
     {
74 74
         $this->baseSpotifyWebAPI->setReturnType(Request::RETURN_ASSOC);
75 75
         $jsonObjectResult = $this->baseSpotifyWebAPI->getPlaylistTracks($playlistId, $options);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param array $options
86 86
      * @return array|object
87 87
      */
88
-    public function search(string $query, array $type, array $options = [])
88
+    public function search(string $query, array $type, array $options = [ ])
89 89
     {
90 90
         return $this->baseSpotifyWebAPI->search($query, $type, $options);
91 91
     }
Please login to merge, or discard this patch.