This file is indexed.

/usr/share/php/TheSeer/Autoload/CachingParser.php is in phpab 1.24.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace TheSeer\Autoload {

    class CachingParser implements ParserInterface {

        /**
         * @var ParserInterface
         */
        private $parser;

        /**
         * @var Cache
         */
        private $cache;

        public function __construct(Cache $cache, ParserInterface $parser) {
            $this->cache = $cache;
            $this->parser = $parser;
        }

        /**
         * Parse a given file for defintions of classes, traits and interfaces
         *
         * @param SourceFile $source file to process
         *
         * @return ParseResult
         */
        public function parse(SourceFile $source) {
            if ($this->cache->hasResult($source)) {
                return $this->cache->getResult($source);
            }
            $result = $this->parser->parse($source);
            $this->cache->addResult($source, $result);
            return $result;
        }

    }

}