Passed
Pull Request — master (#1)
by Rafal
07:10
created
src/Domain/DataTransferObject/PlaylistDataProvider.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function hasDescription()
77 77
     {
78
-        return ($this->description !== null && $this->description !== []);
78
+        return ($this->description !== null && $this->description !== [ ]);
79 79
     }
80 80
 
81 81
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function hasExternal_urls()
118 118
     {
119
-        return ($this->external_urls !== null && $this->external_urls !== []);
119
+        return ($this->external_urls !== null && $this->external_urls !== [ ]);
120 120
     }
121 121
 
122 122
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function hasFollowers()
159 159
     {
160
-        return ($this->followers !== null && $this->followers !== []);
160
+        return ($this->followers !== null && $this->followers !== [ ]);
161 161
     }
162 162
 
163 163
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function hasId()
200 200
     {
201
-        return ($this->id !== null && $this->id !== []);
201
+        return ($this->id !== null && $this->id !== [ ]);
202 202
     }
203 203
 
204 204
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     public function hasHref()
241 241
     {
242
-        return ($this->href !== null && $this->href !== []);
242
+        return ($this->href !== null && $this->href !== [ ]);
243 243
     }
244 244
 
245 245
 
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     public function hasName()
282 282
     {
283
-        return ($this->name !== null && $this->name !== []);
283
+        return ($this->name !== null && $this->name !== [ ]);
284 284
     }
285 285
 
286 286
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      */
322 322
     public function hasPublic()
323 323
     {
324
-        return ($this->public !== null && $this->public !== []);
324
+        return ($this->public !== null && $this->public !== [ ]);
325 325
     }
326 326
 
327 327
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     public function hasTracks()
364 364
     {
365
-        return ($this->tracks !== null && $this->tracks !== []);
365
+        return ($this->tracks !== null && $this->tracks !== [ ]);
366 366
     }
367 367
 
368 368
 
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      */
373 373
     public function addtrack(PlaylistTracksDataProvider $track)
374 374
     {
375
-        $this->tracks[] = $track; return $this;
375
+        $this->tracks[ ] = $track; return $this;
376 376
     }
377 377
 
378 378
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      */
414 414
     public function hasType()
415 415
     {
416
-        return ($this->type !== null && $this->type !== []);
416
+        return ($this->type !== null && $this->type !== [ ]);
417 417
     }
418 418
 
419 419
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     public function hasUri()
456 456
     {
457
-        return ($this->uri !== null && $this->uri !== []);
457
+        return ($this->uri !== null && $this->uri !== [ ]);
458 458
     }
459 459
 
460 460
 
@@ -463,9 +463,9 @@  discard block
 block discarded – undo
463 463
      */
464 464
     protected function getElements(): array
465 465
     {
466
-        return array (
466
+        return array(
467 467
           'description' =>
468
-          array (
468
+          array(
469 469
             'name' => 'description',
470 470
             'allownull' => true,
471 471
             'default' => '',
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
             'isCamelCase' => false,
476 476
           ),
477 477
           'external_urls' =>
478
-          array (
478
+          array(
479 479
             'name' => 'external_urls',
480 480
             'allownull' => true,
481 481
             'default' => '',
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
             'isCamelCase' => false,
486 486
           ),
487 487
           'followers' =>
488
-          array (
488
+          array(
489 489
             'name' => 'followers',
490 490
             'allownull' => true,
491 491
             'default' => '',
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
             'isCamelCase' => false,
496 496
           ),
497 497
           'id' =>
498
-          array (
498
+          array(
499 499
             'name' => 'id',
500 500
             'allownull' => true,
501 501
             'default' => '',
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
             'isCamelCase' => false,
506 506
           ),
507 507
           'href' =>
508
-          array (
508
+          array(
509 509
             'name' => 'href',
510 510
             'allownull' => true,
511 511
             'default' => '',
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
             'isCamelCase' => false,
516 516
           ),
517 517
           'name' =>
518
-          array (
518
+          array(
519 519
             'name' => 'name',
520 520
             'allownull' => true,
521 521
             'default' => '',
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
             'isCamelCase' => false,
526 526
           ),
527 527
           'public' =>
528
-          array (
528
+          array(
529 529
             'name' => 'public',
530 530
             'allownull' => true,
531 531
             'default' => '',
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
             'isCamelCase' => false,
536 536
           ),
537 537
           'tracks' =>
538
-          array (
538
+          array(
539 539
             'name' => 'tracks',
540 540
             'allownull' => true,
541 541
             'default' => '',
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
             'singleton_type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\PlaylistTracksDataProvider',
548 548
           ),
549 549
           'type' =>
550
-          array (
550
+          array(
551 551
             'name' => 'type',
552 552
             'allownull' => true,
553 553
             'default' => '',
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
             'isCamelCase' => false,
558 558
           ),
559 559
           'uri' =>
560
-          array (
560
+          array(
561 561
             'name' => 'uri',
562 562
             'allownull' => true,
563 563
             'default' => '',
Please login to merge, or discard this patch.
src/Domain/DataTransferObject/FollowersDataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function hasTotal()
50 50
     {
51
-        return ($this->total !== null && $this->total !== []);
51
+        return ($this->total !== null && $this->total !== [ ]);
52 52
     }
53 53
 
54 54
 
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getElements(): array
59 59
     {
60
-        return array (
60
+        return array(
61 61
           'total' =>
62
-          array (
62
+          array(
63 63
             'name' => 'total',
64 64
             'allownull' => true,
65 65
             'default' => '',
Please login to merge, or discard this patch.
src/Application/SpotifyWebApiPhp/SpotifyWebApiInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param array $options
17 17
      * @return bool
18 18
      */
19
-    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = []);
19
+    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = [ ]);
20 20
 
21 21
     /**
22 22
      * @param string $userId
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
      * @param array $options
33 33
      * @return PlaylistDataProvider
34 34
      */
35
-    public function getPlaylist(string $playlistId, array $options = []) : PlaylistDataProvider;
35
+    public function getPlaylist(string $playlistId, array $options = [ ]) : PlaylistDataProvider;
36 36
 
37 37
     /**
38 38
      * @param string $userId
39 39
      * @param array $options
40 40
      * @return object
41 41
      */
42
-    public function getUserPlaylists(string $userId, array $options = []);
42
+    public function getUserPlaylists(string $userId, array $options = [ ]);
43 43
 
44 44
     /**
45 45
      * @param string $userId
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param array $options
48 48
      * @return object
49 49
      */
50
-    public function getPlaylistTracks(string $playlistId, array $options = []);
50
+    public function getPlaylistTracks(string $playlistId, array $options = [ ]);
51 51
 
52 52
     /**
53 53
      * @param string $query
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @param array $options
56 56
      * @return object
57 57
      */
58
-    public function search(string $query, array $type, array $options = []);
58
+    public function search(string $query, array $type, array $options = [ ]);
59 59
 
60 60
     /**
61 61
      * @param string $accessToken
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
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param array $options
29 29
      * @return bool
30 30
      */
31
-    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = [])
31
+    public function addUserPlaylistTracks(string $userId, string $playlistId, array $tracks, array $options = [ ])
32 32
     {
33 33
         return $this->baseSpotifyWebAPI->addUserPlaylistTracks($userId, $playlistId, $tracks, $options);
34 34
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param array $options
51 51
      * @return PlaylistDataProvider
52 52
      */
53
-    public function getPlaylist(string $playlistId, array $options = []): PlaylistDataProvider
53
+    public function getPlaylist(string $playlistId, array $options = [ ]): PlaylistDataProvider
54 54
     {
55 55
         $this->baseSpotifyWebAPI->setReturnType(Request::RETURN_ASSOC);
56 56
         $jsonObjectResult = $this->baseSpotifyWebAPI->getPlaylist($playlistId, $options);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param array $options
69 69
      * @return array|object
70 70
      */
71
-    public function getUserPlaylists(string $userId, array $options = [])
71
+    public function getUserPlaylists(string $userId, array $options = [ ])
72 72
     {
73 73
         return $this->baseSpotifyWebAPI->getUserPlaylists($userId, $options);
74 74
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param array $options
79 79
      * @return PlaylistTracksDataProvider
80 80
      */
81
-    public function getPlaylistTracks(string $playlistId, array $options = []) : PlaylistTracksDataProvider
81
+    public function getPlaylistTracks(string $playlistId, array $options = [ ]) : PlaylistTracksDataProvider
82 82
     {
83 83
         $this->baseSpotifyWebAPI->setReturnType(Request::RETURN_ASSOC);
84 84
         $jsonObjectResult = $this->baseSpotifyWebAPI->getPlaylistTracks($playlistId, $options);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param array $options
97 97
      * @return array|object
98 98
      */
99
-    public function search(string $query, array $type, array $options = [])
99
+    public function search(string $query, array $type, array $options = [ ])
100 100
     {
101 101
         return $this->baseSpotifyWebAPI->search($query, $type, $options);
102 102
     }
Please login to merge, or discard this patch.