GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

QueuedJobsTest_Handler::getMessages()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Symbiote\QueuedJobs\Tests\QueuedJobsTest;
4
5
use Monolog\Handler\AbstractProcessingHandler;
6
use SilverStripe\Dev\TestOnly;
7
8
/**
9
 * Logger for recording messages for later retrieval
10
 */
11
class QueuedJobsTest_Handler extends AbstractProcessingHandler implements TestOnly
12
{
13
    /**
14
     * Messages
15
     *
16
     * @var array
17
     */
18
    protected $messages = array();
19
20
    /**
21
     * Get all messages
22
     *
23
     * @return array
24
     */
25
    public function getMessages()
26
    {
27
        return $this->messages;
28
    }
29
30
    public function clear()
31
    {
32
        $this->messages = array();
33
    }
34
35
    protected function write(array $record)
36
    {
37
        $this->messages[] = $record['message'];
38
    }
39
}
40