Completed
Push — master ( 54d408...6553f8 )
by Robin
09:01 queued 06:07
created
src/migrations/2018_08_06_143914_create_crawler_status_logs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/migrations/2018_08_06_143911_create_crawler_status_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/migrations/2018_08_06_143904_create_crawlers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Models/Crawlers.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/Controllers/CrawlController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.