Completed
Push — master ( 47524a...34cc14 )
by Phecho
07:54 queued 53s
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function map(Router $router)
65 65
     {
66
-        $router->group(['namespace' => $this->namespace], function (Router $router) {
66
+        $router->group(['namespace' => $this->namespace], function(Router $router) {
67 67
             foreach (glob(app_path('Http//Routes').'/*.php') as $file) {
68 68
                 $this->app->make('Gitamin\\Http\\Routes\\'.basename($file, '.php'))->map($router);
69 69
             }
Please login to merge, or discard this patch.
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/Http/Controllers/ProjectsController.php 2 patches
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   -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,6 @@
 block discarded – undo
87 87
     /**
88 88
      * Display the specified resource.
89 89
      *
90
-     * @param string $owner
91 90
      * @param string $project_path
92 91
      *
93 92
      * @return \Illuminate\Http\Response
Please login to merge, or discard this patch.
app/Http/Routes/HelpRoutes.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/Http/Routes/ProjectsRoutes.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             'setting'    => 'app_name',
33 33
             'prefix'     => 'projects',
34 34
             'as'         => 'projects.',
35
-        ], function ($router) {
35
+        ], function($router) {
36 36
             $router->get('/', [
37 37
                 'as'   => 'index',
38 38
                 'uses' => 'ProjectsController@index',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             'middleware' => ['app.hasSetting'],
55 55
             'setting'    => 'app_name',
56 56
             'as'         => 'projects.',
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
            $router->get('{namespace}/{project}', [
59 59
                 'as'   => 'project_show',
60 60
                 'uses' => 'ProjectsController@show',
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
             'setting'    => 'app_name',
53 53
             'as'         => 'projects.',
54 54
         ], function ($router) {
55
-           $router->get('{owner_path}/{project_path}', [
55
+            $router->get('{owner_path}/{project_path}', [
56 56
                 'as'   => 'project_show',
57 57
                 'uses' => 'ProjectsController@showAction',
58 58
             ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+');
59 59
 
60
-           $router->get('{owner_path}/{project_path}/edit', [
60
+            $router->get('{owner_path}/{project_path}/edit', [
61 61
                 'as'   => 'project_edit',
62 62
                 'uses' => 'ProjectsController@editAction',
63 63
             ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+');
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 'uses' => 'Projects\\IssuesController@showAction',
91 91
             ])->where('owner_path', '[a-zA-z.0-9_\-]+')->where('project_path', '[a-zA-z.0-9_\-]+');
92 92
 
93
-             //edit
93
+                //edit
94 94
             $router->get('{owner_path}/{project_path}/issues/{issue}/edit', [
95 95
                 'as'   => 'issue_edit',
96 96
                 'uses' => 'Projects\\IssuesController@editAction',
Please login to merge, or discard this patch.
app/Http/Routes/GroupsRoutes.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             'setting'    => 'app_name',
33 33
             'prefix'     => 'projects',
34 34
             'as'         => 'projects.',
35
-        ], function ($router) {
35
+        ], function($router) {
36 36
             $router->get('/', [
37 37
                 'as'   => 'index',
38 38
                 'uses' => 'ProjectsController@index',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             'middleware' => ['app.hasSetting'],
55 55
             'setting'    => 'app_name',
56 56
             'as'         => 'projects.',
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
            $router->get('{namespace}/{project}', [
59 59
                 'as'   => 'project_show',
60 60
                 'uses' => 'ProjectsController@show',
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
             'setting'    => 'app_name',
53 53
             'as'         => 'groups.',
54 54
         ], function ($router) {
55
-           $router->get('{owner_path}', [
55
+            $router->get('{owner_path}', [
56 56
                 'as'   => 'group_show',
57 57
                 'uses' => 'GroupsController@showAction',
58 58
             ])->where('owner_path', '[a-zA-z.0-9_\-]+');
59 59
 
60
-           $router->get('{owner_path}/edit', [
60
+            $router->get('{owner_path}/edit', [
61 61
                 'as'   => 'group_edit',
62 62
                 'uses' => 'GroupsController@editAction',
63 63
             ])->where('owner_path', '[a-zA-z.0-9_\-]+');
Please login to merge, or discard this patch.
app/Models/Owner.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 
30 30
 use AltThree\Validator\ValidatingTrait;
31 31
 use Illuminate\Database\Eloquent\Model;
32
-use Illuminate\Support\Facades\Auth;
33 32
 
34 33
 class Owner extends Model
35 34
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $project = Project::where('owner_id', '=', $this->id)->where('path', '=', $path)->first($columns);
100 100
 
101
-        if (! $project) {
101
+        if (!$project) {
102 102
             throw new ModelNotFoundException();
103 103
         }
104 104
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $owner = static::where('path', $path)->first($columns);
120 120
 
121
-        if (! $owner) {
121
+        if (!$owner) {
122 122
             throw new ModelNotFoundException();
123 123
         }
124 124
 
Please login to merge, or discard this patch.