Completed
Push — master ( 4d2666...6cd91c )
by Phecho
06:30 queued 03:12
created
app/Handlers/Events/Subscriber/SendSubscriberVerificationEmailHandler.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $this->mailer->queue([
55 55
             'html' => 'emails.users.invite-html',
56 56
             'text' => 'emails.users.invite-text',
57
-        ], $mail, function (Message $message) use ($mail) {
57
+        ], $mail, function(Message $message) use ($mail) {
58 58
             $message->to($mail['email'])->subject($mail['subject']);
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Create a new send subscriber verification email handler.
29 29
      *
30
-     * @param \Illuminate\Contracts\Mail\Mailer $mailer
30
+     * @param MailQueue $mailer
31 31
      *
32 32
      * @return void
33 33
      */
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/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.
app/Http/Controllers/ProjectsController.php 4 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-    * Show the form or adding a new resource.
36
-    *
37
-    * return \Illuminate\Http\Response
38
-    */
35
+     * Show the form or adding a new resource.
36
+     *
37
+     * return \Illuminate\Http\Response
38
+     */
39 39
     public function new()
40 40
     {
41 41
         $teamId = 1;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $tags = preg_split('/ ?, ?/', $tags);
70 70
 
71 71
         // For every tag, do we need to create it?
72
-        $projectTags = array_map(function ($taggable) use ($project) {
72
+        $projectTags = array_map(function($taggable) use ($project) {
73 73
             return Tag::firstOrCreate(['name' => $taggable])->id;
74 74
         }, $tags);
75 75
 
Please login to merge, or discard this patch.
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Show the form for editing the specified resource.
110 110
      *
111
-     * @param  int  $id
112 111
      * @return \Illuminate\Http\Response
113 112
      */
114 113
     public function edit($namespace, $project_path)
@@ -127,8 +126,6 @@  discard block
 block discarded – undo
127 126
     /**
128 127
      * Update the specified resource in storage.
129 128
      *
130
-     * @param  \Illuminate\Http\Request  $request
131
-     * @param  int  $id
132 129
      * @return \Illuminate\Http\Response
133 130
      */
134 131
     public function update($namespace, $project_path)
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,13 +10,10 @@
 block discarded – undo
10 10
 use GrahamCampbell\Binput\Facades\Binput;
11 11
 use AltThree\Validator\ValidationException;
12 12
 use Gitamin\Commands\Project\AddProjectCommand;
13
-use Gitamin\Commands\Project\RemoveProjectCommand;
14 13
 use Gitamin\Commands\Project\UpdateProjectCommand;
15 14
 use Gitamin\Models\Project;
16
-use Gitamin\Models\ProjectNamespace;
17 15
 use Gitamin\Models\Group;
18 16
 use Gitamin\Models\Tag;
19
-
20 17
 use Gitamin\Http\Controllers\Controller;
21 18
 
22 19
 class ProjectsController extends Controller
Please login to merge, or discard this patch.
app/Http/Routes/AdminRoutes.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.