We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Execute the console command. |
| 32 | 32 | * |
| 33 | - * @return mixed |
|
| 33 | + * @return false|null |
|
| 34 | 34 | */ |
| 35 | 35 | public function handle() |
| 36 | 36 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Write text to the screen for the user to see. |
| 154 | 154 | * |
| 155 | - * @param [string] $type line, info, comment, question, error |
|
| 155 | + * @param string $type line, info, comment, question, error |
|
| 156 | 156 | * @param [string] $content |
| 157 | 157 | */ |
| 158 | 158 | public function echo($type, $content) |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Backpack\CRUD\app\Console\Commands; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | -use Symfony\Component\Process\Process; |
|
| 7 | 6 | use Symfony\Component\Process\Exception\ProcessFailedException; |
| 7 | +use Symfony\Component\Process\Process; |
|
| 8 | 8 | |
| 9 | 9 | class Install extends Command |
| 10 | 10 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->executeProcess('mkdir -p public/uploads'); |
| 86 | 86 | break; |
| 87 | 87 | case '\\': // windows |
| 88 | - if (! file_exists('public\uploads')) { |
|
| 88 | + if (!file_exists('public\uploads')) { |
|
| 89 | 89 | $this->executeProcess('mkdir public\uploads'); |
| 90 | 90 | } |
| 91 | 91 | break; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $this->echo('info', $beforeNotice ? ' '.$beforeNotice : $command); |
| 128 | 128 | |
| 129 | 129 | $process = new Process($command, null, null, null, $this->option('timeout'), null); |
| 130 | - $process->run(function ($type, $buffer) { |
|
| 130 | + $process->run(function($type, $buffer) { |
|
| 131 | 131 | if (Process::ERR === $type) { |
| 132 | 132 | $this->echo('comment', $buffer); |
| 133 | 133 | } else { |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | }); |
| 137 | 137 | |
| 138 | 138 | // executes after the command finishes |
| 139 | - if (! $process->isSuccessful()) { |
|
| 139 | + if (!$process->isSuccessful()) { |
|
| 140 | 140 | throw new ProcessFailedException($process); |
| 141 | 141 | } |
| 142 | 142 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Execute the console command. |
| 35 | 35 | * |
| 36 | - * @return bool|null |
|
| 36 | + * @return false|null |
|
| 37 | 37 | */ |
| 38 | 38 | public function handle() |
| 39 | 39 | { |
@@ -71,9 +71,8 @@ discard block |
||
| 71 | 71 | * Replace the User model, if it was moved to App\Models\User. |
| 72 | 72 | * |
| 73 | 73 | * @param string $stub |
| 74 | - * @param string $name |
|
| 75 | 74 | * |
| 76 | - * @return $this |
|
| 75 | + * @return string |
|
| 77 | 76 | */ |
| 78 | 77 | protected function makeReplacements(&$stub) |
| 79 | 78 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Backpack\CRUD\app\Console\Commands; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | -use Symfony\Component\Process\Process; |
|
| 7 | 6 | use Symfony\Component\Process\Exception\ProcessFailedException; |
| 7 | +use Symfony\Component\Process\Process; |
|
| 8 | 8 | |
| 9 | 9 | class Version extends Command |
| 10 | 10 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | private function runConsoleCommand($command) |
| 50 | 50 | { |
| 51 | 51 | $process = new Process($command, null, null, null, 60, null); |
| 52 | - $process->run(function ($type, $buffer) { |
|
| 52 | + $process->run(function($type, $buffer) { |
|
| 53 | 53 | if (Process::ERR === $type) { |
| 54 | 54 | $this->line($buffer); |
| 55 | 55 | } else { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | }); |
| 59 | 59 | |
| 60 | 60 | // executes after the command finishes |
| 61 | - if (! $process->isSuccessful()) { |
|
| 61 | + if (!$process->isSuccessful()) { |
|
| 62 | 62 | throw new ProcessFailedException($process); |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Auth; |
| 4 | 4 | |
| 5 | +use Illuminate\Foundation\Auth\SendsPasswordResetEmails; |
|
| 5 | 6 | use Illuminate\Routing\Controller; |
| 6 | 7 | use Illuminate\Support\Facades\Password; |
| 7 | -use Illuminate\Foundation\Auth\SendsPasswordResetEmails; |
|
| 8 | 8 | |
| 9 | 9 | class ForgotPasswordController extends Controller |
| 10 | 10 | { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * |
| 68 | 68 | * @param \Illuminate\Http\Request $request |
| 69 | 69 | * |
| 70 | - * @return \Illuminate\Http\Response |
|
| 70 | + * @return \Illuminate\Http\RedirectResponse |
|
| 71 | 71 | */ |
| 72 | 72 | public function logout(Request $request) |
| 73 | 73 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Auth; |
| 4 | 4 | |
| 5 | +use Illuminate\Foundation\Auth\AuthenticatesUsers; |
|
| 5 | 6 | use Illuminate\Http\Request; |
| 6 | 7 | use Illuminate\Routing\Controller; |
| 7 | -use Illuminate\Foundation\Auth\AuthenticatesUsers; |
|
| 8 | 8 | |
| 9 | 9 | class LoginController extends Controller |
| 10 | 10 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @param array $data |
| 68 | 68 | * |
| 69 | - * @return User |
|
| 69 | + * @return \Illuminate\Contracts\Auth\Authenticatable |
|
| 70 | 70 | */ |
| 71 | 71 | protected function create(array $data) |
| 72 | 72 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * |
| 103 | 103 | * @param \Illuminate\Http\Request $request |
| 104 | 104 | * |
| 105 | - * @return \Illuminate\Http\Response |
|
| 105 | + * @return \Illuminate\Http\RedirectResponse |
|
| 106 | 106 | */ |
| 107 | 107 | public function register(Request $request) |
| 108 | 108 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Auth; |
| 4 | 4 | |
| 5 | -use Validator; |
|
| 6 | -use Illuminate\Http\Request; |
|
| 7 | -use Illuminate\Routing\Controller; |
|
| 8 | 5 | use Illuminate\Auth\Events\Registered; |
| 9 | 6 | use Illuminate\Foundation\Auth\RegistersUsers; |
| 7 | +use Illuminate\Http\Request; |
|
| 8 | +use Illuminate\Routing\Controller; |
|
| 9 | +use Validator; |
|
| 10 | 10 | |
| 11 | 11 | class RegisterController extends Controller |
| 12 | 12 | { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | public function showRegistrationForm() |
| 89 | 89 | { |
| 90 | 90 | // if registration is closed, deny access |
| 91 | - if (! config('backpack.base.registration_open')) { |
|
| 91 | + if (!config('backpack.base.registration_open')) { |
|
| 92 | 92 | abort(403, trans('backpack::base.registration_closed')); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public function register(Request $request) |
| 108 | 108 | { |
| 109 | 109 | // if registration is closed, deny access |
| 110 | - if (! config('backpack.base.registration_open')) { |
|
| 110 | + if (!config('backpack.base.registration_open')) { |
|
| 111 | 111 | abort(403, trans('backpack::base.registration_closed')); |
| 112 | 112 | } |
| 113 | 113 | |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Get the path the user should be redirected to after password reset. |
| 29 | 29 | * |
| 30 | - * @param \Illuminate\Http\Request $request |
|
| 31 | 30 | * |
| 32 | 31 | * @return string |
| 33 | 32 | */ |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Auth; |
| 4 | 4 | |
| 5 | +use Illuminate\Foundation\Auth\ResetsPasswords; |
|
| 5 | 6 | use Illuminate\Http\Request; |
| 6 | 7 | use Illuminate\Routing\Controller; |
| 7 | 8 | use Illuminate\Support\Facades\Password; |
| 8 | -use Illuminate\Foundation\Auth\ResetsPasswords; |
|
| 9 | 9 | |
| 10 | 10 | class ResetPasswordController extends Controller |
| 11 | 11 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $this->middleware("guest:$guard"); |
| 49 | 49 | |
| 50 | - if (! backpack_users_have_email()) { |
|
| 50 | + if (!backpack_users_have_email()) { |
|
| 51 | 51 | abort(501, trans('backpack::base.no_email_column')); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Backpack\CRUD\app\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use Alert; |
| 6 | -use Illuminate\Routing\Controller; |
|
| 7 | -use Illuminate\Support\Facades\Hash; |
|
| 8 | 6 | use Backpack\CRUD\app\Http\Requests\AccountInfoRequest; |
| 9 | 7 | use Backpack\CRUD\app\Http\Requests\ChangePasswordRequest; |
| 8 | +use Illuminate\Routing\Controller; |
|
| 9 | +use Illuminate\Support\Facades\Hash; |
|
| 10 | 10 | |
| 11 | 11 | class MyAccountController extends Controller |
| 12 | 12 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Answer to unauthorized access request. |
| 31 | 31 | * |
| 32 | - * @param [type] $request [description] |
|
| 32 | + * @param \Illuminate\Http\Request $request [description] |
|
| 33 | 33 | * |
| 34 | 34 | * @return [type] [description] |
| 35 | 35 | */ |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | return $this->respondToUnauthorizedRequest($request); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - if (! $this->checkIfUserIsAdmin(backpack_user())) { |
|
| 59 | + if (!$this->checkIfUserIsAdmin(backpack_user())) { |
|
| 60 | 60 | return $this->respondToUnauthorizedRequest($request); |
| 61 | 61 | } |
| 62 | 62 | |