Skip to content

Commit

Permalink
remove private modifier from constants
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 22, 2019
1 parent a457f05 commit 13cfb51
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Validator/Naming.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

class Naming extends AbstractValidator
{
private const SPECIAL = 'SPECIAL';
private const SINGLE_DOT = 'SINGLE_DOT';
private const SINGLE_HYPHEN = 'SINGLE_HYPHEN';
private const SINGLE_APOSTROPHE = 'SINGLE_APOSTROPHE';
private const CONSECUTIVE_DOT = 'CONSECUTIVE_DOT';
private const CONSECUTIVE_HYPHEN = 'CONSECUTIVE_HYPHEN';
private const CONSECUTIVE_APOSTROPHE = 'CONSECUTIVE_APOSTROPHE';
private const DOT_TOBE_IN_LAST_WORD = 'DOT_TOBE_IN_LAST_WORD';
const SPECIAL = 'SPECIAL';
const SINGLE_DOT = 'SINGLE_DOT';
const SINGLE_HYPHEN = 'SINGLE_HYPHEN';
const SINGLE_APOSTROPHE = 'SINGLE_APOSTROPHE';
const CONSECUTIVE_DOT = 'CONSECUTIVE_DOT';
const CONSECUTIVE_HYPHEN = 'CONSECUTIVE_HYPHEN';
const CONSECUTIVE_APOSTROPHE = 'CONSECUTIVE_APOSTROPHE';
const DOT_TOBE_IN_LAST_WORD = 'DOT_TOBE_IN_LAST_WORD';

protected $messageTemplates = [
self::SPECIAL => 'Names can contain only letters, hyphens, apostrophe, spaces & full stops',
Expand Down

0 comments on commit 13cfb51

Please sign in to comment.