@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @return string |
| 48 | 48 | */ |
| 49 | - public function getSlug() :? string |
|
| 49 | + public function getSlug() : ? string |
|
| 50 | 50 | { |
| 51 | 51 | return $this->slug; |
| 52 | 52 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @return string|null |
| 66 | 66 | */ |
| 67 | - public function getTitle() :? string |
|
| 67 | + public function getTitle() : ? string |
|
| 68 | 68 | { |
| 69 | 69 | return $this->title; |
| 70 | 70 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * @return float|null |
| 102 | 102 | */ |
| 103 | - public function getRating():? float |
|
| 103 | + public function getRating(): ? float |
|
| 104 | 104 | { |
| 105 | 105 | return $this->rating; |
| 106 | 106 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * @return string|null |
| 120 | 120 | */ |
| 121 | - public function getSummary():? string |
|
| 121 | + public function getSummary(): ? string |
|
| 122 | 122 | { |
| 123 | 123 | return $this->summary; |
| 124 | 124 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * @return string|null |
| 138 | 138 | */ |
| 139 | - public function getAuthor() :? string |
|
| 139 | + public function getAuthor() : ? string |
|
| 140 | 140 | { |
| 141 | 141 | return $this->author; |
| 142 | 142 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | $result = array_filter( |
| 96 | 96 | $this->results, |
| 97 | - function (PluginEntity $entity) use ($slug) { |
|
| 97 | + function(PluginEntity $entity) use ($slug) { |
|
| 98 | 98 | return $entity->getSlug() === $slug; |
| 99 | 99 | } |
| 100 | 100 | ); |
@@ -142,8 +142,8 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | $pc->each( |
| 145 | - function (Crawler $crawler) { |
|
| 146 | - $this->pluginListsHTML .= "<div class='plugin-card'>".$crawler->html()."</div>"; |
|
| 145 | + function(Crawler $crawler) { |
|
| 146 | + $this->pluginListsHTML .= "<div class='plugin-card'>" . $crawler->html() . "</div>"; |
|
| 147 | 147 | } |
| 148 | 148 | ); |
| 149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $rank = 1; |
| 163 | 163 | |
| 164 | 164 | $pluginCard->each( |
| 165 | - function (Crawler $crawler) use (&$rank) { |
|
| 165 | + function(Crawler $crawler) use (&$rank) { |
|
| 166 | 166 | $titleDom = $crawler->filter('h3.entry-title'); |
| 167 | 167 | if (!empty($titleDom)) { |
| 168 | 168 | $title = $titleDom->eq(0); |