Skip to content

Commit

Permalink
set visibility on class constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed May 4, 2021
1 parent 012e7f0 commit 6111870
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class MakeCommandRegistrationPass implements CompilerPassInterface
{
const MAKER_TAG = 'maker.command';
public const MAKER_TAG = 'maker.command';

public function process(ContainerBuilder $container)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Doctrine/EntityRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
*/
final class EntityRelation
{
const MANY_TO_ONE = 'ManyToOne';
const ONE_TO_MANY = 'OneToMany';
const MANY_TO_MANY = 'ManyToMany';
const ONE_TO_ONE = 'OneToOne';
public const MANY_TO_ONE = 'ManyToOne';
public const ONE_TO_MANY = 'OneToMany';
public const MANY_TO_MANY = 'ManyToMany';
public const ONE_TO_ONE = 'OneToOne';

private $type;

Expand Down
4 changes: 2 additions & 2 deletions src/Maker/MakeAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
*/
final class MakeAuthenticator extends AbstractMaker
{
const AUTH_TYPE_EMPTY_AUTHENTICATOR = 'empty-authenticator';
const AUTH_TYPE_FORM_LOGIN = 'form-login';
private const AUTH_TYPE_EMPTY_AUTHENTICATOR = 'empty-authenticator';
private const AUTH_TYPE_FORM_LOGIN = 'form-login';

private $fileManager;

Expand Down
6 changes: 3 additions & 3 deletions src/Util/ClassSourceManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
*/
final class ClassSourceManipulator
{
const CONTEXT_OUTSIDE_CLASS = 'outside_class';
const CONTEXT_CLASS = 'class';
const CONTEXT_CLASS_METHOD = 'class_method';
public const CONTEXT_OUTSIDE_CLASS = 'outside_class';
public const CONTEXT_CLASS = 'class';
public const CONTEXT_CLASS_METHOD = 'class_method';

private $overwrite;
private $useAnnotations;
Expand Down
14 changes: 7 additions & 7 deletions src/Util/YamlSourceManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
*/
class YamlSourceManipulator
{
const EMPTY_LINE_PLACEHOLDER_VALUE = '__EMPTY_LINE__';
const COMMENT_PLACEHOLDER_VALUE = '__COMMENT__';
public const EMPTY_LINE_PLACEHOLDER_VALUE = '__EMPTY_LINE__';
public const COMMENT_PLACEHOLDER_VALUE = '__COMMENT__';

const UNSET_KEY_FLAG = '__MAKER_VALUE_UNSET';
const ARRAY_FORMAT_MULTILINE = 'multi';
const ARRAY_FORMAT_INLINE = 'inline';
public const UNSET_KEY_FLAG = '__MAKER_VALUE_UNSET';
public const ARRAY_FORMAT_MULTILINE = 'multi';
public const ARRAY_FORMAT_INLINE = 'inline';

const ARRAY_TYPE_SEQUENCE = 'sequence';
const ARRAY_TYPE_HASH = 'hash';
public const ARRAY_TYPE_SEQUENCE = 'sequence';
public const ARRAY_TYPE_HASH = 'hash';

/**
* @var LoggerInterface|null
Expand Down

0 comments on commit 6111870

Please sign in to comment.