@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public $compile_id = null; |
| 54 | 54 | |
| 55 | - public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 55 | + public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 56 | 56 | |
| 57 | 57 | public string $title = ''; |
| 58 | 58 | |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | |
| 493 | 493 | $args = func_get_args(); |
| 494 | 494 | unset($args[0]); |
| 495 | - for ($i = 1; isset($args[$i]); $i ++) { |
|
| 495 | + for ($i = 1; isset($args[$i]); $i++) { |
|
| 496 | 496 | $this->assign('p' . $i, $args[$i]); |
| 497 | 497 | } |
| 498 | 498 | |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | // |foo|bar |
| 795 | 795 | // |foo:$foo->bar |
| 796 | 796 | $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|' |
| 797 | - . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)'; |
|
| 797 | + . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp . '))*)'; |
|
| 798 | 798 | |
| 799 | 799 | // matches valid function name: |
| 800 | 800 | // foo123 |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | // "text"|bar |
| 816 | 816 | // $foo->bar |
| 817 | 817 | $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|' |
| 818 | - . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 818 | + . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 819 | 819 | |
| 820 | 820 | // matches valid parenthesised function parameters: |
| 821 | 821 | // |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $records[] = $this->getEntityFromDatabaseArray($item); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - return array_map(static function ($role) { |
|
| 140 | + return array_map(static function($role) { |
|
| 141 | 141 | return $role->role; |
| 142 | 142 | }, $records); |
| 143 | 143 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | // https://symfonycasts.com/screencast/symfony6-upgrade/custom-authenticator |
| 55 | 55 | return new Passport( |
| 56 | - new UserBadge($userName, function ($userIdentifier) { |
|
| 56 | + new UserBadge($userName, function($userIdentifier) { |
|
| 57 | 57 | // optionally pass a callback to load the User manually |
| 58 | 58 | $user = $this->userRepository->fetchOneBy(['username' => $userIdentifier]); |
| 59 | 59 | if (!$user) { |