Jordi Boggiano il y a 11 ans
Parent
commit
b738a6c04c

+ 1 - 1
src/Monolog/Formatter/JsonFormatter.php

@@ -22,7 +22,7 @@ class JsonFormatter implements FormatterInterface
 {
     const BATCH_MODE_JSON = 1;
     const BATCH_MODE_NEWLINES = 2;
-    
+
     protected $batchMode;
     protected $appendNewline;
 

+ 0 - 2
src/Monolog/Handler/LogEntriesHandler.php

@@ -18,7 +18,6 @@ use Monolog\Logger;
  */
 class LogEntriesHandler extends SocketHandler
 {
-
     /**
      * @var string
      */
@@ -53,5 +52,4 @@ class LogEntriesHandler extends SocketHandler
     {
         return $this->logToken . ' ' . $record['formatted'];
     }
-
 }

+ 0 - 1
src/Monolog/Handler/MissingExtensionException.php

@@ -18,5 +18,4 @@ namespace Monolog\Handler;
  */
 class MissingExtensionException extends \Exception
 {
-
 }

+ 0 - 1
src/Monolog/Handler/SocketHandler.php

@@ -281,5 +281,4 @@ class SocketHandler extends AbstractProcessingHandler
             throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)");
         }
     }
-
 }

+ 1 - 1
src/Monolog/Handler/WhatFailureGroupHandler.php

@@ -12,7 +12,7 @@
 namespace Monolog\Handler;
 
 /**
- * Forwards records to multiple handlers suppressing failures of each handler 
+ * Forwards records to multiple handlers suppressing failures of each handler
  * and continuing through to give every handler a chance to succeed.
  *
  * @author Craig D'Amelio <craig@damelio.ca>

+ 0 - 1
src/Monolog/Processor/MemoryProcessor.php

@@ -60,5 +60,4 @@ abstract class MemoryProcessor
 
         return $bytes . ' B';
     }
-
 }

+ 1 - 1
src/Monolog/Processor/WebProcessor.php

@@ -41,7 +41,7 @@ class WebProcessor
     public function __construct($serverData = null, array $extraFields = null)
     {
         if (null === $serverData) {
-            $this->serverData =& $_SERVER;
+            $this->serverData = &$_SERVER;
         } elseif (is_array($serverData) || $serverData instanceof \ArrayAccess) {
             $this->serverData = $serverData;
         } else {

+ 0 - 2
tests/Monolog/Formatter/GelfMessageFormatterTest.php

@@ -115,7 +115,6 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
 
         $this->assertArrayHasKey('_CTXfrom', $message_array);
         $this->assertEquals('logger', $message_array['_CTXfrom']);
-
     }
 
     /**
@@ -144,7 +143,6 @@ class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
 
         $this->assertEquals("/some/file/in/dir.php", $message->getFile());
         $this->assertEquals("56", $message->getLine());
-
     }
 
     /**

+ 0 - 1
tests/Monolog/Formatter/JsonFormatterTest.php

@@ -65,7 +65,6 @@ class JsonFormatterTest extends TestCase
      */
     public function testFormatBatchNewlines()
     {
-
         $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES);
         $records = $expected = array(
             $this->getRecord(Logger::WARNING),

+ 0 - 3
tests/Monolog/Formatter/LogstashFormatterTest.php

@@ -15,7 +15,6 @@ use Monolog\Logger;
 
 class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
 {
-
     /**
      * @covers Monolog\Formatter\LogstashFormatter::format
      */
@@ -102,7 +101,6 @@ class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
 
         $this->assertArrayHasKey('CTXfrom', $message_array);
         $this->assertEquals('logger', $message_array['CTXfrom']);
-
     }
 
     /**
@@ -239,7 +237,6 @@ class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
 
         $this->assertArrayHasKey('CTXfrom', $message);
         $this->assertEquals('logger', $message['CTXfrom']);
-
     }
 
     /**

+ 0 - 1
tests/Monolog/Handler/BrowserConsoleHandlerTest.php

@@ -64,7 +64,6 @@ EOF;
         $this->assertEquals($expected, $this->generateScript());
     }
 
-
     public function testAutolabel()
     {
         $handler = new BrowserConsoleHandler();

+ 0 - 1
tests/Monolog/Handler/ErrorLogHandlerTest.php

@@ -22,7 +22,6 @@ function error_log()
 
 class ErrorLogHandlerTest extends TestCase
 {
-
     protected function setUp()
     {
         $GLOBALS['error_log'] = array();

+ 0 - 2
tests/Monolog/Handler/FleepHookHandlerTest.php

@@ -73,7 +73,6 @@ class FleepHookHandlerTest extends TestCase
         $actual = $handlerFormatter->format($record);
 
         $this->assertEquals($expected, $actual, 'Empty context and extra arrays should not be rendered');
-
     }
 
     /**
@@ -83,5 +82,4 @@ class FleepHookHandlerTest extends TestCase
     {
         $this->assertEquals('ssl://' . FleepHookHandler::FLEEP_HOST . ':443', $this->handler->getConnectionString());
     }
-
 }

+ 0 - 2
tests/Monolog/Handler/GelfHandlerTest.php

@@ -65,7 +65,6 @@ class GelfHandlerTest extends TestCase
         $handler = $this->getHandler($messagePublisher);
 
         $handler->handle($record);
-
     }
 
     public function testWarning()
@@ -114,6 +113,5 @@ class GelfHandlerTest extends TestCase
         $handler = $this->getHandler($messagePublisher);
         $handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
         $handler->handle($record);
-
     }
 }

+ 0 - 1
tests/Monolog/Handler/HipChatHandlerTest.php

@@ -20,7 +20,6 @@ use Monolog\Logger;
  */
 class HipChatHandlerTest extends TestCase
 {
-
     private $res;
     private $handler;
 

+ 3 - 1
tests/Monolog/Handler/MongoDBHandlerTest.php

@@ -58,6 +58,8 @@ class MongoDBHandlerTest extends TestCase
 if (!class_exists('Mongo')) {
     class Mongo
     {
-        public function selectCollection() {}
+        public function selectCollection()
+        {
+        }
     }
 }

+ 0 - 1
tests/Monolog/Handler/PushoverHandlerTest.php

@@ -22,7 +22,6 @@ use Monolog\Logger;
  */
 class PushoverHandlerTest extends TestCase
 {
-
     private $res;
     private $handler;
 

+ 1 - 1
tests/Monolog/Handler/SlackHandlerTest.php

@@ -56,7 +56,7 @@ class SlackHandlerTest extends TestCase
 
         $this->assertRegexp('/token=myToken&channel=channel1&username=Monolog&text=&attachments=.*$/', $content);
     }
-    
+
     public function testWriteContentWithEmoji()
     {
         $this->createHandler('myToken', 'channel1', 'Monolog', true, 'alien');

+ 0 - 1
tests/Monolog/Handler/SocketHandlerTest.php

@@ -279,5 +279,4 @@ class SocketHandlerTest extends TestCase
 
         $this->handler->setFormatter($this->getIdentityFormatter());
     }
-
 }

+ 2 - 2
tests/Monolog/Handler/StreamHandlerTest.php

@@ -83,7 +83,7 @@ class StreamHandlerTest extends TestCase
             array(array('bogus://url')),
         );
     }
