@@ -63,7 +63,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 329 | 329 | 'isCamelCase' => false, |
| 330 | 330 | ), |
| 331 | 331 | 'href' => |
| 332 | - array ( |
|
| 332 | + array( |
|
| 333 | 333 | 'name' => 'href', |
| 334 | 334 | 'allownull' => true, |
| 335 | 335 | 'default' => '', |
@@ -8,7 +8,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 395 | 395 | 'isCamelCase' => false, |
| 396 | 396 | ), |
| 397 | 397 | 'href' => |
| 398 | - array ( |
|
| 398 | + array( |
|
| 399 | 399 | 'name' => 'href', |
| 400 | 400 | 'allownull' => true, |
| 401 | 401 | 'default' => '', |
@@ -48,7 +48,7 @@ discard block |
||
| 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 |
||
| 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' => '', |
@@ -48,7 +48,7 @@ discard block |
||
| 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 |
||
| 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' => '', |
@@ -8,7 +8,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 341 | 341 | 'isCamelCase' => false, |
| 342 | 342 | ), |
| 343 | 343 | 'total' => |
| 344 | - array ( |
|
| 344 | + array( |
|
| 345 | 345 | 'name' => 'total', |
| 346 | 346 | 'allownull' => true, |
| 347 | 347 | 'default' => '', |