Completed
Pull Request — master (#106)
by Phecho
03:20
created
app/Http/Controllers/RepositoryController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Gitamin\Http\Controllers;
13 13
 
14 14
 use Gitamin\Facades\Setting;
15
-use Gitamin\Models\Project;
16 15
 use Gitter\Client;
17 16
 use Illuminate\Routing\Controller;
18 17
 use Illuminate\Support\Facades\View;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $repository = $this->getRepositoryFromName([Setting::get('git_repositories_path')], $repo);
49 49
 
50
-        if (! $path) {
50
+        if (!$path) {
51 51
             $path = $repository->getHead();
52 52
         }
53 53
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $parent = null;
63 63
         if (($slash = strrpos($tree, '/')) !== false) {
64 64
             $parent = substr($tree, 0, $slash);
65
-        } elseif (! empty($tree)) {
65
+        } elseif (!empty($tree)) {
66 66
             $parent = '';
67 67
         }
68 68
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         $allRepositories = array_unique($allRepositories, SORT_REGULAR);
155
-        uksort($allRepositories, function ($k1, $k2) {
155
+        uksort($allRepositories, function($k1, $k2) {
156 156
             return strtolower($k2) < strtolower($k1);
157 157
         });
158 158
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 continue;
175 175
             }
176 176
 
177
-            if (! $file->isReadable()) {
177
+            if (!$file->isReadable()) {
178 178
                 continue;
179 179
             }
180 180
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                         $description = null;
200 200
                     }
201 201
 
202
-                    if (! $topLevel) {
202
+                    if (!$topLevel) {
203 203
                         $repoName = $file->getPathInfo()->getFilename().'/'.$file->getFilename();
204 204
                     } else {
205 205
                         $repoName = $file->getFilename();
Please login to merge, or discard this patch.
app/Presenters/IssuePresenter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Gitamin\Presenters;
13 13
 
14
-use Gitamin\Facades\Setting;
15 14
 use Gitamin\Presenters\Traits\TimestampsTrait;
16 15
 use GrahamCampbell\Markdown\Facades\Markdown;
17 16
 use Jenssegers\Date\Date;
Please login to merge, or discard this patch.
app/Composers/TimezoneLocaleComposer.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
         $enabledLangs = Config::get('langs');
31 31
 
32
-        $langs = array_map(function ($lang) use ($enabledLangs) {
32
+        $langs = array_map(function($lang) use ($enabledLangs) {
33 33
             $locale = basename($lang);
34 34
 
35 35
             return [$locale => $enabledLangs[$locale]];
Please login to merge, or discard this patch.
app/Handlers/Commands/Project/UpdateProjectCommandHandler.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/Events/User/SendInviteUserEmailHandler.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
         $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.
app/Http/Controllers/Api/ProjectController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $tags = preg_split('/ ?, ?/', Binput::get('tags'));
85 85
 
86 86
             // For every tag, do we need to create it?
87
-            $projectTags = array_map(function ($taggable) use ($project) {
87
+            $projectTags = array_map(function($taggable) use ($project) {
88 88
                 return Tag::firstOrCreate([
89 89
                     'name' => $taggable,
90 90
                 ])->id;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             $tags = preg_split('/ ?, ?/', Binput::get('tags'));
125 125
 
126 126
             // For every tag, do we need to create it?
127
-            $projectTags = array_map(function ($taggable) use ($project) {
127
+            $projectTags = array_map(function($taggable) use ($project) {
128 128
                 return Tag::firstOrCreate(['name' => $taggable])->id;
129 129
             }, $tags);
130 130
 
Please login to merge, or discard this patch.
app/Http/Routes/ApiRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'namespace'  => 'Api',
30 30
             'prefix'     => 'api/v1',
31 31
             'middleware' => ['accept:application/json', 'timezone', 'auth.api.optional'],
32
-        ], function ($router) {
32
+        ], function($router) {
33 33
             // General
34 34
             $router->get('ping', 'GeneralController@ping');
35 35
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $router->get('issues/{issue}', 'IssueController@getIssue');
45 45
 
46 46
             // Authorization Required
47
-            $router->group(['middleware' => 'auth.api'], function ($router) {
47
+            $router->group(['middleware' => 'auth.api'], function($router) {
48 48
                 $router->get('subscribers', 'SubscriberController@getSubscribers');
49 49
 
50 50
                 $router->post('projects', 'ProjectController@postProjects');
Please login to merge, or discard this patch.
app/Http/Routes/SubscribeRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
             'middleware' => ['app.hasSetting', 'localize'],
30 30
             'setting'    => 'app_name',
31 31
             'as'         => 'subscribe.',
32
-        ], function ($router) {
33
-            $router->group(['middleware' => 'app.subscribers'], function ($router) {
32
+        ], function($router) {
33
+            $router->group(['middleware' => 'app.subscribers'], function($router) {
34 34
                 $router->get('subscribe', [
35 35
                     'as'   => 'subscribe',
36 36
                     'uses' => 'SubscribeController@showSubscribe',
Please login to merge, or discard this patch.
app/Models/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         parent::boot();
42 42
 
43
-        self::creating(function ($tag) {
43
+        self::creating(function($tag) {
44 44
             $tag->slug = Str::slug($tag->name);
45 45
         });
46 46
     }
Please login to merge, or discard this patch.