Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Apply fixes from StyleCI #245

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions routes/web/adminarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
Route::name('adminarea.')
->middleware(['web', 'nohttpcache'])
->prefix(route_prefix('adminarea'))->group(function () {

// Authenticate broadcasting to channels
// Authenticate broadcasting to channels
Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']);

Route::name('cortex.auth.account.')->group(function () {
Expand Down Expand Up @@ -82,7 +81,6 @@
});

Route::middleware(['can:access-adminarea'])->group(function () {

// Account Settings Route Alias
Route::get('account')->name('cortex.auth.account')->uses([AccountSettingsController::class, 'index']);

Expand All @@ -107,7 +105,6 @@
// Account TwoFactor Routes
Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']);
Route::name('twofactor.')->prefix('twofactor')->group(function () {

// Account TwoFactor TOTP Routes
Route::name('totp.')->prefix('totp')->group(function () {
Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']);
Expand Down
2 changes: 0 additions & 2 deletions routes/web/frontarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Route::name('frontarea.')
->middleware(['web', 'nohttpcache'])
->prefix(route_prefix('frontarea'))->group(function () {

// Authenticate broadcasting to channels
Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']);

Expand Down Expand Up @@ -113,7 +112,6 @@
// Account TwoFactor Routes
Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']);
Route::name('twofactor.')->prefix('twofactor')->group(function () {

// Account TwoFactor TOTP Routes
Route::name('totp.')->prefix('totp')->group(function () {
Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']);
Expand Down
5 changes: 1 addition & 4 deletions routes/web/managerarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
Route::name('managerarea.')
->middleware(['web', 'nohttpcache'])
->prefix(route_prefix('managerarea'))->group(function () {

// Authenticate broadcasting to channels
// Authenticate broadcasting to channels
Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']);

Route::name('cortex.auth.account.')->group(function () {
Expand Down Expand Up @@ -78,7 +77,6 @@
});

Route::middleware(['can:access-managerarea'])->group(function () {

// Account Settings Route Alias
Route::get('account')->name('cortex.auth.account')->uses([AccountSettingsController::class, 'index']);

Expand All @@ -103,7 +101,6 @@
// Account TwoFactor Routes
Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']);
Route::name('twofactor.')->prefix('twofactor')->group(function () {

// Account TwoFactor TOTP Routes
Route::name('totp.')->prefix('totp')->group(function () {
Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']);
Expand Down
2 changes: 0 additions & 2 deletions routes/web/tenantarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
Route::name('tenantarea.')
->middleware(['web', 'nohttpcache'])
->prefix(route_prefix('tenantarea'))->group(function () {

// Authenticate broadcasting to channels
Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']);

Expand Down Expand Up @@ -106,7 +105,6 @@
// Account TwoFactor Routes
Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']);
Route::name('twofactor.')->prefix('twofactor')->group(function () {

// Account TwoFactor TOTP Routes
Route::name('totp.')->prefix('totp')->group(function () {
Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']);
Expand Down
1 change: 0 additions & 1 deletion src/Listeners/EnforceSingleSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function __construct()
* @TODO #1: Review this method!
* Check => \Cortex\Auth\Http\Middleware\AuthenticateSession
* Also check => logoutOtherDevices method
*
* @TODO #2: Add support for Laravel Passport login `AccessTokenCreated`
*
* Listen to the authentication login event.
Expand Down
1 change: 1 addition & 0 deletions src/Models/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserAgent($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserType($value)
*
* @mixin \Eloquent
*/
class Session extends Model
Expand Down
1 change: 1 addition & 0 deletions src/Models/Socialite.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUserType($value)
*
* @mixin \Eloquent
*/
class Socialite extends Model
Expand Down