Completed
Push — master ( 955870...49bd4e )
by Maxim
02:48
created
src/Weew/App/ErrorHandler/Monolog/MonologErrorHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function enableErrorHandling() {
69 69
         $this->errorHandler->addRecoverableErrorHandler(
70
-            [$this, 'handleRecoverableError']
70
+            [ $this, 'handleRecoverableError' ]
71 71
         );
72 72
         $this->errorHandler->addFatalErrorHandler(
73
-            [$this, 'handleFatalError']
73
+            [ $this, 'handleFatalError' ]
74 74
         );
75 75
     }
76 76
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function enableExceptionHandling() {
81 81
         $this->errorHandler->addExceptionHandler(
82
-            [$this, 'handleException']
82
+            [ $this, 'handleException' ]
83 83
         );
84 84
     }
85 85
 
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
             $ex->getLine()
142 142
         );
143 143
 
144
-        $this->logger->log(LogLevel::ERROR, $message, ['exception' => $ex]);
144
+        $this->logger->log(LogLevel::ERROR, $message, [ 'exception' => $ex ]);
145 145
     }
146 146
 }
Please login to merge, or discard this patch.