@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('crawler_status_logs', function (Blueprint $table) { |
|
16 | + Schema::create('crawler_status_logs', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | |
19 | 19 | $table->integer('status_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('crawler_statuses', function (Blueprint $table) { |
|
16 | + Schema::create('crawler_statuses', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | |
19 | 19 | $table->integer('crawler_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('crawlers', function (Blueprint $table) { |
|
16 | + Schema::create('crawlers', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | |
19 | 19 | $table->string('name'); |
@@ -13,8 +13,8 @@ |
||
13 | 13 | protected $table = 'crawlers'; |
14 | 14 | |
15 | 15 | protected $fillable = [ |
16 | - 'name', |
|
17 | - 'description' |
|
16 | + 'name', |
|
17 | + 'description' |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $this->getCrawler(); |
48 | 48 | |
49 | 49 | if (!$this->crawler->enabled) { |
50 | - throw new CrawlerException('Crawler (#' . $this->crawler_id . ') - crawler isnt enabled in database'); |
|
50 | + throw new CrawlerException('Crawler (#'.$this->crawler_id.') - crawler isnt enabled in database'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | |
67 | 67 | if ($this->crawler->latest_status == 3) { |
68 | - throw new CrawlerException('Crawler (#' . $this->crawler_id . ') - last run had an error'); |
|
68 | + throw new CrawlerException('Crawler (#'.$this->crawler_id.') - last run had an error'); |
|
69 | 69 | } |
70 | 70 | } else { |
71 | 71 | throw new CrawlerNotReachedTimeBetweenJobsException('Has to wait '.$checkIfCrawlerCanBeRunned['retry_in'].' more seconds to run'); |