@@ -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' => '', |