1 | <?php |
||
26 | class FirebaseLogs |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @var Logger |
||
32 | */ |
||
33 | private $logger; |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | private $folderToStoreLog; |
||
40 | |||
41 | /** |
||
42 | * Format of datetime of logs |
||
43 | * |
||
44 | * @var string $dateFormatLog |
||
45 | */ |
||
46 | private $dateFormatLog = "Y n j, g:i a"; |
||
47 | |||
48 | /** |
||
49 | * DateTime of log filename |
||
50 | * |
||
51 | * @var string $dateFormatLogFilename |
||
52 | */ |
||
53 | private static $dateFormatLogFilename; |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | * @param string $folderToStoreLog |
||
58 | */ |
||
59 | public function __construct(string $folderToStoreLog) |
||
65 | |||
66 | /** |
||
67 | * Write log of current event |
||
68 | * |
||
69 | * @param Logger $logger |
||
|
|||
70 | * @param array $eventData |
||
71 | * @param mixed $event |
||
72 | * @param string $path |
||
73 | */ |
||
74 | public function writeEventLogs($eventData, $event, $path) |
||
87 | |||
88 | /** |
||
89 | * |
||
90 | * Create logger instance for save stream log |
||
91 | * |
||
92 | * @param string $folderToStoreLog |
||
93 | * @return Logger $logger |
||
94 | */ |
||
95 | private function createLogger($folderToStoreLog) |
||
116 | } |
||
117 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.