@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $bandNode = $node->filter('.grid-items'); |
| 51 | 51 | |
| 52 | - return $bandNode->filter('.grid-items-item')->each(function (Crawler $node, $i) : array{ |
|
| 52 | + return $bandNode->filter('.grid-items-item')->each(function(Crawler $node, $i) : array{ |
|
| 53 | 53 | return array( |
| 54 | 54 | 'image' => $this->parseImage($node->filter('.grid-items-cover-image-image img')), |
| 55 | 55 | 'name' => $this->parseString($node->filter('.grid-items-item-main-text')), |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $node = $this->crawlEventList($username); |
| 26 | 26 | |
| 27 | - $years = $node->filter('.content-top .secondary-nav-item-link')->each(function (Crawler $node, $i) : array{ |
|
| 27 | + $years = $node->filter('.content-top .secondary-nav-item-link')->each(function(Crawler $node, $i) : array{ |
|
| 28 | 28 | if ($i > 0) { |
| 29 | 29 | return (int) trim($node->text()); |
| 30 | 30 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | $node = $this->crawlEventList($username, $year, $page); |
| 51 | 51 | |
| 52 | - return $node->filter('.events-list-item')->each(function (Crawler $node, $i) : array{ |
|
| 52 | + return $node->filter('.events-list-item')->each(function(Crawler $node, $i) : array{ |
|
| 53 | 53 | $eventNode = $node->filter('.events-list-item-event--title a'); |
| 54 | 54 | |
| 55 | 55 | $id = preg_replace('/.*\/(\d+)+.*/', '$1', $this->parseUrl($eventNode)); |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | */ |
| 133 | 133 | private function filterNull(array $object): array |
| 134 | 134 | { |
| 135 | - return array_filter($object, function ($val) { |
|
| 135 | + return array_filter($object, function($val) { |
|
| 136 | 136 | return !is_null($val); |
| 137 | 137 | }); |
| 138 | 138 | } |