@@ -32,7 +32,7 @@  | 
                                                    ||
| 32 | 32 | /**  | 
                                                        
| 33 | 33 | * Create a new invite group member command instance.  | 
                                                        
| 34 | 34 | *  | 
                                                        
| 35 | - * @param array $email  | 
                                                        |
| 35 | + * @param array $emails  | 
                                                        |
| 36 | 36 | *  | 
                                                        
| 37 | 37 | * @return void  | 
                                                        
| 38 | 38 | */  | 
                                                        
@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 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 | */  | 
                                                        
@@ -39,7 +39,7 @@ discard block  | 
                                                    ||
| 39 | 39 | /**  | 
                                                        
| 40 | 40 | * Handle the event.  | 
                                                        
| 41 | 41 | *  | 
                                                        
| 42 | - * @param \Gitamin\Events\SubscriberHasSubscribedEvent $event  | 
                                                        |
| 42 | + * @param SubscriberHasSubscribedEvent $event  | 
                                                        |
| 43 | 43 | *  | 
                                                        
| 44 | 44 | * @return void  | 
                                                        
| 45 | 45 | */  | 
                                                        
@@ -54,7 +54,7 @@  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 27 | 27 | /**  | 
                                                        
| 28 | 28 | * Create a new send invite user email handler.  | 
                                                        
| 29 | 29 | *  | 
                                                        
| 30 | - * @param \Illuminate\Contracts\Mail\Mailer $mailer  | 
                                                        |
| 30 | + * @param MailQueue $mailer  | 
                                                        |
| 31 | 31 | *  | 
                                                        
| 32 | 32 | * @return void  | 
                                                        
| 33 | 33 | */  | 
                                                        
@@ -39,7 +39,7 @@ discard block  | 
                                                    ||
| 39 | 39 | /**  | 
                                                        
| 40 | 40 | * Handle the event.  | 
                                                        
| 41 | 41 | *  | 
                                                        
| 42 | - * @param \Gitamin\Events\UserWasInvitedEvent $event  | 
                                                        |
| 42 | + * @param UserWasInvitedEvent $event  | 
                                                        |
| 43 | 43 | *  | 
                                                        
| 44 | 44 | * @return void  | 
                                                        
| 45 | 45 | */  | 
                                                        
@@ -54,7 +54,7 @@  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -110,7 +110,7 @@ discard block  | 
                                                    ||
| 110 | 110 | *  | 
                                                        
| 111 | 111 | * @param mixed  | 
                                                        
| 112 | 112 | *  | 
                                                        
| 113 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 113 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 114 | 114 | */  | 
                                                        
| 115 | 115 | public function item($item)  | 
                                                        
