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 ( acecb4...b8143a )
by Hong
02:05
created

EchoHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 4 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\Handler;
16
17
use Phossa2\Logger\Entry\LogEntryInterface;
18
19
/**
20
 * EchoHandler
21
 *
22
 * Directly echo the log message
23
 *
24
 * @package Phossa2\Logger
25
 * @author  Hong Zhang <[email protected]>
26
 * @see     HandlerAbstract
27
 * @version 2.0.0
28
 * @since   2.0.0 added
29
 */
30
class EchoHandler extends HandlerAbstract
31
{
32
    /**
33
     * {@inheritDoc}
34
     */
35
    protected function write(LogEntryInterface $logEntry)
36
    {
37
        echo $logEntry->getFormatted() . $this->getEol();
38
    }
39
}
40