Completed
Pull Request — master (#106)
by Phecho
05:57
created
app/Http/Controllers/Dashboard/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
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.
app/Presenters/CommentPresenter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,11 @@
 block discarded – undo
11 11
 
12 12
 namespace Gitamin\Presenters;
13 13
 
14
-use Gitamin\Facades\Setting;
15 14
 use Gitamin\Models\Moment;
16 15
 use Gitamin\Models\Comment;
17 16
 use Gitamin\Models\Issue;
18 17
 use Gitamin\Presenters\Traits\TimestampsTrait;
19 18
 use GrahamCampbell\Markdown\Facades\Markdown;
20
-use Jenssegers\Date\Date;
21 19
 
22 20
 class MomentPresenter extends AbstractPresenter
23 21
 {
Please login to merge, or discard this patch.
app/Presenters/IssuePresenter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,11 @@
 block discarded – undo
11 11
 
12 12
 namespace Gitamin\Presenters;
13 13
 
14
-use Gitamin\Facades\Setting;
15 14
 use Gitamin\Models\Moment;
16 15
 use Gitamin\Models\Comment;
17 16
 use Gitamin\Models\Issue;
18 17
 use Gitamin\Presenters\Traits\TimestampsTrait;
19 18
 use GrahamCampbell\Markdown\Facades\Markdown;
20
-use Jenssegers\Date\Date;
21 19
 
22 20
 class MomentPresenter extends AbstractPresenter
23 21
 {
Please login to merge, or discard this patch.