@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'as' => 'activities.', |
92 | 92 | 'prefix' => 'activities', |
93 | 93 | ], function ($router) { |
94 | - $router->get('/', [ |
|
94 | + $router->get('/', [ |
|
95 | 95 | 'as' => 'index', |
96 | 96 | 'uses' => 'ActivityController@showActivities', |
97 | 97 | ]); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | 'as' => 'milestones.', |
103 | 103 | 'prefix' => 'milestones', |
104 | 104 | ], function ($router) { |
105 | - $router->get('/', [ |
|
105 | + $router->get('/', [ |
|
106 | 106 | 'as' => 'index', |
107 | 107 | 'uses' => 'MilestoneController@showMilestones', |
108 | 108 | ]); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | 'as' => 'merge_requests.', |
114 | 114 | 'prefix' => 'merge_requests', |
115 | 115 | ], function ($router) { |
116 | - $router->get('/', [ |
|
116 | + $router->get('/', [ |
|
117 | 117 | 'as' => 'index', |
118 | 118 | 'uses' => 'MergeRequestController@showMergeRequests', |
119 | 119 | ]); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'as' => 'snippets.', |
125 | 125 | 'prefix' => 'snippets', |
126 | 126 | ], function ($router) { |
127 | - $router->get('/', [ |
|
127 | + $router->get('/', [ |
|
128 | 128 | 'as' => 'index', |
129 | 129 | 'uses' => 'SnippetController@showSnippets', |
130 | 130 | ]); |
@@ -52,12 +52,12 @@ |
||
52 | 52 | 'setting' => 'app_name', |
53 | 53 | 'as' => 'groups.', |
54 | 54 | ], function ($router) { |
55 | - $router->get('{namespace}', [ |
|
55 | + $router->get('{namespace}', [ |
|
56 | 56 | 'as' => 'group_show', |
57 | 57 | 'uses' => 'GroupsController@show', |
58 | 58 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
59 | 59 | |
60 | - $router->get('{namespace}/edit', [ |
|
60 | + $router->get('{namespace}/edit', [ |
|
61 | 61 | 'as' => 'group_edit', |
62 | 62 | 'uses' => 'GroupsController@edit', |
63 | 63 | ])->where('namespace', '[a-zA-z.0-9_\-]+'); |
@@ -52,12 +52,12 @@ |
||
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_\-]+'); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param \Gitamin\Models\Project $project |
49 | 49 | * @param int $action |
50 | 50 | * |
51 | - */ |
|
51 | + */ |
|
52 | 52 | protected function trigger(Project &$project, $action) |
53 | 53 | { |
54 | 54 | $data = [ |
@@ -41,11 +41,11 @@ |
||
41 | 41 | */ |
42 | 42 | public $target_id; |
43 | 43 | |
44 | - /** |
|
45 | - * The moment action. |
|
46 | - * |
|
47 | - * @var int |
|
48 | - */ |
|
44 | + /** |
|
45 | + * The moment action. |
|
46 | + * |
|
47 | + * @var int |
|
48 | + */ |
|
49 | 49 | public $action; |
50 | 50 | |
51 | 51 | /** |
@@ -198,11 +198,11 @@ |
||
198 | 198 | return trans('gitamin.projects.status.'.$this->visibility_level); |
199 | 199 | } |
200 | 200 | |
201 | - /** |
|
202 | - * Returns project owner path. |
|
203 | - * |
|
204 | - * @return bool |
|
205 | - */ |
|
201 | + /** |
|
202 | + * Returns project owner path. |
|
203 | + * |
|
204 | + * @return bool |
|
205 | + */ |
|
206 | 206 | public function getOwnerPathAttribute() |
207 | 207 | { |
208 | 208 |