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.
Completed
Push — master ( 5802ed...900bc8 )
by Hong
02:38
created

FormatterAbstract::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Logger
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Logger\Formatter;
16
17
use Phossa2\Shared\Base\ObjectAbstract;
18
use Phossa2\Logger\Entry\LogEntryInterface;
19
20
/**
21
 * FormatterAbstract
22
 *
23
 * @package Phossa2\Logger
24
 * @author  Hong Zhang <[email protected]>
25
 * @see     ObjectAbstract
26
 * @see     FormatterInterface
27
 * @version 2.0.0
28
 * @since   2.0.0 added
29
 */
30
abstract class FormatterAbstract extends ObjectAbstract implements FormatterInterface
31
{
32
    /**
33
     * {@inheritDoc}
34
     */
35
    public function __invoke(LogEntryInterface $logEntry)
36
    {
37
        $logEntry->setFormatted($this->format($logEntry));
38
    }
39
40
    /**
41
     * Returns the formatted message
42
     *
43
     * @param  LogEntryInterface $logEntry
44
     * @return string
45
     * @access protected
46
     */
47
    abstract protected function format(
48
        LogEntryInterface $logEntry
49
    )/*# : string */;
50
}
51