-    
+
     /**
      * @dataProvider invalidArgumentProvider
      * @expectedException InvalidArgumentException
@@ -93,7 +93,7 @@ class StreamHandlerTest extends TestCase
     {
         $handler = new StreamHandler($invalidArgument);
     }
-    
+
     /**
      * @expectedException UnexpectedValueException
      * @covers Monolog\Handler\StreamHandler::__construct

+ 1 - 0
tests/Monolog/Handler/SyslogHandlerTest.php

@@ -10,6 +10,7 @@
  */
 
 namespace Monolog\Handler;
+
 use Monolog\Logger;
 
 class SyslogHandlerTest extends \PHPUnit_Framework_TestCase

+ 4 - 2
tests/Monolog/Handler/WhatFailureGroupHandlerTest.php

@@ -90,7 +90,8 @@ class WhatFailureGroupHandlerTest extends TestCase
     /**
      * @covers Monolog\Handler\WhatFailureGroupHandler::handle
      */
-    public function testHandleException() {
+    public function testHandleException()
+    {
         $test = new TestHandler();
         $exception = new ExceptionTestHandler();
         $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
@@ -111,7 +112,8 @@ class ExceptionTestHandler extends TestHandler
     /**
      * {@inheritdoc}
      */
-    public function handle(array $record) {
+    public function handle(array $record)
+    {
         parent::handle($record);
 
         throw new \Exception("ExceptionTestHandler::handle");

+ 0 - 2
tests/Monolog/Processor/PsrLogMessageProcessorTest.php

@@ -11,8 +11,6 @@
 
 namespace Monolog\Processor;
 
-use Monolog\Processor\PsrLogMessageProcessor;
-
 class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
 {
     /**