Completed
Push — master ( f3c520...7ea85d )
by Phecho
03:40
created
app/Scopes/VisibilityScope.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@
 block discarded – undo
81 81
     {
82 82
         $isPrivate = function ($query) use ($user) {
83 83
             $query->where('visibility_level', '=', self::VISIBILITY_PRIVATE)
84
-                  ->where("{$this->tableName}.creator_id", '=', $user->id);
84
+                    ->where("{$this->tableName}.creator_id", '=', $user->id);
85 85
         };
86 86
 
87 87
         $whereVisible = function ($query) use ($isPrivate) {
88 88
             $query->whereIn('visibility_level', [self::VISIBILITY_PUBLIC, self::VISIBILITY_LOGGED_IN])
89
-                  ->orWhere($isPrivate);
89
+                    ->orWhere($isPrivate);
90 90
         };
91 91
 
92 92
         return $query->where($whereVisible);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,12 +79,12 @@
 block discarded – undo
79 79
      */
80 80
     public function applyLoggedInScope(Builder $query, User $user)
81 81
     {
82
-        $isPrivate = function ($query) use ($user) {
82
+        $isPrivate = function($query) use ($user) {
83 83
             $query->where('visibility_level', '=', self::VISIBILITY_PRIVATE)
84 84
                   ->where("{$this->tableName}.creator_id", '=', $user->id);
85 85
         };
86 86
 
87
-        $whereVisible = function ($query) use ($isPrivate) {
87
+        $whereVisible = function($query) use ($isPrivate) {
88 88
             $query->whereIn('visibility_level', [self::VISIBILITY_PUBLIC, self::VISIBILITY_LOGGED_IN])
89 89
                   ->orWhere($isPrivate);
90 90
         };
Please login to merge, or discard this patch.