@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @param RulesInterface $rules |
54 | - * @param Patternizer|null $patternizer |
|
54 | + * @param Patternizer $patternizer |
|
55 | 55 | */ |
56 | 56 | public function __construct(RulesInterface $rules, Patternizer $patternizer) |
57 | 57 | { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | { |
89 | 89 | if (defined('self::GUARD_NAMESPACE')) { |
90 | 90 | //Yay! Isolation |
91 | - $permission = constant(get_called_class() . '::' . 'GUARD_NAMESPACE') . GuardInterface::NS_SEPARATOR . $permission; |
|
91 | + $permission = constant(get_called_class().'::'.'GUARD_NAMESPACE').GuardInterface::NS_SEPARATOR.$permission; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return $permission; |
@@ -75,7 +75,7 @@ |
||
75 | 75 | $this->resolver->resolveArguments($method, $parameters)); |
76 | 76 | } catch (\Throwable $e) { |
77 | 77 | throw new RuleException( |
78 | - '[' . get_class($this) . '] ' . $e->getMessage(), |
|
78 | + '['.get_class($this).'] '.$e->getMessage(), |
|
79 | 79 | $e->getCode(), |
80 | 80 | $e |
81 | 81 | ); |
@@ -124,7 +124,7 @@ |
||
124 | 124 | |
125 | 125 | if (!$rule instanceof RuleInterface) { |
126 | 126 | throw new RuleException( |
127 | - "Rule '{$name}' must point to RuleInterface, '" . get_class($rule) . "' given" |
|
127 | + "Rule '{$name}' must point to RuleInterface, '".get_class($rule)."' given" |
|
128 | 128 | ); |
129 | 129 | } |
130 | 130 |