Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php 3 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15 14
 use Monolog\Logger;
16
-use PhpAmqpLib\Message\AMQPMessage;
15
+use Monolog\TestCase;
17 16
 use PhpAmqpLib\Connection\AMQPConnection;
17
+use PhpAmqpLib\Message\AMQPMessage;
18 18
 
19 19
 /**
20 20
  * @covers Monolog\Handler\RotatingFileHandler
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         ;
41 41
         $exchange->expects($this->any())
42 42
             ->method('publish')
43
-            ->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages) {
43
+            ->will($this->returnCallback(function($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages) {
44 44
                 $messages[] = array($message, $routing_key, $flags, $attributes);
45 45
             }))
46 46
         ;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $exchange->expects($this->any())
91 91
             ->method('basic_publish')
92
-            ->will($this->returnCallback(function (AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages) {
92
+            ->will($this->returnCallback(function(AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages) {
93 93
                 $messages[] = array($msg, $exchange, $routing_key, $mandatory, $immediate, $ticket);
94 94
             }))
95 95
         ;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         ;
41 41
         $exchange->expects($this->any())
42 42
             ->method('publish')
43
-            ->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages) {
43
+            ->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages){
44 44
                 $messages[] = array($message, $routing_key, $flags, $attributes);
45 45
             }))
46 46
         ;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $exchange->expects($this->any())
91 91
             ->method('basic_publish')
92
-            ->will($this->returnCallback(function (AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages) {
92
+            ->will($this->returnCallback(function (AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages){
93 93
                 $messages[] = array($msg, $exchange, $routing_key, $mandatory, $immediate, $ticket);
94 94
             }))
95 95
         ;
Please login to merge, or discard this patch.
vendor/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15 14
 use Monolog\Logger;
15
+use Monolog\TestCase;
16 16
 
17 17
 class DeduplicationHandlerTest extends TestCase
18 18
 {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
         // log is written as none of them are duplicate
128 128
         $handler->flush();
129 129
         $this->assertSame(
130
-            $record['datetime']->getTimestamp() . ":ERROR:test\n" .
131
-            $record2['datetime']->getTimestamp() . ":CRITICAL:test\n" .
132
-            $record3['datetime']->getTimestamp() . ":CRITICAL:test\n",
133
-            file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
130
+            $record['datetime']->getTimestamp().":ERROR:test\n".
131
+            $record2['datetime']->getTimestamp().":CRITICAL:test\n".
132
+            $record3['datetime']->getTimestamp().":CRITICAL:test\n",
133
+            file_get_contents(sys_get_temp_dir().'/monolog_dedup.log')
134 134
         );
135 135
         $this->assertTrue($test->hasErrorRecords());
136 136
         $this->assertTrue($test->hasCriticalRecords());
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
 
149 149
         // log should now contain the new errors and the previous one that was recent enough
150 150
         $this->assertSame(
151
-            $record3['datetime']->getTimestamp() . ":CRITICAL:test\n" .
152
-            $record['datetime']->getTimestamp() . ":ERROR:test\n" .
153
-            $record2['datetime']->getTimestamp() . ":CRITICAL:test\n",
154
-            file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
151
+            $record3['datetime']->getTimestamp().":CRITICAL:test\n".
152
+            $record['datetime']->getTimestamp().":ERROR:test\n".
153
+            $record2['datetime']->getTimestamp().":CRITICAL:test\n",
154
+            file_get_contents(sys_get_temp_dir().'/monolog_dedup.log')
155 155
         );
156 156
         $this->assertTrue($test->hasErrorRecords());
157 157
         $this->assertTrue($test->hasCriticalRecords());
Please login to merge, or discard this patch.
vendor/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\Formatter\ElasticaFormatter;
15
-use Monolog\Formatter\NormalizerFormatter;
16
-use Monolog\TestCase;
17
-use Monolog\Logger;
18 14
 use Elastica\Client;
19 15
 use Elastica\Request;
20 16
 use Elastica\Response;
17
+use Monolog\Formatter\ElasticaFormatter;
18
+use Monolog\Formatter\NormalizerFormatter;
19
+use Monolog\Logger;
20
+use Monolog\TestCase;
21 21
 
22 22
 class ElasticSearchHandlerTest extends TestCase
23 23
 {
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15
-use Monolog\Logger;
16 14
 use Monolog\Formatter\LineFormatter;
15
+use Monolog\Logger;
16
+use Monolog\TestCase;
17 17
 
18 18
 function error_log()
19 19
 {
Please login to merge, or discard this patch.
vendor/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php 3 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15
-use Monolog\Logger;
16
-use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
17 14
 use Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy;
15
+use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
16
+use Monolog\Logger;
17
+use Monolog\TestCase;
18 18
 use Psr\Log\LogLevel;
19 19
 
20 20
 class FingersCrossedHandlerTest extends TestCase
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function testHandleWithCallback()
114 114
     {
115 115
         $test = new TestHandler();
116
-        $handler = new FingersCrossedHandler(function ($record, $handler) use ($test) {
116
+        $handler = new FingersCrossedHandler(function($record, $handler) use ($test) {
117 117
                     return $test;
118 118
                 });
119 119
         $handler->handle($this->getRecord(Logger::DEBUG));
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function testHandleWithBadCallbackThrowsException()
134 134
     {
135
-        $handler = new FingersCrossedHandler(function ($record, $handler) {
135
+        $handler = new FingersCrossedHandler(function($record, $handler){
136 136
                     return 'foo';
137 137
                 });
138 138
         $handler->handle($this->getRecord(Logger::WARNING));
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         $test = new TestHandler();
240 240
         $handler = new FingersCrossedHandler($test, Logger::INFO);
241
-        $handler->pushProcessor(function ($record) {
241
+        $handler->pushProcessor(function($record){
242 242
             $record['extra']['foo'] = true;
243 243
 
244 244
             return $record;
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function testHandleWithCallback()
114 114
     {
115 115
         $test = new TestHandler();
116
-        $handler = new FingersCrossedHandler(function ($record, $handler) use ($test) {
116
+        $handler = new FingersCrossedHandler(function ($record, $handler) use ($test){
117 117
                     return $test;
118 118
                 });
119 119
         $handler->handle($this->getRecord(Logger::DEBUG));
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function testHandleWithBadCallbackThrowsException()
134 134
     {
135
-        $handler = new FingersCrossedHandler(function ($record, $handler) {
135
+        $handler = new FingersCrossedHandler(function ($record, $handler){
136 136
                     return 'foo';
137 137
                 });
138 138
         $handler->handle($this->getRecord(Logger::WARNING));
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         $test = new TestHandler();
240 240
         $handler = new FingersCrossedHandler($test, Logger::INFO);
241
-        $handler->pushProcessor(function ($record) {
241
+        $handler->pushProcessor(function ($record){
242 242
             $record['extra']['foo'] = true;
243 243
 
244 244
             return $record;
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 namespace Monolog\Handler;
13 13
 
14 14
 use Gelf\Message;
15
-use Monolog\TestCase;
16
-use Monolog\Logger;
17 15
 use Monolog\Formatter\GelfMessageFormatter;
16
+use Monolog\Logger;
17
+use Monolog\TestCase;
18 18
 
19 19
 class GelfHandlerTest extends TestCase
20 20
 {
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15 14
 use Monolog\Logger;
15
+use Monolog\TestCase;
16 16
 
17 17
 /**
18 18
  * @author Rafael Dohms <[email protected]>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -176,14 +176,14 @@
 block discarded – undo
176 176
     public function provideLevelColors()
177 177
     {
178 178
         return array(
179
-            array(Logger::DEBUG,    'gray'),
180
-            array(Logger::INFO,     'green'),
181
-            array(Logger::WARNING,  'yellow'),
182
-            array(Logger::ERROR,    'red'),
179
+            array(Logger::DEBUG, 'gray'),
180
+            array(Logger::INFO, 'green'),
181
+            array(Logger::WARNING, 'yellow'),
182
+            array(Logger::ERROR, 'red'),
183 183
             array(Logger::CRITICAL, 'red'),
184
-            array(Logger::ALERT,    'red'),
185
-            array(Logger::EMERGENCY,'red'),
186
-            array(Logger::NOTICE,   'green'),
184
+            array(Logger::ALERT, 'red'),
185
+            array(Logger::EMERGENCY, 'red'),
186
+            array(Logger::NOTICE, 'green'),
187 187
         );
188 188
     }
189 189
 
Please login to merge, or discard this patch.
vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 namespace Monolog\Handler;
13 13
 
14
-use Monolog\TestCase;
15
-use Monolog\Logger;
16 14
 use InvalidArgumentException;
15
+use Monolog\Logger;
16
+use Monolog\TestCase;
17 17
 
18 18
 function mail($to, $subject, $message, $additional_headers = null, $additional_parameters = null)
19 19
 {
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Monolog\Handler;
13 13
 
14 14
 use Monolog\Formatter\LineFormatter;
15
-use Monolog\TestCase;
16 15
 use Monolog\Logger;
16
+use Monolog\TestCase;
17 17
 
18 18
 class NewRelicHandlerTest extends TestCase
19 19
 {
Please login to merge, or discard this patch.