Completed
Pull Request — master (#103)
by Phecho
04:27
created
app/Scopes/VisibilityScope.php 1 patch
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.