These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php declare(strict_types=1); |
||
2 | /* |
||
3 | * This file is part of the feed-io package. |
||
4 | * |
||
5 | * (c) Alexandre Debril <[email protected]> |
||
6 | * |
||
7 | * For the full copyright and license information, please view the LICENSE |
||
8 | * file that was distributed with this source code. |
||
9 | */ |
||
10 | |||
11 | namespace FeedIo\Factory\Builder; |
||
12 | |||
13 | use FeedIo\Factory\LoggerBuilderInterface; |
||
14 | use Psr\Log\LoggerInterface; |
||
15 | use \Psr\Log\NullLogger; |
||
16 | |||
17 | /** |
||
18 | * @package FeedIo |
||
19 | */ |
||
20 | class NullLoggerBuilder implements LoggerBuilderInterface |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @param array $config |
||
25 | */ |
||
26 | 5 | public function __construct(array $config = []) |
|
0 ignored issues
–
show
|
|||
27 | { |
||
28 | // Ignore config as NullLogger does not accept any config |
||
29 | // Done for FeedIo\Factory compatibility |
||
30 | 5 | } |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 2 | public function getLogger() : LoggerInterface |
|
36 | { |
||
37 | 2 | return new \Psr\Log\NullLogger; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * This method MUST return the name of the main class |
||
42 | * @return string |
||
43 | */ |
||
44 | 1 | public function getMainClassName() : string |
|
45 | { |
||
46 | 1 | return '\Psr\Log\NullLogger'; |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * This method MUST return the name of the package name |
||
51 | * @return string |
||
52 | */ |
||
53 | 1 | public function getPackageName() : string |
|
54 | { |
||
55 | 1 | return 'psr/log'; |
|
56 | } |
||
57 | } |
||
58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.