@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | return [ |
| 131 | 131 | 'Zend\Loader\StandardAutoloader' => [ |
| 132 | 132 | 'namespaces' => [ |
| 133 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
| 133 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
| 134 | 134 | ] |
| 135 | 135 | ] |
| 136 | 136 | ]; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getConfig() |
| 143 | 143 | { |
| 144 | - return include __DIR__ . '/config/module.config.php'; |
|
| 144 | + return include __DIR__.'/config/module.config.php'; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -159,15 +159,15 @@ discard block |
||
| 159 | 159 | $logLevels = $this->logLevels; |
| 160 | 160 | |
| 161 | 161 | $sharedManager->attach( |
| 162 | - '*', 'log', function ($event) use ($raven, $logLevels) { |
|
| 162 | + '*', 'log', function($event) use ($raven, $logLevels) { |
|
| 163 | 163 | /** @var $event MvcEvent */ |
| 164 | 164 | if (\is_object($event->getTarget())) { |
| 165 | 165 | $target = \get_class($event->getTarget()); |
| 166 | 166 | } else { |
| 167 | - $target = (string)$event->getTarget(); |
|
| 167 | + $target = (string) $event->getTarget(); |
|
| 168 | 168 | } |
| 169 | 169 | $message = $event->getParam('message', 'No message provided'); |
| 170 | - $priority = (int)$event->getParam('priority', Logger::INFO); |
|
| 170 | + $priority = (int) $event->getParam('priority', Logger::INFO); |
|
| 171 | 171 | $message = sprintf('%s: %s', $target, $message); |
| 172 | 172 | $tags = $event->getParam('tags', []); |
| 173 | 173 | $extra = $event->getParam('extra', []); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | |
| 210 | 210 | // Attach an exception listener for the ZendSentry exception strategy, can be triggered from anywhere else too |
| 211 | 211 | $this->eventManager->getSharedManager()->attach( |
| 212 | - '*', 'logException', function ($event) use ($ravenClient) { |
|
| 212 | + '*', 'logException', function($event) use ($ravenClient) { |
|
| 213 | 213 | /** @var $event MvcEvent */ |
| 214 | 214 | $exception = $event->getParam('exception'); |
| 215 | 215 | $tags = $event->getParam('tags', []); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function setDisplayExceptions($displayExceptions): ExceptionStrategy |
| 69 | 69 | { |
| 70 | - $this->displayExceptions = (bool)$displayExceptions; |
|
| 70 | + $this->displayExceptions = (bool) $displayExceptions; |
|
| 71 | 71 | return $this; |
| 72 | 72 | } |
| 73 | 73 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function setExceptionTemplate($exceptionTemplate): ExceptionStrategy |
| 183 | 183 | { |
| 184 | - $this->exceptionTemplate = (string)$exceptionTemplate; |
|
| 184 | + $this->exceptionTemplate = (string) $exceptionTemplate; |
|
| 185 | 185 | return $this; |
| 186 | 186 | } |
| 187 | 187 | } |
| 188 | 188 | \ No newline at end of file |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function setDisplayExceptions($displayExceptions): ExceptionStrategy |
| 82 | 82 | { |
| 83 | - $this->displayExceptions = (bool)$displayExceptions; |
|
| 83 | + $this->displayExceptions = (bool) $displayExceptions; |
|
| 84 | 84 | return $this; |
| 85 | 85 | } |
| 86 | 86 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | if (\is_callable($this->message)) { |
| 185 | 185 | $callback = $this->message; |
| 186 | - $message = (string)$callback($exception, $this->displayExceptions); |
|
| 186 | + $message = (string) $callback($exception, $this->displayExceptions); |
|
| 187 | 187 | } elseif ($this->displayExceptions && $exception instanceof \Exception) { |
| 188 | 188 | /* @var $exception \Exception */ |
| 189 | 189 | $message = str_replace( |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $expectedConfig = [ |
| 34 | 34 | StandardAutoloader::class => [ |
| 35 | 35 | 'namespaces' => [ |
| 36 | - 'ZendSentry' => realpath(__DIR__ . '/../../src/ZendSentry') |
|
| 36 | + 'ZendSentry' => realpath(__DIR__.'/../../src/ZendSentry') |
|
| 37 | 37 | ] |
| 38 | 38 | ] |
| 39 | 39 | ]; |