@@ -31,21 +31,21 @@ |
||
31 | 31 | public function __construct( |
32 | 32 | $messageKey |
33 | 33 | ) { |
34 | - if ( strpos( $messageKey, self::MESSAGE_KEY_PREFIX ) !== 0 ) { |
|
34 | + if (strpos($messageKey, self::MESSAGE_KEY_PREFIX) !== 0) { |
|
35 | 35 | throw new InvalidArgumentException( |
36 | - 'ViolationMessage key ⧼' . |
|
37 | - $messageKey . |
|
38 | - '⧽ should start with "' . |
|
39 | - self::MESSAGE_KEY_PREFIX . |
|
36 | + 'ViolationMessage key ⧼'. |
|
37 | + $messageKey. |
|
38 | + '⧽ should start with "'. |
|
39 | + self::MESSAGE_KEY_PREFIX. |
|
40 | 40 | '".' |
41 | 41 | ); |
42 | 42 | } |
43 | 43 | |
44 | - $this->messageKeySuffix = substr( $messageKey, strlen( self::MESSAGE_KEY_PREFIX ) ); |
|
44 | + $this->messageKeySuffix = substr($messageKey, strlen(self::MESSAGE_KEY_PREFIX)); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function getMessageKey() { |
48 | - return self::MESSAGE_KEY_PREFIX . $this->messageKeySuffix; |
|
48 | + return self::MESSAGE_KEY_PREFIX.$this->messageKeySuffix; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | } |