@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * Get the "action" column data. |
| 58 | 58 | * |
| 59 | 59 | * @param AdminUser $user |
| 60 | - * @return mixed |
|
| 60 | + * @return string |
|
| 61 | 61 | */ |
| 62 | 62 | public function getActionColumnData($user) |
| 63 | 63 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace App\DataTables; |
| 4 | 4 | |
| 5 | 5 | use App\Models\AdminUser; |
| 6 | -use Illuminate\Support\Facades\Auth; |
|
| 7 | 6 | use App\Support\Datatables\Services\DataTable; |
| 7 | +use Illuminate\Support\Facades\Auth; |
|
| 8 | 8 | |
| 9 | 9 | class AdminUsersDataTable extends DataTable |
| 10 | 10 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers\Admin\Admin; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use App\Http\Controllers\Controller; |
| 6 | +use Illuminate\Http\Request; |
|
| 7 | 7 | |
| 8 | 8 | class ProfileController extends Controller |
| 9 | 9 | { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * Get all socials. |
| 64 | 64 | * |
| 65 | - * @return array |
|
| 65 | + * @return string[] |
|
| 66 | 66 | */ |
| 67 | 67 | public static function allSocials() |
| 68 | 68 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Models; |
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model; |
|
| 6 | 5 | use App\Exceptions\InvalidInputException; |
| 6 | +use Illuminate\Database\Eloquent\Model; |
|
| 7 | 7 | |
| 8 | 8 | class SocialAuth extends Model |
| 9 | 9 | { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | /** |
| 148 | 148 | * Store the given file as user's avatar. |
| 149 | 149 | * |
| 150 | - * @param mixed $file |
|
| 150 | + * @param string|null $file |
|
| 151 | 151 | * @return bool |
| 152 | 152 | */ |
| 153 | 153 | public function storeAvatarFile($file) |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Support\Image\Filters\Fit; |
| 6 | 6 | use App\Support\Traits\ImageStorage; |
| 7 | -use Illuminate\Support\Facades\Request; |
|
| 8 | -use Illuminate\Notifications\Notifiable; |
|
| 9 | 7 | use Iatstuti\Database\Support\NullableFields; |
| 10 | 8 | use Illuminate\Foundation\Auth\User as Authenticatable; |
| 9 | +use Illuminate\Notifications\Notifiable; |
|
| 10 | +use Illuminate\Support\Facades\Request; |
|
| 11 | 11 | |
| 12 | 12 | class User extends Authenticatable |
| 13 | 13 | { |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Create a new notification instance. |
| 24 | + * @param string $token |
|
| 24 | 25 | */ |
| 25 | 26 | public function __construct($token) |
| 26 | 27 | { |
@@ -31,7 +32,7 @@ discard block |
||
| 31 | 32 | * Get the notification's delivery channels. |
| 32 | 33 | * |
| 33 | 34 | * @param mixed $notifiable |
| 34 | - * @return array |
|
| 35 | + * @return string[] |
|
| 35 | 36 | */ |
| 36 | 37 | public function via($notifiable) |
| 37 | 38 | { |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Models\AdminUser; |
| 6 | 6 | use Illuminate\Bus\Queueable; |
| 7 | -use Illuminate\Notifications\Notification; |
|
| 8 | 7 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 9 | 8 | use Illuminate\Notifications\Messages\MailMessage; |
| 9 | +use Illuminate\Notifications\Notification; |
|
| 10 | 10 | |
| 11 | 11 | class ResetPassword extends Notification implements ShouldQueue |
| 12 | 12 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Providers; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Facades\Route; |
|
| 6 | 5 | use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
| 6 | +use Illuminate\Support\Facades\Route; |
|
| 7 | 7 | |
| 8 | 8 | class RouteServiceProvider extends ServiceProvider |
| 9 | 9 | { |
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Exceptions; |
| 4 | 4 | |
| 5 | -use Exception; |
|
| 6 | 5 | use App\Http\ApiResponse; |
| 7 | 6 | use App\Jobs\SendBearyChat; |
| 7 | +use Exception; |
|
| 8 | 8 | use Illuminate\Auth\AuthenticationException; |
| 9 | -use Illuminate\Validation\ValidationException; |
|
| 10 | -use Symfony\Component\HttpKernel\Exception\HttpException; |
|
| 11 | 9 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
| 12 | 10 | use Illuminate\Foundation\Http\Exceptions\MaintenanceModeException; |
| 11 | +use Illuminate\Validation\ValidationException; |
|
| 12 | +use Symfony\Component\HttpKernel\Exception\HttpException; |
|
| 13 | 13 | |
| 14 | 14 | class Handler extends ExceptionHandler |
| 15 | 15 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers\Admin\Admin; |
| 4 | 4 | |
| 5 | +use App\DataTables\AdminUsersDataTable; |
|
| 6 | +use App\Http\Controllers\Controller; |
|
| 5 | 7 | use App\Models\AdminUser; |
| 6 | 8 | use Illuminate\Http\Request; |
| 7 | -use App\Http\Controllers\Controller; |
|
| 8 | -use App\DataTables\AdminUsersDataTable; |
|
| 9 | 9 | |
| 10 | 10 | class UserController extends Controller |
| 11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers\Admin\Admin; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use App\Http\Controllers\Controller; |
| 6 | +use Illuminate\Http\Request; |
|
| 7 | 7 | |
| 8 | 8 | class ProfileController extends Controller |
| 9 | 9 | { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @param \Illuminate\Http\Request $request |
| 34 | 34 | * @param mixed $user |
| 35 | - * @return mixed |
|
| 35 | + * @return \App\Support\Http\ApiResponse |
|
| 36 | 36 | */ |
| 37 | 37 | protected function authenticated(Request $request, $user) |
| 38 | 38 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * Get the failed login response instance. |
| 46 | 46 | * |
| 47 | 47 | * @param \Illuminate\Http\Request $request |
| 48 | - * @return \Illuminate\Http\Response |
|
| 48 | + * @return \App\Support\Http\ApiResponse |
|
| 49 | 49 | */ |
| 50 | 50 | protected function sendFailedLoginResponse(Request $request) |
| 51 | 51 | { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * Redirect the user after determining they are locked out. |
| 57 | 57 | * |
| 58 | 58 | * @param \Illuminate\Http\Request $request |
| 59 | - * @return \Illuminate\Http\RedirectResponse |
|
| 59 | + * @return \App\Support\Http\ApiResponse |
|
| 60 | 60 | */ |
| 61 | 61 | protected function sendLockoutResponse(Request $request) |
| 62 | 62 | { |