Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolz committed Aug 23, 2019
1 parent 7c0eb16 commit ca1bb62
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 38 deletions.
32 changes: 16 additions & 16 deletions app/Console/Commands/SynchronizePermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@

class SynchronizePermissions extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'permissions:sync';

/**
* The console command description.
*
* @var string
*/
/**
* The console command description.
*
* @var string
*/
protected $description = 'Synchronize list of available role permissions';

/**
* Execute the console command.
*
* @param \App\Repositories\Contracts\PermissionRepository $permissionRepository
* @return mixed
*/
/**
* Execute the console command.
*
* @param \App\Repositories\Contracts\PermissionRepository $permissionRepository
* @return mixed
*/
public function handle(\App\Repositories\Contracts\PermissionRepository $permissionRepository)
{
// Compile list of permissions
Expand Down
2 changes: 1 addition & 1 deletion app/Policies/AnnouncementPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function before(User $user, $ability)
}
}

/**
/**
* Determine whether the current user can list announcements.
*
* @param \App\Models\User $user
Expand Down
2 changes: 1 addition & 1 deletion app/Policies/CountryPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function before(User $user, $ability)
}
}

/**
/**
* Determine whether the current user can list countries.
*
* @param \App\Models\User $user
Expand Down
2 changes: 1 addition & 1 deletion app/Policies/RolePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function before(User $user, $ability)
}
}

/**
/**
* Determine whether the current user can list roles.
*
* @param \App\Models\User $user
Expand Down
2 changes: 1 addition & 1 deletion app/Policies/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function before(User $user, $ability)
}
}

/**
/**
* Determine whether the current user can list users.
*
* @param \App\Models\User $user Current user
Expand Down
12 changes: 6 additions & 6 deletions app/Repositories/Doctrine/PermissionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class PermissionRepository extends ModelRepository implements PermissionReposito
*/
protected $alias = 'permission';

/**
* Synchronize permissions.
*
* @param \Illuminate\Support\Collection $permissions of \App\Models\Permission
* @return bool
*/
/**
* Synchronize permissions.
*
* @param \Illuminate\Support\Collection $permissions of \App\Models\Permission
* @return bool
*/
public function sync(\Illuminate\Support\Collection $permissions): bool
{
if ($permissions->isEmpty()) {
Expand Down
2 changes: 1 addition & 1 deletion database/hydrators/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class Column extends AbstractHydrator
*/
public function hydrateAllData()
{
return $this->_stmt->fetchAll(\PDO::FETCH_COLUMN);
return $this->_stmt->fetchAll(\PDO::FETCH_COLUMN);
}
}
20 changes: 10 additions & 10 deletions database/seeds/PermissionsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public static function tree(): array
];
}

/**
* Get permissions as a flat list.
*
* @return array
*/
/**
* Get permissions as a flat list.
*
* @return array
*/
public static function list(): array
{
$allPermissions = [];
Expand All @@ -77,11 +77,11 @@ public static function list(): array
return $allPermissions;
}

/**
* Seed the application"s database.
*
* @return void
*/
/**
* Seed the application"s database.
*
* @return void
*/
public function run()
{
foreach (self::list() as $name => $description) {
Expand Down
2 changes: 1 addition & 1 deletion resources/stubs/policy/policy.stub
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DummyPolicy extends RoleBasedPolicy
}
}

/**
/**
* Determine whether the current user can list dummies.
*
* @param \App\Models\User $user
Expand Down

0 comments on commit ca1bb62

Please sign in to comment.