Completed
Push — master ( dbbd2c...38f0e9 )
by Phecho
60:32 queued 53:51
created
app/Handlers/Commands/Issue/UpdateIssueCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'team_id'     => $command->team_id,
55 55
         ];
56 56
 
57
-        return array_filter($params, function ($val) {
57
+        return array_filter($params, function($val) {
58 58
             return $val !== null;
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Handlers/Commands/Project/AddProjectCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'team_id'     => $command->team_id,
55 55
         ];
56 56
 
57
-        return array_filter($params, function ($val) {
57
+        return array_filter($params, function($val) {
58 58
             return $val !== null;
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Http/Routes/AuthRoutes.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
             'middleware' => ['app.hasSetting', 'guest'],
30 30
             'setting'    => 'app_name',
31 31
             'as'         => 'signup.',
32
-        ], function ($router) {
32
+        ], function($router) {
33 33
             $router->get('signup/invite/{code}', [
34 34
                 'as'   => 'invite',
35 35
                 'uses' => 'SignupController@getSignup',
Please login to merge, or discard this patch.
app/Models/Subscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         parent::boot();
74 74
 
75
-        self::creating(function ($user) {
75
+        self::creating(function($user) {
76 76
             if (!$user->api_key) {
77 77
                 $user->api_key = self::generateApiKey();
78 78
             }
Please login to merge, or discard this patch.
app/Http/Controllers/Dashboard/UserController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use AltThree\Validator\ValidationException;
15 15
 use Gitamin\Models\User;
16
-use Gitamin\Models\Role;
17
-use Gitamin\Models\Permission;
18 16
 use GrahamCampbell\Binput\Facades\Binput;
19 17
 use Illuminate\Routing\Controller;
20 18
 use Illuminate\Support\Facades\Auth;
Please login to merge, or discard this patch.
app/Http/Controllers/FeedController.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,24 +22,24 @@
 block discarded – undo
22 22
 class FeedController extends Controller
23 23
 {
24 24
     /**
25
-    * Instance of Feed.
26
-    *
27
-    * @var Roumen\Feed\Facades\Feed
28
-    */
25
+     * Instance of Feed.
26
+     *
27
+     * @var Roumen\Feed\Facades\Feed
28
+     */
29 29
     private $feed;
30 30
 
31 31
     /**
32
-    * Whether it is a RSS Feed.
33
-    *
34
-    * @var bool
35
-    */
32
+     * Whether it is a RSS Feed.
33
+     *
34
+     * @var bool
35
+     */
36 36
     private $isRss;
37 37
 
38 38
     /**
39
-    * Create a new feed controller instance.
40
-    *
41
-    * @return void
42
-    */
39
+     * Create a new feed controller instance.
40
+     *
41
+     * @return void
42
+     */
43 43
     public function __construct()
44 44
     {
45 45
         $this->feed = Feed::make();
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Generates an Atom feed of all issues.
54 54
      *
55
-     * @param \Gitamin\Models\ProjectTeam|null $namespace
55
+     * @param null|ProjectNamespace $namespace
56 56
      *
57 57
      * @return \Illuminate\Http\Response
58 58
      */
@@ -66,7 +66,6 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * Generates an Rss feed of all issues.
68 68
      *
69
-     * @param \Gitamin\Models\ProjectTeam|null $group
70 69
      *
71 70
      * @return \Illuminate\Http\Response
72 71
      */
@@ -81,7 +80,7 @@  discard block
 block discarded – undo
81 80
     /**
82 81
      * Generates an Atom feed of all issues.
83 82
      *
84
-     * @param \Gitamin\Models\ProjectTeam|null $namespace
83
+     * @param null|ProjectNamespace $namespace
85 84
      *
86 85
      * @return \Illuminate\Http\Response
87 86
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,13 +88,13 @@
 block discarded – undo
88 88
     public function feedAction(ProjectNamespace $namespace = null)
89 89
     {
90 90
         if ($namespace->exists) {
91
-            $namespace->projects->map(function ($project) {
92
-                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) {
91
+            $namespace->projects->map(function($project) {
92
+                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) {
93 93
                     $this->feedAddItem($issue);
94 94
                 });
95 95
             });
96 96
         } else {
97
-            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) {
97
+            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) {
98 98
                 $this->feedAddItem($issue);
99 99
             });
100 100
         }
Please login to merge, or discard this patch.
app/Composers/AppComposer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Gitamin\Composers;
13 13
 
14 14
 use Gitamin\Facades\Setting;
15
-use GrahamCampbell\Markdown\Facades\Markdown;
16 15
 use Illuminate\Contracts\View\View;
17 16
 use Illuminate\Support\Facades\Config;
18 17
 
Please login to merge, or discard this patch.
app/Http/Controllers/AuthController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 use Illuminate\Routing\Controller;
16 16
 use Illuminate\Support\Facades\Auth;
17 17
 use Illuminate\Support\Facades\Redirect;
18
-use Illuminate\Support\Facades\Request;
19
-use Illuminate\Support\Facades\Session;
20 18
 use Illuminate\Support\Facades\View;
21 19
 
22 20
 class AuthController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $allIssues = Issue::whereBetween('created_at', [
88 88
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
89 89
             $this->startDate->format('Y-m-d').' 23:59:59',
90
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) {
90
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) {
91 91
             return (new Date($issue->created_at))
92 92
                 ->setTimezone($this->dateTimeZone)->toDateString();
93 93
         });
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         }
103 103
 
104 104
         // Sort the array so it takes into account the added days
105
-        $allIssues = $allIssues->sortBy(function ($value, $key) {
105
+        $allIssues = $allIssues->sortBy(function($value, $key) {
106 106
             return strtotime($key);
107 107
         }, SORT_REGULAR, false);
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $allSubscribers = Subscriber::whereBetween('created_at', [
120 120
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
121 121
             $this->startDate->format('Y-m-d').' 23:59:59',
122
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Subscriber $issue) {
122
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Subscriber $issue) {
123 123
             return (new Date($issue->created_at))
124 124
                 ->setTimezone($this->dateTimeZone)->toDateString();
125 125
         });
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         }
135 135
 
136 136
         // Sort the array so it takes into account the added days
137
-        $allSubscribers = $allSubscribers->sortBy(function ($value, $key) {
137
+        $allSubscribers = $allSubscribers->sortBy(function($value, $key) {
138 138
             return strtotime($key);
139 139
         }, SORT_REGULAR, false);
140 140
 
Please login to merge, or discard this patch.