Skip to content

Commit

Permalink
php code sniffer issues fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRadu committed Jun 16, 2024
1 parent 82266ae commit 872e600
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/App/src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@

class Message
{
public const ADMIN_CREATED = 'Admin account has been created.';
public const ADMIN_NOT_ACTIVATED = 'This account is deactivated.';
public const ADMIN_NOT_FOUND = 'Admin not found.';
public const AVATAR_MISSING = 'This user account has no avatar associated with it.';
public const DUPLICATE_EMAIL = 'An account with this email address already exists.';
public const DUPLICATE_IDENTITY = 'An account with this identity already exists.';
public const ERROR_REPORT_OK = 'Error report successfully saved.';
public const ERROR_REPORT_NOT_ALLOWED = 'You are not allowed to report errors.';
public const ERROR_REPORT_NOT_ENABLED = 'Remote error reporting is not enabled.';
public const INVALID_CLIENT_ID = 'Invalid client_id.';
public const INVALID_CONFIG = 'Invalid configuration value: \'%s\'';
public const INVALID_VALUE = 'The value specified for \'%s\' is invalid.';
public const MAIL_NOT_SENT_TO = 'Could not send mail to \'%s\'.';
public const ADMIN_CREATED = 'Admin account has been created.';
public const ADMIN_NOT_ACTIVATED = 'This account is deactivated.';
public const ADMIN_NOT_FOUND = 'Admin not found.';
public const AVATAR_MISSING = 'This user account has no avatar associated with it.';
public const DUPLICATE_EMAIL = 'An account with this email address already exists.';
public const DUPLICATE_IDENTITY = 'An account with this identity already exists.';
public const ERROR_REPORT_OK = 'Error report successfully saved.';
public const ERROR_REPORT_NOT_ALLOWED = 'You are not allowed to report errors.';
public const ERROR_REPORT_NOT_ENABLED = 'Remote error reporting is not enabled.';
public const INVALID_CLIENT_ID = 'Invalid client_id.';
public const INVALID_CONFIG = 'Invalid configuration value: \'%s\'';
public const INVALID_VALUE = 'The value specified for \'%s\' is invalid.';
public const MAIL_NOT_SENT_TO = 'Could not send mail to \'%s\'.';

public const MAIL_SENT_RECOVER_IDENTITY = 'If the provided email identifies an account in our system, '
. 'you will receive an email with your account\'s identity.';
Expand Down
3 changes: 2 additions & 1 deletion src/App/src/Middleware/DeprecationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use ReflectionException;
use ReflectionMethod;

use function array_key_exists;
use function array_keys;
use function sprintf;

Expand Down Expand Up @@ -52,7 +53,7 @@ public function process(
$routeMiddleware = $matchedRoute->getMiddleware();
if ($routeMiddleware instanceof LazyLoadingMiddleware) {

Check warning on line 54 in src/App/src/Middleware/DeprecationMiddleware.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'LazyLoadingMiddleware'
/** @var class-string $routeMiddlewareName */
$routeMiddlewareName = $routeMiddleware->middlewareName;
$routeMiddlewareName = $routeMiddleware->middlewareName;
$reflectionMiddlewareClass = new ReflectionClass($routeMiddlewareName);
if ($reflectionMiddlewareClass->implementsInterface(RequestHandlerInterface::class)) {

Check warning on line 58 in src/App/src/Middleware/DeprecationMiddleware.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'RequestHandlerInterface'
$reflectionHandler = $reflectionMiddlewareClass;
Expand Down

0 comments on commit 872e600

Please sign in to comment.