Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function extract($directory, MessageCatalogue $catalogue) |
||
31 | { |
||
32 | // load any existing translation files |
||
33 | $finder = new Finder(); |
||
34 | $files = $finder->files()->in($directory); |
||
|
|||
35 | foreach ($files as $file) { |
||
36 | if ($adapter = $this->twital->getSourceAdapter($file->getPathname())) { |
||
37 | $source = $this->twital->getTwital()->compile($adapter, file_get_contents($file->getPathname())); |
||
38 | $this->extractTemplate($source, $catalogue); |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.