| 116 | 116 |      { | 
                                                        
@@ -122,7 +122,7 @@ discard block  | 
                                                    ||
| 122 | 122 | *  | 
                                                        
| 123 | 123 | * @param \Illuminate\Support\Collection $collection  | 
                                                        
| 124 | 124 | *  | 
                                                        
| 125 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 125 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 126 | 126 | */  | 
                                                        
| 127 | 127 | public function collection(Collection $collection)  | 
                                                        
| 128 | 128 |      { | 
                                                        
@@ -135,7 +135,7 @@ discard block  | 
                                                    ||
| 135 | 135 | * @param \Illuminate\Pagination\Paginator $paginator  | 
                                                        
| 136 | 136 | * @param \Illuminate\Http\Request $request  | 
                                                        
| 137 | 137 | *  | 
                                                        
| 138 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 138 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 139 | 139 | */  | 
                                                        
| 140 | 140 | protected function paginator(Paginator $paginator, Request $request)  | 
                                                        
| 141 | 141 |      { | 
                                                        
@@ -173,9 +173,8 @@ discard block  | 
                                                    ||
| 173 | 173 | /**  | 
                                                        
| 174 | 174 | * Respond with a no content response.  | 
                                                        
| 175 | 175 | *  | 
                                                        
| 176 | - * @param string $message  | 
                                                        |
| 177 | 176 | *  | 
                                                        
| 178 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 177 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 179 | 178 | */  | 
                                                        
| 180 | 179 | protected function noContent()  | 
                                                        
| 181 | 180 |      { | 
                                                        
@@ -189,7 +189,7 @@  | 
                                                    ||
| 189 | 189 | */  | 
                                                        
| 190 | 190 | protected function respond()  | 
                                                        
| 191 | 191 |      { | 
                                                        
| 192 | -        if (! empty($this->meta)) { | 
                                                        |
| 192 | +        if (!empty($this->meta)) { | 
                                                        |
| 193 | 193 | $response['meta'] = $this->meta;  | 
                                                        
| 194 | 194 | }  | 
                                                        
| 195 | 195 | |
@@ -32,7 +32,7 @@ discard block  | 
                                                    ||
| 32 | 32 | * @param \Symfony\Component\HttpFoundation\Request $request  | 
                                                        
| 33 | 33 | * @param \Illuminate\Contracts\Auth\Guard $auth  | 
                                                        
| 34 | 34 | *  | 
                                                        
| 35 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 35 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 36 | 36 | */  | 
                                                        
| 37 | 37 | public function getIssues(Request $request, Guard $auth)  | 
                                                        
| 38 | 38 |      { | 
                                                        
@@ -48,7 +48,7 @@ discard block  | 
                                                    ||
| 48 | 48 | *  | 
                                                        
| 49 | 49 | * @param \Gitamin\Models\Issue $issue  | 
                                                        
| 50 | 50 | *  | 
                                                        
| 51 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 51 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 52 | 52 | */  | 
                                                        
| 53 | 53 | public function getIssue(Issue $issue)  | 
                                                        
| 54 | 54 |      { | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | *  | 
                                                        
| 61 | 61 | * @param \Illuminate\Contracts\Auth\Guard $auth  | 
                                                        
| 62 | 62 | *  | 
                                                        
| 63 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 63 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 64 | 64 | */  | 
                                                        
| 65 | 65 | public function postIssues(Guard $auth)  | 
                                                        
| 66 | 66 |      { | 
                                                        
@@ -85,9 +85,9 @@ discard block  | 
                                                    ||
| 85 | 85 | /**  | 
                                                        
| 86 | 86 | * Update an existing issue.  | 
                                                        
| 87 | 87 | *  | 
                                                        
| 88 | - * @param \Gitamin\Models\Inicdent $issue  | 
                                                        |
| 88 | + * @param Issue $issue  | 
                                                        |
| 89 | 89 | *  | 
                                                        
| 90 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 90 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 91 | 91 | */  | 
                                                        
| 92 | 92 | public function putIssue(Issue $issue)  | 
                                                        
| 93 | 93 |      { | 
                                                        
@@ -115,7 +115,7 @@ discard block  | 
                                                    ||
| 115 | 115 | *  | 
                                                        
| 116 | 116 | * @param \Gitamin\Models\Issue $issue  | 
                                                        
| 117 | 117 | *  | 
                                                        
| 118 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 118 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 119 | 119 | */  | 
                                                        
| 120 | 120 | public function deleteIssue(Issue $issue)  | 
                                                        
| 121 | 121 |      { | 
                                                        
@@ -29,7 +29,7 @@ discard block  | 
                                                    ||
| 29 | 29 | *  | 
                                                        
| 30 | 30 | * @param \Symfony\Component\HttpFoundation\Request $request  | 
                                                        
| 31 | 31 | *  | 
                                                        
| 32 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 32 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 33 | 33 | */  | 
                                                        
| 34 | 34 | public function getSubscribers(Request $request)  | 
                                                        
| 35 | 35 |      { | 
                                                        
@@ -41,7 +41,7 @@ discard block  | 
                                                    ||
| 41 | 41 | /**  | 
                                                        
| 42 | 42 | * Create a new subscriber.  | 
                                                        
| 43 | 43 | *  | 
                                                        
| 44 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 44 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 45 | 45 | */  | 
                                                        
| 46 | 46 | public function postSubscribers()  | 
                                                        
| 47 | 47 |      { | 
                                                        
@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | *  | 
                                                        
| 60 | 60 | * @param \Gitamin\Models\Subscriber $subscriber  | 
                                                        
| 61 | 61 | *  | 
                                                        
| 62 | - * @return \Illuminate\Http\JsonResponse  | 
                                                        |
| 62 | + * @return \Illuminate\Http\Response  | 
                                                        |
| 63 | 63 | */  | 
                                                        
| 64 | 64 | public function deleteSubscriber(Subscriber $subscriber)  | 
                                                        
| 65 | 65 |      { | 
                                                        
@@ -44,6 +44,10 @@  | 
                                                    ||
| 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); | 
                                                        
@@ -12,7 +12,6 @@  | 
                                                    ||
| 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;  | 
                                                        
@@ -47,7 +47,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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();  | 
                                                        
@@ -43,7 +43,7 @@  | 
                                                    ||
| 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 |      { | 
                                                        
@@ -14,7 +14,7 @@ discard block  | 
                                                    ||
| 14 | 14 | use Illuminate\Support\Facades\Request;  | 
                                                        
| 15 | 15 | use Jenssegers\Date\Date;  | 
                                                        
| 16 | 16 | |
| 17 | -if (! function_exists('back_url')) { | 
                                                        |
| 17 | +if (!function_exists('back_url')) { | 
                                                        |
| 18 | 18 | /**  | 
                                                        
| 19 | 19 | * Create a new back url.  | 
                                                        
| 20 | 20 | *  | 
                                                        
@@ -37,7 +37,7 @@ discard block  | 
                                                    ||
| 37 | 37 | }  | 
                                                        
| 38 | 38 | }  | 
                                                        
| 39 | 39 | |
| 40 | -if (! function_exists('set_active')) { | 
                                                        |
| 40 | +if (!function_exists('set_active')) { | 
                                                        |
| 41 | 41 | /**  | 
                                                        
| 42 | 42 | * Set active class if request is in path.  | 
                                                        
| 43 | 43 | *  | 
                                                        
@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | }  | 
                                                        
| 60 | 60 | }  | 
                                                        
| 61 | 61 | |
| 62 | -if (! function_exists('formatted_date')) { | 
                                                        |
| 62 | +if (!function_exists('formatted_date')) { | 
                                                        |
| 63 | 63 | /**  | 
                                                        
| 64 | 64 | * Formats a date with the user timezone and the selected format.  | 
                                                        
| 65 | 65 | *  | 
                                                        
@@ -75,7 +75,7 @@ discard block  | 
                                                    ||
| 75 | 75 | }  | 
                                                        
| 76 | 76 | }  | 
                                                        
| 77 | 77 | |
| 78 | -if (! function_exists('subscribers_enabled')) { | 
                                                        |
| 78 | +if (!function_exists('subscribers_enabled')) { | 
                                                        |
| 79 | 79 | /**  | 
                                                        
| 80 | 80 | * Is the subscriber functionality enabled and configured.  | 
                                                        
| 81 | 81 | *  | 
                                                        
@@ -91,7 +91,7 @@ discard block  | 
                                                    ||
| 91 | 91 | }  | 
                                                        
| 92 | 92 | }  | 
                                                        
| 93 | 93 | |
| 94 | -if (! function_exists('color_darken')) { | 
                                                        |
| 94 | +if (!function_exists('color_darken')) { | 
                                                        |
| 95 | 95 | /**  | 
                                                        
| 96 | 96 | * Darken a color.  | 
                                                        
| 97 | 97 | *  | 
                                                        
@@ -119,7 +119,7 @@ discard block  | 
                                                    ||
| 119 | 119 | }  | 
                                                        
| 120 | 120 | }  | 
                                                        
| 121 | 121 | |
| 122 | -if (! function_exists('color_contrast')) { | 
                                                        |
| 122 | +if (!function_exists('color_contrast')) { | 
                                                        |
| 123 | 123 | /**  | 
                                                        
| 124 | 124 | * Calculates colour contrast.  | 
                                                        
| 125 | 125 | *  | 
                                                        
@@ -23,7 +23,6 @@  | 
                                                    ||
| 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  |