1 | <?php |
||
30 | class Frontend implements LoggerAwareInterface |
||
31 | { |
||
32 | use LoggerAwareTrait; |
||
33 | |||
34 | /** |
||
35 | * @var Builder |
||
36 | */ |
||
37 | private $builder; |
||
38 | |||
39 | /** |
||
40 | * Frontend constructor. |
||
41 | */ |
||
42 | public function __construct() |
||
46 | |||
47 | /** |
||
48 | * @param Readable $file |
||
49 | * @return iterable |
||
50 | * @throws SyntaxException |
||
51 | * @throws \Railt\Io\Exception\ExternalFileException |
||
52 | */ |
||
53 | public function load(Readable $file) |
||
57 | |||
58 | /** |
||
59 | * @param Readable $readable |
||
60 | * @return iterable |
||
61 | * @throws SyntaxException |
||
62 | * @throws \Railt\Io\Exception\ExternalFileException |
||
63 | */ |
||
64 | public function buildFile(Readable $readable) |
||
78 | |||
79 | /** |
||
80 | * @param ContextInterface $ctx |
||
81 | * @param mixed $result |
||
82 | * @return bool |
||
83 | */ |
||
84 | private function filter(ContextInterface $ctx, $result): bool |
||
88 | |||
89 | /** |
||
90 | * @param LoggerInterface $logger |
||
91 | * @return Frontend |
||
92 | */ |
||
93 | public function setLogger(LoggerInterface $logger): self |
||
99 | } |
||
100 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.