src/CacheBuilder.php
protected function addNewClasses(&$pathnameArray, &$nonClassFiles, $excludeVendor = true, PhpClass $phpClassClone) {
        $files = $this->findFiles($excludeVendor);

        foreach ($files as $file) {
            /* @var $file \Symfony\Component\Finder\SplFileInfo */
            $pathname = $file->getPathname();

            if ((!isset($pathnameArray[$pathname]) && !isset($nonClassFiles[$pathname])) || (isset($nonClassFiles[$pathname]) && md5_file($file->getPathname()) !== $nonClassFiles[$pathname])) {
                $phpClass = clone $phpClassClone;
                $fileInfo = $this->parseSplFileInfo($file, $phpClass);
                if (is_object($fileInfo)) {
                    $pathnameArray[$pathname] = $fileInfo;
                } else {
                    $nonClassFiles[$fileInfo['pathname']] = $fileInfo['md5'];
                }
            }
        }
    }
protected function addNewClasses(&$pathnameArray, &$nonClassFiles, $excludeVendor = true, PhpClass $phpClassClone) {
        $files = $this->findFiles($excludeVendor);

        foreach ($files as $file) {
            /* @var $file \Symfony\Component\Finder\SplFileInfo */
            $pathname = $file->getPathname();

            if ((!isset($pathnameArray[$pathname]) && !isset($nonClassFiles[$pathname])) || (isset($nonClassFiles[$pathname]) && md5_file($file->getPathname()) !== $nonClassFiles[$pathname])) {
                $phpClass = clone $phpClassClone;
                $fileInfo = $this->parseSplFileInfo($file, $phpClass);
                if (is_object($fileInfo)) {
                    $pathnameArray[$pathname] = $fileInfo;
                } else {
                    $nonClassFiles[$fileInfo['pathname']] = $fileInfo['md5'];
                }
            }
        }
    }
protected function addNewClasses ( & $ pathnameArray , & $ nonClassFiles , $ excludeVendor = true , PhpClass $ phpClassClone ) { $ files = $ this -> findFiles ( $ excludeVendor ) ; foreach ( $ files as $ file ) { /* @var $file \Symfony\Component\Finder\SplFileInfo */ $ pathname = $ file -> getPathname ( ) ; if ( ( ! isset ( $ pathnameArray [ $ pathname ] ) && ! isset ( $ nonClassFiles [ $ pathname ] ) ) || ( isset ( $ nonClassFiles [ $ pathname ] ) && md5_file ( $ file -> getPathname ( ) ) !== $ nonClassFiles [ $ pathname ] ) ) { $ phpClass = clone $ phpClassClone ; $ fileInfo = $ this -> parseSplFileInfo ( $ file , $ phpClass ) ; if ( is_object ( $ fileInfo ) ) { $ pathnameArray [ $ pathname ] = $ fileInfo ; } else { $ nonClassFiles [ $ fileInfo [ 'pathname' ] ] = $ fileInfo [ 'md5' ] ; } } } }
Finds classes which are not added to the cache

@param $pathnameArray
@param bool $excludeVendor
@param PhpClass $phpClassClone
Finds classes which are not added to the cache