Skip to content

Commit

Permalink
Apply "visibility_required" CS rule to constants
Browse files Browse the repository at this point in the history
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
  • Loading branch information
nicolas-grekas committed Dec 8, 2020
1 parent bc0389c commit 2d31139
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Firewall/SwitchUserListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SwitchUserListener extends AbstractListener implements ListenerInterface
{
use LegacyListenerTrait;

const EXIT_VALUE = '_exit';
public const EXIT_VALUE = '_exit';

private $tokenStorage;
private $provider;
Expand Down
2 changes: 1 addition & 1 deletion RememberMe/AbstractRememberMeServices.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
abstract class AbstractRememberMeServices implements RememberMeServicesInterface, LogoutHandlerInterface
{
const COOKIE_DELIMITER = ':';
public const COOKIE_DELIMITER = ':';

protected $logger;
protected $options = [
Expand Down
2 changes: 1 addition & 1 deletion RememberMe/RememberMeServicesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface RememberMeServicesInterface
* This attribute name can be used by the implementation if it needs to set
* a cookie on the Request when there is no actual Response, yet.
*/
const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
public const COOKIE_ATTR_NAME = '_security_remember_me_cookie';

/**
* This method will be called whenever the TokenStorage does not contain
Expand Down
4 changes: 2 additions & 2 deletions SecurityEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ final class SecurityEvents
*
* @Event("Symfony\Component\Security\Http\Event\InteractiveLoginEvent")
*/
const INTERACTIVE_LOGIN = 'security.interactive_login';
public const INTERACTIVE_LOGIN = 'security.interactive_login';

/**
* The SWITCH_USER event occurs before switch to another user and
* before exit from an already switched user.
*
* @Event("Symfony\Component\Security\Http\Event\SwitchUserEvent")
*/
const SWITCH_USER = 'security.switch_user';
public const SWITCH_USER = 'security.switch_user';
}
6 changes: 3 additions & 3 deletions Session/SessionAuthenticationStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
*/
class SessionAuthenticationStrategy implements SessionAuthenticationStrategyInterface
{
const NONE = 'none';
const MIGRATE = 'migrate';
const INVALIDATE = 'invalidate';
public const NONE = 'none';
public const MIGRATE = 'migrate';
public const INVALIDATE = 'invalidate';

private $strategy;

Expand Down

0 comments on commit 2d31139

Please sign in to comment.