Passed
Push — main ( 527d6d...d1d6a4 )
by Thierry
01:54
created
src/start.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.