Passed
Push — master ( 53d382...ac8e03 )
by Robin
12:47
created
src/Models/CrawlerStatus.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class CrawlerStatus extends Model
9 9
 {
10
-   use SoftDeletes;
10
+    use SoftDeletes;
11 11
 
12
-   protected $table = 'crawler_statuses';
12
+    protected $table = 'crawler_statuses';
13 13
 }
Please login to merge, or discard this patch.
src/Models/CrawlerStatusLogs.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,5 +7,5 @@
 block discarded – undo
7 7
 
8 8
 class CrawlerStatusLogs extends Model
9 9
 {
10
-   use SoftDeletes;
10
+    use SoftDeletes;
11 11
 }
Please login to merge, or discard this patch.
src/Models/Crawlers.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@
 block discarded – undo
8 8
 
9 9
 class Crawlers extends Model
10 10
 {
11
-   use SoftDeletes;
11
+    use SoftDeletes;
12 12
 
13
-   protected $fillable = [
14
-       'name',
15
-       'description'
16
-   ];
13
+    protected $fillable = [
14
+        'name',
15
+        'description'
16
+    ];
17 17
 
18 18
 
19
-   public function activate() {
20
-       if($this->enabled) {
21
-           throw new CrawlerAlreadyActivatedException();
22
-       }
19
+    public function activate() {
20
+        if($this->enabled) {
21
+            throw new CrawlerAlreadyActivatedException();
22
+        }
23 23
 
24
-       $this->enabled = true;
24
+        $this->enabled = true;
25 25
 
26
-       return $this->save();
27
-   }
28
-   public function deactivate() {
29
-       if(!$this->enabled) {
30
-           throw new CrawlerAlreadyActivatedException();
31
-       }
26
+        return $this->save();
27
+    }
28
+    public function deactivate() {
29
+        if(!$this->enabled) {
30
+            throw new CrawlerAlreadyActivatedException();
31
+        }
32 32
 
33
-       $this->enabled = false;
33
+        $this->enabled = false;
34 34
 
35
-       return $this->save();
36
-   }
35
+        return $this->save();
36
+    }
37 37
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Http/Controllers/CrawlController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
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.