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.

Log::log()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 11
nc 1
nop 3
1
<?php
2
3
namespace Saltwater\RedBean\Provider;
4
5
use Saltwater\Server as S;
6
use Saltwater\App\Common\Log as AbstractLog;
7
8
class Log extends AbstractLog
9
{
10
    /**
11
     * @param mixed  $level
12
     * @param string $message
13
     * @param array  $context
14
     *
15
     * @return array|int|null|\RedBean_OODBBean
16
     */
17
    public function log($level, $message, array $context = array())
18
    {
19
        $db = S::$n->db;
20
21
        return $db->_(
22
            'log',
23
            array_merge(
24
                array(
25
                    'created' => $db->isoDateTime(),
26
                    'level'   => $level,
27
                    'message' => $message
28
                ),
29
                $context
30
            ),
31
            true
32
        );
33
    }
34
}
35