@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $join->on('projects.owner_id', '=', 'owners.id'); |
168 | 168 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns); |
169 | 169 | */ |
170 | - if (! $project) { |
|
170 | + if (!$project) { |
|
171 | 171 | throw new ModelNotFoundException(); |
172 | 172 | } |
173 | 173 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function getTagsListAttribute() |
239 | 239 | { |
240 | - $tags = $this->tags->map(function ($tag) { |
|
240 | + $tags = $this->tags->map(function($tag) { |
|
241 | 241 | return $tag->name; |
242 | 242 | }); |
243 | 243 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function postUpdateProject(Project $project) |
31 | 31 | { |
32 | - if (! $project->update(Request::except(['_token']))) { |
|
32 | + if (!$project->update(Request::except(['_token']))) { |
|
33 | 33 | throw new Exception(trans('dashboard.projects.edit.failure')); |
34 | 34 | } |
35 | 35 |
@@ -81,12 +81,12 @@ |
||
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); |
@@ -79,12 +79,12 @@ |
||
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 | }; |