@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | |
19 | 19 | public function activate() { |
20 | - if($this->enabled) { |
|
20 | + if ($this->enabled) { |
|
21 | 21 | throw new CrawlerAlreadyActivatedException(); |
22 | 22 | } |
23 | 23 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | return $this->save(); |
27 | 27 | } |
28 | 28 | public function deactivate() { |
29 | - if(!$this->enabled) { |
|
29 | + if (!$this->enabled) { |
|
30 | 30 | throw new CrawlerAlreadyActivatedException(); |
31 | 31 | } |
32 | 32 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | break; |
49 | 49 | } |
50 | 50 | |
51 | - if(is_null($this->crawler->latest_status)) { |
|
51 | + if (is_null($this->crawler->latest_status)) { |
|
52 | 52 | //first time it runs... |
53 | 53 | break; |
54 | 54 | } |
@@ -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'); |