| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | abstract class Logger implements LoggerInterface |
||
| 21 | { |
||
| 22 | /** @var int */ |
||
| 23 | protected $mode; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $mode |
||
| 27 | */ |
||
| 28 | public function __construct($mode) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritDoc |
||
| 35 | */ |
||
| 36 | public function info($message) |
||
| 37 | { |
||
| 38 | $this->log(LogLevel::$info, $message); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | public function error($message) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritDoc |
||
| 51 | */ |
||
| 52 | public function command($message) |
||
| 55 | } |
||
| 56 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.