@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | interface AuthGateway |
| 10 | 10 | { |
| 11 | - public function current():? User; |
|
| 11 | + public function current(): ? User; |
|
| 12 | 12 | public function log(User $u); |
| 13 | - public function wikiSessionId():?string; |
|
| 13 | + public function wikiSessionId(): ?string; |
|
| 14 | 14 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $httpClient = new Client(); |
| 25 | 25 | |
| 26 | - PageModel::query()->where('dry', true)->chunkById(50, function ($items, $count) use($httpClient){ |
|
| 26 | + PageModel::query()->where('dry', true)->chunkById(50, function($items, $count) use($httpClient){ |
|
| 27 | 27 | $this->info(($count*50).' Pages'); |
| 28 | 28 | $pages = $items->pluck('page_id')->toArray(); |
| 29 | 29 | $pagesApiUri = config('wiki.api_uri').$this->queryPages.implode('|', $pages); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $content = json_decode($response->getBody()->getContents(), true); |
| 32 | 32 | $wikiPages = $content['query']['pages']; |
| 33 | 33 | |
| 34 | - foreach($wikiPages as $page){ |
|
| 34 | + foreach ($wikiPages as $page) { |
|
| 35 | 35 | $pageModel = PageModel::query()->where('page_id', $page['pageid'])->first(); |
| 36 | 36 | $pageModel->dry = false; |
| 37 | 37 | $pageModel->title = $page['title']; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->handlePages($pages); |
| 35 | 35 | $continue = $content['continue']['gapcontinue']; |
| 36 | 36 | |
| 37 | - while($continue !== null && $continue !== ''){ |
|
| 37 | + while ($continue !== null && $continue !== '') { |
|
| 38 | 38 | $this->info($continue); |
| 39 | 39 | |
| 40 | 40 | $pagesApiUri = config('wiki.api_uri').$queryPages.'&gapcontinue='.$continue; |