mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
CS fixer
This commit is contained in:
@@ -45,8 +45,8 @@ class RavenHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Raven_Client $ravenClient
|
* @param Raven_Client $ravenClient
|
||||||
* @param integer $level The minimum logging level at which this handler will be triggered
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
||||||
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
|
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
|
||||||
*/
|
*/
|
||||||
public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true)
|
public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true)
|
||||||
{
|
{
|
||||||
|
@@ -39,9 +39,9 @@ class ZendMonitorHandler extends AbstractProcessingHandler
|
|||||||
/**
|
/**
|
||||||
* Construct
|
* Construct
|
||||||
*
|
*
|
||||||
* @param int $level
|
* @param int $level
|
||||||
* @param bool $bubble
|
* @param bool $bubble
|
||||||
* @throws MissingExtensionException
|
* @throws MissingExtensionException
|
||||||
*/
|
*/
|
||||||
public function __construct($level = Logger::DEBUG, $bubble = true)
|
public function __construct($level = Logger::DEBUG, $bubble = true)
|
||||||
{
|
{
|
||||||
@@ -66,9 +66,9 @@ class ZendMonitorHandler extends AbstractProcessingHandler
|
|||||||
/**
|
/**
|
||||||
* Write a record to Zend Monitor
|
* Write a record to Zend Monitor
|
||||||
*
|
*
|
||||||
* @param int $level
|
* @param int $level
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param array $formatted
|
* @param array $formatted
|
||||||
*/
|
*/
|
||||||
protected function writeZendMonitorCustomEvent($level, $message, $formatted)
|
protected function writeZendMonitorCustomEvent($level, $message, $formatted)
|
||||||
{
|
{
|
||||||
|
@@ -35,4 +35,4 @@ class UidProcessor
|
|||||||
|
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Monolog\Handler;
|
namespace Monolog\Handler;
|
||||||
|
|
||||||
use Monolog\Logger;
|
|
||||||
use Monolog\TestCase;
|
use Monolog\TestCase;
|
||||||
|
|
||||||
class NativeMailerHandlerTest extends TestCase
|
class NativeMailerHandlerTest extends TestCase
|
||||||
@@ -23,7 +22,7 @@ class NativeMailerHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@attacker.org");
|
$mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@attacker.org");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException InvalidArgumentException
|
* @expectedException InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
@@ -32,7 +31,7 @@ class NativeMailerHandlerTest extends TestCase
|
|||||||
$mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
|
$mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
|
||||||
$mailer->addHeader("Content-Type: text/html\r\nFrom: faked@attacker.org");
|
$mailer->addHeader("Content-Type: text/html\r\nFrom: faked@attacker.org");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException InvalidArgumentException
|
* @expectedException InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
|
@@ -38,12 +38,14 @@ class RavenHandlerTest extends TestCase
|
|||||||
protected function getHandler($ravenClient)
|
protected function getHandler($ravenClient)
|
||||||
{
|
{
|
||||||
$handler = new RavenHandler($ravenClient);
|
$handler = new RavenHandler($ravenClient);
|
||||||
|
|
||||||
return $handler;
|
return $handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getRavenClient()
|
protected function getRavenClient()
|
||||||
{
|
{
|
||||||
$dsn = 'http://43f6017361224d098402974103bfc53d:a6a0538fc2934ba2bed32e08741b2cd3@marca.python.live.cheggnet.com:9000/1';
|
$dsn = 'http://43f6017361224d098402974103bfc53d:a6a0538fc2934ba2bed32e08741b2cd3@marca.python.live.cheggnet.com:9000/1';
|
||||||
|
|
||||||
return new MockRavenClient($dsn);
|
return new MockRavenClient($dsn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
namespace Monolog\Handler;
|
namespace Monolog\Handler;
|
||||||
|
|
||||||
use Monolog\Logger;
|
|
||||||
use Monolog\TestCase;
|
use Monolog\TestCase;
|
||||||
|
|
||||||
class ZendMonitorHandlerTest extends TestCase
|
class ZendMonitorHandlerTest extends TestCase
|
||||||
|
Reference in New Issue
Block a user