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