@@ -16,7 +16,7 @@ |
||
| 16 | 16 | class Dice |
| 17 | 17 | { |
| 18 | 18 | const CONSTANT = 'Dice::CONSTANT'; |
| 19 | - const INSTANCE = 'Dice::INSTANCE'; |
|
| 19 | + const INSTANCE = 'Dice::INSTANCE'; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var array $rules Rules which have been set using addRule() |
@@ -63,8 +63,8 @@ |
||
| 63 | 63 | |
| 64 | 64 | // Allow substitutions rules to be defined with a leading a slash |
| 65 | 65 | if (isset($rule['substitutions'])) { |
| 66 | - foreach($rule['substitutions'] as $key => $value) { |
|
| 67 | - $rule[ltrim($key, '\\')] = $value; |
|
| 66 | + foreach ($rule['substitutions'] as $key => $value) { |
|
| 67 | + $rule[ltrim($key, '\\')] = $value; |
|
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | $this->rules[self::normalizeName($classname)] = \array_replace_recursive($this->getRule($classname), $rule); |