Passed
Push — main ( 52d8ff...86690c )
by Colin
11:18 queued 08:43
created
src/TestLogger.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
             $record = ['message' => $record];
101 101
         }
102 102
 
103
-        return $this->hasRecordThatPasses(static function (array $rec) use ($record) {
103
+        return $this->hasRecordThatPasses(static function(array $rec) use ($record) {
104 104
             if ($rec['message'] !== $record['message']) {
105 105
                 return false;
106 106
             }
107 107
 
108
-            return ! isset($record['context']) || $rec['context'] === $record['context'];
108
+            return !isset($record['context']) || $rec['context'] === $record['context'];
109 109
         }, $level);
110 110
     }
111 111
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function hasRecordThatContains(string $message, string $level): bool
116 116
     {
117
-        return $this->hasRecordThatPasses(static function (array $rec) use ($message) {
117
+        return $this->hasRecordThatPasses(static function(array $rec) use ($message) {
118 118
             return \strpos($rec['message'], $message) !== false;
119 119
         }, $level);
120 120
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function hasRecordThatMatches(string $regex, string $level): bool
126 126
     {
127
-        return $this->hasRecordThatPasses(static function ($rec) use ($regex) {
127
+        return $this->hasRecordThatPasses(static function($rec) use ($regex) {
128 128
             return \preg_match($regex, $rec['message']) > 0;
129 129
         }, $level);
130 130
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function hasRecordThatPasses(callable $predicate, string $level): bool
137 137
     {
138
-        if (! isset($this->recordsByLevel[$level])) {
138
+        if (!isset($this->recordsByLevel[$level])) {
139 139
             return false;
140 140
         }
141 141
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function __call(string $method, array $args): bool
155 155
     {
156 156
         if (\preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) {
157
-            $genericMethod = $matches[1] . ($matches[3] !== 'Records' ? 'Record' : '') . $matches[3];
157
+            $genericMethod = $matches[1].($matches[3] !== 'Records' ? 'Record' : '').$matches[3];
158 158
             $callable      = [$this, $genericMethod];
159 159
             $level         = \strtolower($matches[2]);
160 160
             if (\is_callable($callable)) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             }
165 165
         }
166 166
 
167
-        throw new \BadMethodCallException('Call to undefined method ' . static::class . '::' . $method . '()');
167
+        throw new \BadMethodCallException('Call to undefined method '.static::class.'::'.$method.'()');
168 168
     }
169 169
 
170 170
     public function reset(): void
Please login to merge, or discard this patch.