|
@@ -12,8 +12,8 @@ discard block |
|
|
block discarded – undo |
|
12
|
12
|
{ |
|
13
|
13
|
$method = $this->aliases[$method] ?? $method; |
|
14
|
14
|
|
|
15
|
|
- if (! isset($this->methods[$method])) { |
|
16
|
|
- throw new \BadMethodCallException($method.' does not exists as a Heyman condition'); |
|
|
15
|
+ if (!isset($this->methods[$method])) { |
|
|
16
|
+ throw new \BadMethodCallException($method . ' does not exists as a Heyman condition'); |
|
17
|
17
|
} |
|
18
|
18
|
|
|
19
|
19
|
$condition = $this->methods[$method]; |
|
@@ -38,7 +38,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
|
|
39
|
39
|
public function alias(string $currentName, string $newName, $override = true) |
|
40
|
40
|
{ |
|
41
|
|
- if ($override || ! isset($this->aliases[$newName])) { |
|
|
41
|
+ if ($override || !isset($this->aliases[$newName])) { |
|
42
|
42
|
$this->aliases[$newName] = $currentName; |
|
43
|
43
|
|
|
44
|
44
|
return true; |
Please login to merge, or discard this patch.