Passed
Pull Request — master (#28)
by Witold
01:38
created
src/DBAL/PingConnectionMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function execute(object $command, callable $next)
33 33
     {
34
-        if (! $this->ping($this->connection)) {
34
+        if ( ! $this->ping($this->connection)) {
35 35
             $this->connection->close();
36 36
             $this->connection->connect();
37 37
         }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     private function ping(Connection $connection): bool
43 43
     {
44
-        set_error_handler(static function (int $severity, string $message, string $file, int $line): bool {
44
+        set_error_handler(static function(int $severity, string $message, string $file, int $line): bool {
45 45
             throw new ErrorException($message, $severity, $severity, $file, $line);
46 46
         });
47 47
 
Please login to merge, or discard this patch.