Completed
Pull Request — master (#70)
by guillaume
07:15
created
app/Src/UseCases/Domain/Shared/Gateway/AuthGateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Console/Commands/SyncDryPagesFromWiki.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
app/Console/Commands/ImportAllPagesFromWiki.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.