Completed
Pull Request — master (#4)
by Robin
12:29 queued 06:35
created
src/Http/Controllers/CrawlController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 $this->getCrawler();
82 82
 
83 83
                 if (!$this->crawler->enabled) {
84
-                    throw new CrawlerException('Crawler (#' . $this->crawler_id . ') - crawler isnt enabled in database');
84
+                    throw new CrawlerException('Crawler (#'.$this->crawler_id.') - crawler isnt enabled in database');
85 85
                 }
86 86
 
87 87
                 $checkIfCrawlerCanBeRunned = $this->canCrawlerRunAfterPeriod();
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
                     if ($this->crawler->latest_status == 3) {
101
-                        throw new CrawlerException('Crawler (#' . $this->crawler_id . ') - last run had an error');
101
+                        throw new CrawlerException('Crawler (#'.$this->crawler_id.') - last run had an error');
102 102
                     }
103 103
                 } else {
104
-                    throw new CrawlerNotReachedTimeBetweenJobsException('Has to wait ' . $checkIfCrawlerCanBeRunned['retry_in'] . ' more seconds to run');
104
+                    throw new CrawlerNotReachedTimeBetweenJobsException('Has to wait '.$checkIfCrawlerCanBeRunned['retry_in'].' more seconds to run');
105 105
                 }
106 106
 
107 107
                 if ($x == $times) {
108
-                    $this->failCrawler('Crawler (#' . $this->crawler_id . ') - max execution time');
108
+                    $this->failCrawler('Crawler (#'.$this->crawler_id.') - max execution time');
109 109
                 }
110 110
 
111 111
                 if ($this->crawler->status == 1) {
Please login to merge, or discard this patch.