@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) |
| 5 | 5 | * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | protected function getCanHandler($policy, $action): callable |
| 95 | 95 | { |
| 96 | - $method = 'can' . ucfirst($action); |
|
| 96 | + $method = 'can'.ucfirst($action); |
|
| 97 | 97 | |
| 98 | 98 | if (!method_exists($policy, $method) && !method_exists($policy, '__call')) { |
| 99 | 99 | throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | protected function getScopeHandler($policy, $action): callable |
| 114 | 114 | { |
| 115 | - $method = 'scope' . ucfirst($action); |
|
| 115 | + $method = 'scope'.ucfirst($action); |
|
| 116 | 116 | |
| 117 | 117 | if (!method_exists($policy, $method)) { |
| 118 | 118 | throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]); |