1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-12 16:14:08 +02:00

CS fixes & upgrading cs fixer config

This commit is contained in:
Jordi Boggiano
2015-11-18 17:09:41 +00:00
parent 75ca9e5dc7
commit c889fb2648
64 changed files with 288 additions and 218 deletions

View File

@@ -65,8 +65,8 @@ class AmqpHandlerTest extends TestCase
0,
array(
'delivery_mode' => 2,
'Content-type' => 'application/json'
)
'Content-type' => 'application/json',
),
);
$handler->handle($record);
@@ -117,8 +117,8 @@ class AmqpHandlerTest extends TestCase
null,
array(
'delivery_mode' => 2,
'content_type' => 'application/json'
)
'content_type' => 'application/json',
),
);
$handler->handle($record);

View File

@@ -41,7 +41,7 @@ class ChromePHPHandlerTest extends TestCase
'test',
),
'request_uri' => '',
))))
)))),
);
$this->assertEquals($expected, $handler->getHeaders());
@@ -81,7 +81,7 @@ class ChromePHPHandlerTest extends TestCase
),
),
'request_uri' => '',
))))
)))),
);
$this->assertEquals($expected, $handler->getHeaders());
@@ -110,7 +110,7 @@ class ChromePHPHandlerTest extends TestCase
'test',
),
'request_uri' => '',
))))
)))),
);
$this->assertEquals($expected, $handler2->getHeaders());

View File

@@ -67,7 +67,7 @@ class DynamoDbHandlerTest extends TestCase
->method('__call')
->with('putItem', array(array(
'TableName' => 'foo',
'Item' => $formatted
'Item' => $formatted,
)));
$handler->handle($record);

View File

@@ -174,7 +174,7 @@ class HipChatHandlerTest extends TestCase
array(
array('level' => Logger::WARNING, 'message' => 'Oh bugger!', 'level_name' => 'warning', 'datetime' => new \DateTime()),
array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
array('level' => Logger::CRITICAL, 'message' => 'Everything is broken!', 'level_name' => 'critical', 'datetime' => new \DateTime())
array('level' => Logger::CRITICAL, 'message' => 'Everything is broken!', 'level_name' => 'critical', 'datetime' => new \DateTime()),
),
'red',
),

View File

@@ -45,7 +45,7 @@ class LogEntriesHandlerTest extends TestCase
$records = array(
$this->getRecord(),
$this->getRecord(),
$this->getRecord()
$this->getRecord(),
);
$this->createHandler();
$this->handler->handleBatch($records);

View File

@@ -71,7 +71,8 @@ class NativeMailerHandlerTest extends TestCase
$mailer->setEncoding("utf-8\r\nFrom: faked@attacker.org");
}
public function testSend() {
public function testSend()
{
$to = 'spammer@example.org';
$subject = 'dear victim';
$from = 'receiver@example.org';

View File

@@ -27,7 +27,6 @@ use PHPUnit_Framework_MockObject_MockObject;
*/
class PHPConsoleHandlerTest extends TestCase
{
/** @var Connector|PHPUnit_Framework_MockObject_MockObject */
protected $connector;
/** @var DebugDispatcher|PHPUnit_Framework_MockObject_MockObject */
@@ -103,7 +102,7 @@ class PHPConsoleHandlerTest extends TestCase
protected function initLogger($handlerOptions = array(), $level = Logger::DEBUG)
{
return new Logger('test', array(
new PHPConsoleHandler($handlerOptions, $this->connector, $level)
new PHPConsoleHandler($handlerOptions, $this->connector, $level),
));
}

View File

@@ -109,7 +109,7 @@ class RavenHandlerTest extends TestCase
$user = array(
'id' => '123',
'email' => 'test@test.com'
'email' => 'test@test.com',
);
$recordWithContext = $this->getRecord(Logger::INFO, 'test', array('user' => $user));

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
use Monolog\Logger;
@@ -63,7 +72,8 @@ class SwiftMailerHandlerTest extends TestCase
$handler->handleBatch($records);
}
public function testMessageHaveUniqueId() {
public function testMessageHaveUniqueId()
{
$messageTemplate = \Swift_Message::newInstance();
$handler = new SwiftMailerHandler($this->mailer, $messageTemplate);

View File

@@ -30,7 +30,7 @@ class ZendMonitorHandlerTest extends TestCase
{
$record = $this->getRecord();
$formatterResult = array(
'message' => $record['message']
'message' => $record['message'],
);
$zendMonitor = $this->getMockBuilder('Monolog\Handler\ZendMonitorHandler')