Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/vendor/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     public function testPushProcessor()
92 92
     {
93
-        $processor = function () {};
93
+        $processor = function(){};
94 94
         $this->handler->expects($this->once())
95 95
             ->method('pushProcessor')
96 96
             ->with($processor);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     public function testPopProcessor()
102 102
     {
103
-        $processor = function () {};
103
+        $processor = function(){};
104 104
         $this->handler->expects($this->once())
105 105
             ->method('popProcessor')
106 106
             ->willReturn($processor);
Please login to merge, or discard this patch.
monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $handledRecord = null;
71 71
         $handler->expects($this->once())
72 72
             ->method('write')
73
-            ->will($this->returnCallback(function ($record) use (&$handledRecord) {
73
+            ->will($this->returnCallback(function($record) use (&$handledRecord) {
74 74
                 $handledRecord = $record;
75 75
             }))
76 76
         ;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $handledRecord = null;
71 71
         $handler->expects($this->once())
72 72
             ->method('write')
73
-            ->will($this->returnCallback(function ($record) use (&$handledRecord) {
73
+            ->will($this->returnCallback(function ($record) use (&$handledRecord){
74 74
                 $handledRecord = $record;
75 75
             }))
76 76
         ;
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/InsightOpsHandlerTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
- namespace Monolog\Handler;
12
+    namespace Monolog\Handler;
13 13
  
14
- use Monolog\TestCase;
15
- use Monolog\Logger;
14
+    use Monolog\TestCase;
15
+    use Monolog\Logger;
16 16
 
17 17
 /**
18 18
  * @author Robert Kaufmann III <[email protected]>
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $test    = new TestHandler();
110 110
         $handler = new FilterHandler($test, Logger::DEBUG, Logger::EMERGENCY);
111 111
         $handler->pushProcessor(
112
-            function ($record) {
112
+            function($record){
113 113
                 $record['extra']['foo'] = true;
114 114
 
115 115
                 return $record;
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $test    = new TestHandler();
146 146
         $handler = new FilterHandler(
147
-            function ($record, $handler) use ($test) {
147
+            function($record, $handler) use ($test) {
148 148
                 return $test;
149 149
             }, Logger::INFO, Logger::NOTICE, false
150 150
         );
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public function testHandleWithBadCallbackThrowsException()
162 162
     {
163 163
         $handler = new FilterHandler(
164
-            function ($record, $handler) {
164
+            function($record, $handler){
165 165
                 return 'foo';
166 166
             }
167 167
         );
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $test    = new TestHandler();
110 110
         $handler = new FilterHandler($test, Logger::DEBUG, Logger::EMERGENCY);
111 111
         $handler->pushProcessor(
112
-            function ($record) {
112
+            function ($record){
113 113
                 $record['extra']['foo'] = true;
114 114
 
115 115
                 return $record;
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $test    = new TestHandler();
146 146
         $handler = new FilterHandler(
147
-            function ($record, $handler) use ($test) {
147
+            function ($record, $handler) use ($test){
148 148
                 return $test;
149 149
             }, Logger::INFO, Logger::NOTICE, false
150 150
         );
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public function testHandleWithBadCallbackThrowsException()
162 162
     {
163 163
         $handler = new FilterHandler(
164
-            function ($record, $handler) {
164
+            function ($record, $handler){
165 165
                 return 'foo';
166 166
             }
167 167
         );
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function checkPropagation()
54 54
     {
55 55
         if (!$this->shutdownCheckHandler->hasWarningRecords() || !$this->shutdownCheckHandler->hasDebugRecords()) {
56
-            echo '!!! BufferHandlerTest::testPropagatesRecordsAtEndOfRequest failed to verify that the messages have been propagated' . PHP_EOL;
56
+            echo '!!! BufferHandlerTest::testPropagatesRecordsAtEndOfRequest failed to verify that the messages have been propagated'.PHP_EOL;
57 57
             exit(1);
58 58
         }
59 59
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $test = new TestHandler();
146 146
         $handler = new BufferHandler($test);
147
-        $handler->pushProcessor(function ($record) {
147
+        $handler->pushProcessor(function($record){
148 148
             $record['extra']['foo'] = true;
149 149
 
150 150
             return $record;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
     {
145 145
         $test = new TestHandler();
146 146
         $handler = new BufferHandler($test);
147
-        $handler->pushProcessor(function ($record) {
147
+        $handler->pushProcessor(function ($record){
148 148
             $record['extra']['foo'] = true;
149 149
 
150 150
             return $record;
Please login to merge, or discard this patch.
monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $test = new TestHandler();
78 78
         $handler = new WhatFailureGroupHandler(array($test));
79
-        $handler->pushProcessor(function ($record) {
79
+        $handler->pushProcessor(function($record){
80 80
             $record['extra']['foo'] = true;
81 81
 
82 82
             return $record;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $testHandlers = array(new TestHandler(), new TestHandler());
96 96
         $handler = new WhatFailureGroupHandler($testHandlers);
97
-        $handler->pushProcessor(function ($record) {
97
+        $handler->pushProcessor(function($record){
98 98
             $record['extra']['foo'] = true;
99 99
 
100 100
             return $record;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $test = new TestHandler();
119 119
         $exception = new ExceptionTestHandler();
120 120
         $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
121
-        $handler->pushProcessor(function ($record) {
121
+        $handler->pushProcessor(function($record){
122 122
             $record['extra']['foo'] = true;
123 123
 
124 124
             return $record;
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $test = new TestHandler();
78 78
         $handler = new WhatFailureGroupHandler(array($test));
79
-        $handler->pushProcessor(function ($record) {
79
+        $handler->pushProcessor(function ($record){
80 80
             $record['extra']['foo'] = true;
81 81
 
82 82
             return $record;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $testHandlers = array(new TestHandler(), new TestHandler());
96 96
         $handler = new WhatFailureGroupHandler($testHandlers);
97
-        $handler->pushProcessor(function ($record) {
97
+        $handler->pushProcessor(function ($record){
98 98
             $record['extra']['foo'] = true;
99 99
 
100 100
             return $record;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $test = new TestHandler();
119 119
         $exception = new ExceptionTestHandler();
120 120
         $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
121
-        $handler->pushProcessor(function ($record) {
121
+        $handler->pushProcessor(function ($record){
122 122
             $record['extra']['foo'] = true;
123 123
 
124 124
             return $record;
Please login to merge, or discard this patch.
vendor/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $this->mailer->expects($this->never())
33 33
             ->method('send');
34 34
 
35
-        $callback = function () {
35
+        $callback = function(){
36 36
             throw new \RuntimeException('Swift_Message creation callback should not have been called in this test');
37 37
         };
38 38
         $handler = new SwiftMailerHandler($this->mailer, $callback);
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
         $expectedMessage = new \Swift_Message();
51 51
         $this->mailer->expects($this->once())
52 52
             ->method('send')
53
-            ->with($this->callback(function ($value) use ($expectedMessage) {
53
+            ->with($this->callback(function($value) use ($expectedMessage) {
54 54
                 return $value instanceof \Swift_Message
55 55
                     && $value->getSubject() === 'Emergency'
56 56
                     && $value === $expectedMessage;
57 57
             }));
58 58
 
59 59
         // Callback dynamically changes subject based on number of logged records
60
-        $callback = function ($content, array $records) use ($expectedMessage) {
60
+        $callback = function($content, array $records) use ($expectedMessage) {
61 61
             $subject = count($records) > 0 ? 'Emergency' : 'Normal';
62 62
             $expectedMessage->setSubject($subject);
63 63
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $this->mailer->expects($this->once())
83 83
             ->method('send')
84
-            ->with($this->callback(function ($value) use (&$receivedMessage) {
84
+            ->with($this->callback(function($value) use (&$receivedMessage) {
85 85
                 $receivedMessage = $value;
86 86
                 return true;
87 87
             }));
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $this->mailer->expects($this->never())
33 33
             ->method('send');
34 34
 
35
-        $callback = function () {
35
+        $callback = function (){
36 36
             throw new \RuntimeException('Swift_Message creation callback should not have been called in this test');
37 37
         };
38 38
         $handler = new SwiftMailerHandler($this->mailer, $callback);
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
         $expectedMessage = new \Swift_Message();
51 51
         $this->mailer->expects($this->once())
52 52
             ->method('send')
53
-            ->with($this->callback(function ($value) use ($expectedMessage) {
53
+            ->with($this->callback(function ($value) use ($expectedMessage){
54 54
                 return $value instanceof \Swift_Message
55 55
                     && $value->getSubject() === 'Emergency'
56 56
                     && $value === $expectedMessage;
57 57
             }));
58 58
 
59 59
         // Callback dynamically changes subject based on number of logged records
60
-        $callback = function ($content, array $records) use ($expectedMessage) {
60
+        $callback = function ($content, array $records) use ($expectedMessage){
61 61
             $subject = count($records) > 0 ? 'Emergency' : 'Normal';
62 62
             $expectedMessage->setSubject($subject);
63 63
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $this->mailer->expects($this->once())
83 83
             ->method('send')
84
-            ->with($this->callback(function ($value) use (&$receivedMessage) {
84
+            ->with($this->callback(function ($value) use (&$receivedMessage){
85 85
                 $receivedMessage = $value;
86 86
                 return true;
87 87
             }));
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,26 +176,26 @@
 block discarded – undo
176 176
         $formatter
177 177
             ->expects($this->any())
178 178
             ->method('format')
179
-            ->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; }));
179
+            ->will($this->returnCallback(function($record){ return $record['message'].'test'; }));
180 180
 
181 181
         $formatter2 = $this->getMock('Monolog\\Formatter\\FormatterInterface');
182 182
         $formatter2
183 183
             ->expects($this->any())
184 184
             ->method('format')
185
-            ->will($this->returnCallback(function ($record) { return $record['message'] . 'test1'; }));
185
+            ->will($this->returnCallback(function($record){ return $record['message'].'test1'; }));
186 186
 
187 187
         $message = 'Test message';
188 188
         $record = new SlackRecord(null, null, false, null, false, false, array(), $formatter);
189 189
         $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
190 190
 
191 191
         $this->assertArrayHasKey('text', $data);
192
-        $this->assertSame($message . 'test', $data['text']);
192
+        $this->assertSame($message.'test', $data['text']);
193 193
 
194 194
         $record->setFormatter($formatter2);
195 195
         $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
196 196
 
197 197
         $this->assertArrayHasKey('text', $data);
198
-        $this->assertSame($message . 'test1', $data['text']);
198
+        $this->assertSame($message.'test1', $data['text']);
199 199
     }
200 200
 
201 201
     public function testAddsFallbackAndTextToAttachment()
Please login to merge, or discard this patch.
core/vendor/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             $this->markTestSkipped("mlehner/gelf-php not installed");
25 25
         }
26 26
 
27
-        require_once __DIR__ . '/GelfMockMessagePublisher.php';
27
+        require_once __DIR__.'/GelfMockMessagePublisher.php';
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.