mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
Curly braces on same line for try/catch, as suggested by @stof in
https://github.com/Seldaek/monolog/pull/76#r743295
This commit is contained in:
@@ -76,12 +76,9 @@ class RavenHandlerTest extends TestCase
|
|||||||
$ravenClient = $this->getRavenClient();
|
$ravenClient = $this->getRavenClient();
|
||||||
$handler = $this->getHandler($ravenClient);
|
$handler = $this->getHandler($ravenClient);
|
||||||
|
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
$this->methodThatThrowsAnException();
|
$this->methodThatThrowsAnException();
|
||||||
}
|
} catch (\Exception $e) {
|
||||||
catch (\Exception $e)
|
|
||||||
{
|
|
||||||
$record = $this->getRecord(Logger::ERROR, $e->getMessage(), array('exception' => $e));
|
$record = $this->getRecord(Logger::ERROR, $e->getMessage(), array('exception' => $e));
|
||||||
$handler->handle($record);
|
$handler->handle($record);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user