Fixed typos

This commit is contained in:
Jan Böhmer 2023-04-15 23:14:53 +02:00
parent 63df16a369
commit d04d743520
144 changed files with 263 additions and 265 deletions

View file

@ -114,7 +114,7 @@ class PermissionManager
/** @var Group $parent */
$parent = $user->getGroup();
while (null !== $parent) { //The top group, has parent == null
//Check if our current element gives a info about disallow/allow
//Check if our current element gives an info about disallow/allow
$allowed = $this->dontInherit($parent, $permission, $operation);
if (null !== $allowed) {
return $allowed;
@ -123,7 +123,7 @@ class PermissionManager
$parent = $parent->getParent();
}
return null; //The inherited value is never resolved. Should be treat as false, in Voters.
return null; //The inherited value is never resolved. Should be treated as false, in Voters.
}
/**
@ -150,7 +150,7 @@ class PermissionManager
/**
* Lists the names of all operations that is supported for the given permission.
*
* If the Permission is not existing at all, a exception is thrown.
* If the Permission is not existing at all, an exception is thrown.
*
* This function is useful for the support() function of the voters.
*
@ -203,7 +203,6 @@ class PermissionManager
{
//If we have changed anything on the permission structure due to the alsoSet value, this becomes true, so we
//redo the whole process, to ensure that all alsoSet values are set recursively.
$anything_changed = false;
do {
$anything_changed = false; //Reset the variable for the next iteration

View file

@ -48,7 +48,7 @@ class PermissionPresetsHelper
*/
public function applyPreset(HasPermissionsInterface $perm_holder, string $preset_name): HasPermissionsInterface
{
//We need to reset the permission data first (afterwards all values are inherit)
//We need to reset the permission data first (afterward all values are inherit)
$perm_holder->getPermissions()->resetPermissions();
switch($preset_name) {

View file

@ -26,7 +26,7 @@ use Exception;
use RuntimeException;
/**
* This class generates random backup codes for two factor authentication.
* This class generates random backup codes for two-factor authentication.
*/
class BackupCodeGenerator
{

View file

@ -25,7 +25,7 @@ namespace App\Services\UserSystem\TFA;
use App\Entity\UserSystem\User;
/**
* This services offers methods to manage backup codes for two factor authentication.
* This services offers methods to manage backup codes for two-factor authentication.
*/
class BackupCodeManager
{
@ -38,7 +38,7 @@ class BackupCodeManager
/**
* Enable backup codes for the given user, by generating a set of backup codes.
* If the backup codes were already enabled before, they a.
* If the backup codes were already enabled before, nothing happens.
*/
public function enableBackupCodes(User $user): void
{
@ -48,7 +48,7 @@ class BackupCodeManager
}
/**
* Disable (remove) the backup codes when no other 2 factor authentication methods are enabled.
* Disable (remove) the backup codes when no other two-factor authentication methods are enabled.
*/
public function disableBackupCodesIfUnused(User $user): void
{