|
@@ -14,7 +14,7 @@ discard block |
|
|
block discarded – undo |
|
14
|
14
|
|
|
15
|
15
|
final class PhpFileParser implements ParserInterface |
|
16
|
16
|
{ |
|
17
|
|
- private const ONLY_ONE_ENTRY=1; |
|
|
17
|
+ private const ONLY_ONE_ENTRY = 1; |
|
18
|
18
|
|
|
19
|
19
|
/** @var \PhpParser\Parser */ |
|
20
|
20
|
private $parser; |
|
@@ -75,7 +75,7 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
private function fetchAst(PathInterface $pathFile): array |
|
76
|
76
|
{ |
|
77
|
77
|
$code = $pathFile->get(); |
|
78
|
|
- $keyEntryForCache = sha1($code).'.'.base64_encode($pathFile->get()); |
|
|
78
|
+ $keyEntryForCache = sha1($code) . '.' . base64_encode($pathFile->get()); |
|
79
|
79
|
|
|
80
|
80
|
if (!$this->cache->has($keyEntryForCache)) { |
|
81
|
81
|
$code = \file_get_contents($pathFile->get()); |
Please login to merge, or discard this patch.