Completed
Push — master ( 47524a...34cc14 )
by Phecho
07:54 queued 53s
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/Handlers/Events/Comment/SendCommentMomentHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @param \Gitamin\Models\Comment $comment
42 42
      * @param int                     $action
43 43
      */
44
-    protected function trigger(Comment &$comment, $action)
44
+    protected function trigger(Comment & $comment, $action)
45 45
     {
46 46
         $data = [
47 47
             'target_type' => 'Comment',
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         'Gitamin\Events\Comment\CommentWasAddedEvent' => [
26 26
             'Gitamin\Handlers\Events\Comment\SendCommentMomentHandler',
27 27
         ],
28
-         // Issue email notifications
28
+            // Issue email notifications
29 29
         'Gitamin\Events\Issue\IssueWasAddedEvent' => [
30 30
             'Gitamin\Handlers\Events\Issue\SendIssueEmailNotificationHandler',
31 31
         ],
Please login to merge, or discard this patch.
app/Handlers/Events/Owner/SendOwnerMomentHandler.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
     /**
39 39
      * Trigger the moment.
40 40
      *
41
-     * @param \Gitamin\Models\Comment $comment
42 41
      * @param int                     $action
43 42
      */
44 43
     protected function trigger(Owner &$owner, $action)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @param \Gitamin\Models\Comment $comment
42 42
      * @param int                     $action
43 43
      */
44
-    protected function trigger(Owner &$owner, $action)
44
+    protected function trigger(Owner & $owner, $action)
45 45
     {
46 46
         $data = [
47 47
             'target_type' => 'Owner',
Please login to merge, or discard this patch.
app/Handlers/Events/Owner/AddOwnerAfterUserAddedHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function handle(UserEventInterface $event)
28 28
     {
29
-        if (! $event instanceof UserWasAddedEvent) {
29
+        if (!$event instanceof UserWasAddedEvent) {
30 30
             return;
31 31
         }
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @param \Gitamin\Models\User $user
40 40
      */
41
-    protected function trigger(User &$user)
41
+    protected function trigger(User & $user)
42 42
     {
43 43
         $ownerData = [
44 44
             'path' => $user->username,
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
     {
90 90
         parent::boot();
91 91
 
92
-        self::creating(function ($user) {
92
+        self::creating(function($user) {
93 93
             $ownerExists = Owner::where('path', '=', $user->username)->exists();
94 94
             if ($ownerExists) {
95 95
                 return false;
96 96
             }
97
-            if (! $user->api_key) {
97
+            if (!$user->api_key) {
98 98
                 $user->api_key = self::generateApiKey();
99 99
             }
100 100
         });
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $user = static::where('api_key', $token)->first($columns);
143 143
 
144
-        if (! $user) {
144
+        if (!$user) {
145 145
             throw new ModelNotFoundException();
146 146
         }
147 147
 
Please login to merge, or discard this patch.