1 | <?php |
||
2 | namespace SimpleLogger\Utils; |
||
3 | |||
4 | use SimpleLogger\Configuration; |
||
5 | use SimpleLogger\SimpleLogger; |
||
6 | use Psr\Log\LogLevel; |
||
7 | |||
8 | class Logger extends SimpleLogger |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Constructor. |
||
13 | * |
||
14 | * @param string $logfile |
||
15 | * @return object |
||
16 | */ |
||
17 | public function __construct($logfile) |
||
18 | { |
||
19 | $configuration = new Configuration(); |
||
20 | $configuration |
||
21 | ->setLogFile($logfile) |
||
22 | ->setVerbosity(LogLevel::NOTICE) |
||
23 | ->setConsoleVerbosity(LogLevel::INFO) |
||
24 | ->setLoggerConsoleFormat("%t %l %c:%f %m") |
||
25 | ->setLoggerFileFormat("%t %l %c:%f %p %m"); |
||
26 | return parent::__construct($configuration); |
||
0 ignored issues
–
show
|
|||
27 | } |
||
28 | } |
||
29 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.