Completed
Push — master ( a062c5...760426 )
by Phecho
22:04 queued 09:47
created
app/Http/Controllers/Dashboard/TeamController.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,6 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * Shows the project team view.
148 148
      *
149
-     * @param \Gitamin\Models\ProjectTeam $team
150 149
      *
151 150
      * @return \Illuminate\View\View
152 151
      */
@@ -184,7 +183,7 @@  discard block
 block discarded – undo
184 183
     /**
185 184
      * Updates a project.
186 185
      *
187
-     * @param \Gitamin\Models\Project $projects
186
+     * @param \Gitamin\Models\Project $project
188 187
      *
189 188
      * @return \Illuminate\Http\RedirectResponse
190 189
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         $tags = preg_split('/ ?, ?/', $tags);
208 208
 
209 209
         // For every tag, do we need to create it?
210
-        $projectTags = array_map(function ($taggable) use ($project) {
210
+        $projectTags = array_map(function($taggable) use ($project) {
211 211
             return Tag::firstOrCreate(['name' => $taggable])->id;
212 212
         }, $tags);
213 213
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         $tags = preg_split('/ ?, ?/', $tags);
256 256
 
257 257
         // For every tag, do we need to create it?
258
-        $projectTags = array_map(function ($taggable) use ($project) {
258
+        $projectTags = array_map(function($taggable) use ($project) {
259 259
             return Tag::firstOrCreate(['name' => $taggable])->id;
260 260
         }, $tags);
261 261
 
Please login to merge, or discard this patch.
app/Http/Controllers/RepositoryController.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -44,6 +44,10 @@
 block discarded – undo
44 44
         return $this->showTree($team.'/'.$project, '');
45 45
     }
46 46
 
47
+    /**
48
+     * @param string $repo
49
+     * @param string $path
50
+     */
47 51
     public function showTree($repo, $path)
48 52
     {
49 53
         $repository = $this->getRepositoryFromName([Setting::get('git_repositories_path')], $repo);
Please login to merge, or discard this patch.
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         }
154 154
 
155 155
         $allRepositories = array_unique($allRepositories, SORT_REGULAR);
156
-        uksort($allRepositories, function ($k1, $k2) {
156
+        uksort($allRepositories, function($k1, $k2) {
157 157
             return strtolower($k2) < strtolower($k1);
158 158
         });
159 159
 
Please login to merge, or discard this patch.
app/Http/helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @param string $date
45 45
      *
46
-     * @return \Jenssegers\Date\Date
46
+     * @return string
47 47
      */
48 48
     function formatted_date($date)
49 49
     {
Please login to merge, or discard this patch.
app/Http/Middleware/AppIsInstalled.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
      * We're verifying that Gitamin is correctly installed. If it is, then we're
24 24
      * redirecting the user to the dashboard so they can use Gitamin.
25 25
      *
26
-     * @param \Illuminate\Routing\Route $route
27 26
      * @param \Closure                  $next
28 27
      *
29 28
      * @return mixed
Please login to merge, or discard this patch.
app/Http/Middleware/Timezone.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
      *
21 21
      * @param \Illuminate\Http\Request $request
22 22
      * @param \Closure                 $next
23
-     * @param string                   $type
24 23
      *
25 24
      * @return mixed
26 25
      */
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/Commands/ProjectTeam/RemoveProjectTeamCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         event(new ProjectTeamWasRemovedEvent($team));
31 31
 
32 32
         // Remove the team id from all project.
33
-        $team->projects->map(function ($project) {
33
+        $team->projects->map(function($project) {
34 34
             $project->update(['team_id' => 0]);
35 35
         });
36 36
 
Please login to merge, or discard this patch.