Passed
Push — main ( 957ef0...483b9f )
by Thierry
04:08
created
jaxon-upload/src/register.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 function registerUpload(): void
24 24
 {
25 25
     $jaxon = jaxon();
26
-    if(!$jaxon->getOption('upload.enabled') && !$jaxon->getOption('core.upload.enabled'))
26
+    if (!$jaxon->getOption('upload.enabled') && !$jaxon->getOption('core.upload.enabled'))
27 27
     {
28 28
         return;
29 29
     }
30 30
 
31 31
     $di = $jaxon->di();
32
-    if($di->h(UploadHandler::class))
32
+    if ($di->h(UploadHandler::class))
33 33
     {
34 34
         return;
35 35
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $xUploadHandler = $di->g(UploadHandler::class);
80 80
         // The HTTP request
81 81
         $xRequest = $di->getRequest();
82
-        if($xUploadHandler->canProcessRequest($xRequest))
82
+        if ($xUploadHandler->canProcessRequest($xRequest))
83 83
         {
84 84
             $xUploadHandler->processRequest($xRequest);
85 85
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 function register()
101 101
 {
102 102
     // Do nothing if running in cli.
103
-    if(php_sapi_name() !== 'cli')
103
+    if (php_sapi_name() !== 'cli')
104 104
     {
105 105
         _register();
106 106
     };
Please login to merge, or discard this patch.