Completed
Pull Request — stable (#2)
by Nuno
06:11 queued 03:38
created
src/Providers/Catalog/Option.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function find(Dom $dom)
29 29
     {
30
-        return '[<info>'.static::$number++.'</info>]';
30
+        return '[<info>' . static::$number++ . '</info>]';
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Providers/Catalog/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
             $elem->getAttribute('data-day')
29 29
         )->format('Y-m-d');
30 30
 
31
-        return $date.' '.$dom->find('time')->text(true);
31
+        return $date . ' ' . $dom->find('time')->text(true);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Providers/Catalog/Title.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     private function truncate($title)
34 34
     {
35 35
         if (mb_strlen($title) > 22) {
36
-            return substr($title, 0, 20).'..';
36
+            return substr($title, 0, 20) . '..';
37 37
         }
38 38
 
39 39
         return $title;
Please login to merge, or discard this patch.
src/Interactions/Catalog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $this->output = $output;
55 55
         $this->bags = (new Jobs\Catalog\Search($config, $input))->execute();
56 56
 
57
-        $rows = array_map(function ($bag) {
57
+        $rows = array_map(function($bag) {
58 58
             return $bag->getRows();
59 59
         }, $this->bags);
60 60
 
Please login to merge, or discard this patch.
src/Http/Client/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $stringQuery = $this->strategy->getUrl();
31 31
 
32 32
         if (!empty($params = $this->strategy->getParams())) {
33
-            $stringQuery .= '?'.http_build_query($params);
33
+            $stringQuery .= '?' . http_build_query($params);
34 34
         }
35 35
 
36 36
         return $stringQuery;
Please login to merge, or discard this patch.
src/Jobs/Catalog/Search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
             $this->config->setMaxRadius($maxRadius);
20 20
         }
21 21
 
22
-        return array_map(function ($event) {
22
+        return array_map(function($event) {
23 23
             $dom = $this->dom->load($event->innerHtml);
24 24
 
25
-            return new Bag(clone $dom, array_map(function ($elem) use ($dom) {
25
+            return new Bag(clone $dom, array_map(function($elem) use ($dom) {
26 26
                 return (new $elem())->find($dom);
27 27
             }, $this->config->getCatalogProviders()));
28 28
         }, $this->getRows());
Please login to merge, or discard this patch.
src/Jobs/Catalog/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      */
83 83
     private function setHeaders()
84 84
     {
85
-        $this->headers = array_map(function ($elem) {
85
+        $this->headers = array_map(function($elem) {
86 86
             return (new $elem())->getName();
87 87
         }, $this->config->getCatalogProviders());
88 88
 
Please login to merge, or discard this patch.
src/Jobs/Detail/Search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $dom = $this->dom->load($body);
27 27
 
28
-        return array_map(function ($elem) use ($dom) {
28
+        return array_map(function($elem) use ($dom) {
29 29
             return (new $elem())->find($dom);
30 30
         }, $this->config->getDetailProviders());
31 31
     }
Please login to merge, or discard this patch.