@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | function register(Container $di, bool $bForce = false) |
| 23 | 23 | { |
| 24 | - if(!$bForce && $di->h(AnnotationReader::class)) |
|
| 24 | + if (!$bForce && $di->h(AnnotationReader::class)) |
|
| 25 | 25 | { |
| 26 | 26 | return; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $sCacheDirKey = 'jaxon_annotations_cache_dir'; |
| 30 | - if(!$di->h($sCacheDirKey)) |
|
| 30 | + if (!$di->h($sCacheDirKey)) |
|
| 31 | 31 | { |
| 32 | 32 | $di->val($sCacheDirKey, sys_get_temp_dir()); |
| 33 | 33 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $di = Ajax::getInstance()->di(); |
| 50 | 50 | $sEventListenerKey = AnnotationReader::class . '\\ConfigListener'; |
| 51 | - if($di->h($sEventListenerKey)) |
|
| 51 | + if ($di->h($sEventListenerKey)) |
|
| 52 | 52 | { |
| 53 | 53 | return; |
| 54 | 54 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | public function onChange(Config $xConfig, string $sName) |
| 62 | 62 | { |
| 63 | 63 | $sConfigKey = 'core.annotations.enabled'; |
| 64 | - if(($sName === $sConfigKey || $sName === '') && $xConfig->getOption($sConfigKey)) |
|
| 64 | + if (($sName === $sConfigKey || $sName === '') && $xConfig->getOption($sConfigKey)) |
|
| 65 | 65 | { |
| 66 | 66 | register(Ajax::getInstance()->di()); |
| 67 | 67 | } |