Passed
Pull Request — 2.x (#1048)
by Antonio Carlos
07:59
created
src/Models/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
     public function scopeVisible($query)
43 43
     {
44 44
         if ($this->isFillable('publish_start_date')) {
45
-            $query->where(function ($query) {
45
+            $query->where(function($query) {
46 46
                 $query->whereNull("{$this->getTable()}.publish_start_date")->orWhere("{$this->getTable()}.publish_start_date", '<=', Carbon::now());
47 47
             });
48 48
 
49 49
             if ($this->isFillable('publish_end_date')) {
50
-                $query->where(function ($query) {
50
+                $query->where(function($query) {
51 51
                     $query->whereNull("{$this->getTable()}.publish_end_date")->orWhere("{$this->getTable()}.publish_end_date", '>=', Carbon::now());
52 52
                 });
53 53
             }
Please login to merge, or discard this patch.