Passed
Pull Request — master (#1)
by Rafal
07:10
created
src/Application/SpotifyApiAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function getAccessByRefreshToken(string $refreshAccessToken) : string
55 55
     {
56
-        if( $this->session->refreshAccessToken($refreshAccessToken) !== true ) {
56
+        if ($this->session->refreshAccessToken($refreshAccessToken) !== true) {
57 57
             throw new \RuntimeException(Message::ERROR_GET_REFRESH_TOKEN_BY_CODE);
58 58
         }
59 59
         return $this->session->getAccessToken();
Please login to merge, or discard this patch.
src/Application/SpotifyWebApiPhp/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param array $options
27 27
      * @return string
28 28
      */
29
-    public function getAuthorizeUrl(array $options = []) : string
29
+    public function getAuthorizeUrl(array $options = [ ]) : string
30 30
     {
31 31
         return $this->baseSession->getAuthorizeUrl($options);
32 32
     }
Please login to merge, or discard this patch.
src/Application/SpotifyWebApiPhp/SessionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
      * @param array $options
10 10
      * @return string
11 11
      */
12
-    public function getAuthorizeUrl(array $options = []): string;
12
+    public function getAuthorizeUrl(array $options = [ ]): string;
13 13
 
14 14
     /**
15 15
      * @param string $authorizationCode
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function __construct()
17 17
     {
18
-        $envFile = __DIR__ . '/../.env';
18
+        $envFile = __DIR__.'/../.env';
19 19
         if (!file_exists($envFile)) {
20 20
             throw new \RuntimeException('Pleas create ".env"-File and fill this file with info');
21 21
         }
Please login to merge, or discard this patch.
config/config_default.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 use \Xervice\DataProvider\DataProviderConfig;
4 4
 
5
-$config[DataProviderConfig::DATA_PROVIDER_GENERATED_PATH] =  dirname(__DIR__) . '/src/Domain/DataTransferObject';
5
+$config[ DataProviderConfig::DATA_PROVIDER_GENERATED_PATH ] = dirname(__DIR__).'/src/Domain/DataTransferObject';
6 6
 
7
-$config[DataProviderConfig::DATA_PROVIDER_PATHS] = [
8
-    __DIR__ . '/xervice/schema'
7
+$config[ DataProviderConfig::DATA_PROVIDER_PATHS ] = [
8
+    __DIR__.'/xervice/schema'
9 9
 ];
10 10
 
11
-$config[DataProviderConfig::DATA_PROVIDER_NAMESPACE] = 'SpotifyApiConnect\\Domain\\DataTransferObject';
12 11
\ No newline at end of file
12
+$config[ DataProviderConfig::DATA_PROVIDER_NAMESPACE ] = 'SpotifyApiConnect\\Domain\\DataTransferObject';
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
src/Domain/DataTransferObject/ArtistDataProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function hasExternal_urls()
65 65
     {
66
-        return ($this->external_urls !== null && $this->external_urls !== []);
66
+        return ($this->external_urls !== null && $this->external_urls !== [ ]);
67 67
     }
68 68
 
69 69
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function hasId()
106 106
     {
107
-        return ($this->id !== null && $this->id !== []);
107
+        return ($this->id !== null && $this->id !== [ ]);
108 108
     }
109 109
 
110 110
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function hasUri()
147 147
     {
148
-        return ($this->uri !== null && $this->uri !== []);
148
+        return ($this->uri !== null && $this->uri !== [ ]);
149 149
     }
150 150
 
151 151
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     public function hasType()
188 188
     {
189
-        return ($this->type !== null && $this->type !== []);
189
+        return ($this->type !== null && $this->type !== [ ]);
190 190
     }
191 191
 
192 192
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function hasName()
229 229
     {
230
-        return ($this->name !== null && $this->name !== []);
230
+        return ($this->name !== null && $this->name !== [ ]);
231 231
     }
232 232
 
233 233
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      */
269 269
     public function hasHref()
270 270
     {
271
-        return ($this->href !== null && $this->href !== []);
271
+        return ($this->href !== null && $this->href !== [ ]);
272 272
     }
273 273
 
274 274
 
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
      */
278 278
     protected function getElements(): array
279 279
     {
280
-        return array (
280
+        return array(
281 281
           'external_urls' =>
282
-          array (
282
+          array(
283 283
             'name' => 'external_urls',
284 284
             'allownull' => true,
285 285
             'default' => '',
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             'isCamelCase' => false,
290 290
           ),
291 291
           'id' =>
292
-          array (
292
+          array(
293 293
             'name' => 'id',
294 294
             'allownull' => true,
295 295
             'default' => '',
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             'isCamelCase' => false,
300 300
           ),
301 301
           'uri' =>
302
-          array (
302
+          array(
303 303
             'name' => 'uri',
304 304
             'allownull' => true,
305 305
             'default' => '',
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             'isCamelCase' => false,
310 310
           ),
311 311
           'type' =>
312
-          array (
312
+          array(
313 313
             'name' => 'type',
314 314
             'allownull' => true,
315 315
             'default' => '',
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             'isCamelCase' => false,
320 320
           ),
321 321
           'name' =>
322
-          array (
322
+          array(
323 323
             'name' => 'name',
324 324
             'allownull' => true,
325 325
             'default' => '',
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
             'isCamelCase' => false,
330 330
           ),
331 331
           'href' =>
332
-          array (
332
+          array(
333 333
             'name' => 'href',
334 334
             'allownull' => true,
335 335
             'default' => '',
Please login to merge, or discard this patch.
src/Domain/DataTransferObject/TrackDataProvider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 final class TrackDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface
9 9
 {
10 10
     /** @var \SpotifyApiConnect\Domain\DataTransferObject\ArtistDataProvider[] */
11
-    protected $artists = [];
11
+    protected $artists = [ ];
12 12
 
13 13
     /** @var \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider */
14 14
     protected $external_urls;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function hasArtists()
68 68
     {
69
-        return ($this->artists !== null && $this->artists !== []);
69
+        return ($this->artists !== null && $this->artists !== [ ]);
70 70
     }
71 71
 
72 72
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function addartist(ArtistDataProvider $artist)
78 78
     {
79
-        $this->artists[] = $artist; return $this;
79
+        $this->artists[ ] = $artist; return $this;
80 80
     }
81 81
 
82 82
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function hasExternal_urls()
119 119
     {
120
-        return ($this->external_urls !== null && $this->external_urls !== []);
120
+        return ($this->external_urls !== null && $this->external_urls !== [ ]);
121 121
     }
122 122
 
123 123
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function hasId()
160 160
     {
161
-        return ($this->id !== null && $this->id !== []);
161
+        return ($this->id !== null && $this->id !== [ ]);
162 162
     }
163 163
 
164 164
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function hasUri()
201 201
     {
202
-        return ($this->uri !== null && $this->uri !== []);
202
+        return ($this->uri !== null && $this->uri !== [ ]);
203 203
     }
204 204
 
205 205
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function hasType()
242 242
     {
243
-        return ($this->type !== null && $this->type !== []);
243
+        return ($this->type !== null && $this->type !== [ ]);
244 244
     }
245 245
 
246 246
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     public function hasName()
283 283
     {
284
-        return ($this->name !== null && $this->name !== []);
284
+        return ($this->name !== null && $this->name !== [ ]);
285 285
     }
286 286
 
287 287
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function hasHref()
324 324
     {
325
-        return ($this->href !== null && $this->href !== []);
325
+        return ($this->href !== null && $this->href !== [ ]);
326 326
     }
327 327
 
328 328
 
@@ -331,9 +331,9 @@  discard block
 block discarded – undo
331 331
      */
332 332
     protected function getElements(): array
333 333
     {
334
-        return array (
334
+        return array(
335 335
           'artists' =>
336
-          array (
336
+          array(
337 337
             'name' => 'artists',
338 338
             'allownull' => true,
339 339
             'default' => '',
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             'singleton_type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ArtistDataProvider',
346 346
           ),
347 347
           'external_urls' =>
348
-          array (
348
+          array(
349 349
             'name' => 'external_urls',
350 350
             'allownull' => true,
351 351
             'default' => '',
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             'isCamelCase' => false,
356 356
           ),
357 357
           'id' =>
358
-          array (
358
+          array(
359 359
             'name' => 'id',
360 360
             'allownull' => true,
361 361
             'default' => '',
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
             'isCamelCase' => false,
366 366
           ),
367 367
           'uri' =>
368
-          array (
368
+          array(
369 369
             'name' => 'uri',
370 370
             'allownull' => true,
371 371
             'default' => '',
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
             'isCamelCase' => false,
376 376
           ),
377 377
           'type' =>
378
-          array (
378
+          array(
379 379
             'name' => 'type',
380 380
             'allownull' => true,
381 381
             'default' => '',
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             'isCamelCase' => false,
386 386
           ),
387 387
           'name' =>
388
-          array (
388
+          array(
389 389
             'name' => 'name',
390 390
             'allownull' => true,
391 391
             'default' => '',
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             'isCamelCase' => false,
396 396
           ),
397 397
           'href' =>
398
-          array (
398
+          array(
399 399
             'name' => 'href',
400 400
             'allownull' => true,
401 401
             'default' => '',
Please login to merge, or discard this patch.
src/Domain/DataTransferObject/ItemDataProvider.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 hasTrack()
50 50
     {
51
-        return ($this->track !== null && $this->track !== []);
51
+        return ($this->track !== null && $this->track !== [ ]);
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
           'track' =>
62
-          array (
62
+          array(
63 63
             'name' => 'track',
64 64
             'allownull' => true,
65 65
             'default' => '',
Please login to merge, or discard this patch.
src/Domain/DataTransferObject/ExternalUrlDataProvider.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 hasSpotify()
50 50
     {
51
-        return ($this->spotify !== null && $this->spotify !== []);
51
+        return ($this->spotify !== null && $this->spotify !== [ ]);
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
           'spotify' =>
62
-          array (
62
+          array(
63 63
             'name' => 'spotify',
64 64
             'allownull' => true,
65 65
             'default' => '',
Please login to merge, or discard this patch.