Passed
Push — main ( 34011e...80f8c6 )
by Thierry
02:35
created
src/DbAdminPackage.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         // Check in server options
73 73
         $serverAccess = $this->getOption("servers.$server.access.server", null);
74
-        if($serverAccess === true || $serverAccess === false)
74
+        if ($serverAccess === true || $serverAccess === false)
75 75
         {
76 76
             return $serverAccess;
77 77
         }
@@ -127,8 +127,7 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $defaultServer = $this->getOption('default');
129 129
         return !$defaultServer ||
130
-            !$this->getOption("servers.$defaultServer") ? '' :
131
-                rq(Admin::class)->server($defaultServer);
130
+            !$this->getOption("servers.$defaultServer") ? '' : rq(Admin::class)->server($defaultServer);
132 131
     }
133 132
 
134 133
     /**
Please login to merge, or discard this patch.
src/Db/Facades/AbstractFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @var AppDriver|null
16 16
      */
17
-    protected AppDriver|null $driver = null;
17
+    protected AppDriver | null $driver = null;
18 18
 
19 19
     /**
20 20
      * @var Admin
Please login to merge, or discard this patch.
src/Db/Facades/CommandFacade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param QueryLogger|null $queryLogger
48 48
      */
49 49
     public function __construct(AbstractFacade $dbFacade,
50
-        protected TimerService $timer, protected QueryLogger|null $queryLogger)
50
+        protected TimerService $timer, protected QueryLogger | null $queryLogger)
51 51
     {
52 52
         parent::__construct($dbFacade);
53 53
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
                 ini_set('memory_limit', max($this->admin->iniBytes('memory_limit'),
232 232
                     2 * strlen($queries) + memory_get_usage() + 8e6));
233 233
             }
234
-            catch(\Exception $e) {
234
+            catch (\Exception $e) {
235 235
                 // Do nothing if the option is not modified.
236 236
             }
237 237
         }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         if ($commands === 0) {
259 259
             $messages[] = $this->utils->trans->lang('No commands to execute.');
260 260
         } elseif ($onlyErrors) {
261
-            $messages[] =  $this->utils->trans->lang('%d query(s) executed OK.', $commands - $errors);
261
+            $messages[] = $this->utils->trans->lang('%d query(s) executed OK.', $commands - $errors);
262 262
         }
263 263
         return [
264 264
             'results' => $this->results,
Please login to merge, or discard this patch.
config/dbadmin.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
 function getAuth($di): Config\AuthInterface
13 13
 {
14 14
     return $di->h(Config\AuthInterface::class) ?
15
-        $di->g(Config\AuthInterface::class) :
16
-        new class implements Config\AuthInterface {
15
+        $di->g(Config\AuthInterface::class) : new class implements Config\AuthInterface {
17 16
             public function user(): string
18 17
             {
19 18
                 return '';
@@ -62,7 +61,7 @@  discard block
 block discarded – undo
62 61
             Driver\DriverInterface::class => function($di) {
63 62
                 // Register a driver for each database server.
64 63
                 $package = $di->g(Lagdo\DbAdmin\DbAdminPackage::class);
65
-                foreach($package->getServers() as $server => $options) {
64
+                foreach ($package->getServers() as $server => $options) {
66 65
                     $di->set("dbadmin_driver_$server", fn() =>
67 66
                         Driver\Driver::createDriver($options));
68 67
                 }
Please login to merge, or discard this patch.
config/logging.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             Driver\DriverInterface::class => function($di) {
61 61
                 // Register a driver for each database server.
62 62
                 $package = $di->g(Lagdo\DbAdmin\DbAdminPackage::class);
63
-                foreach($package->getServers() as $server => $options) {
63
+                foreach ($package->getServers() as $server => $options) {
64 64
                     $di->set("dbadmin_driver_$server", fn() =>
65 65
                         Driver\Driver::createDriver($options));
66 66
                 }
Please login to merge, or discard this patch.