src/CacheBuilder.php
protected function modifyModifiedClasses(&$pathnameArray) {
        foreach ($pathnameArray as $pathname => $phpClass) {
            if (file_exists($phpClass->getFile()->getPathname()) && $phpClass->getLastModified()->getTimestamp() != $phpClass->getFile()->getMTime()) {
                $file = $phpClass->getFile();

                $phpClass->clear();

                $result = $this->phpClassParser->parse($phpClass, $file);
                if ($result === false) {
                    unset($pathnameArray[$pathname]);
                }
            }
        }
    }
protected function modifyModifiedClasses(&$pathnameArray) {
        foreach ($pathnameArray as $pathname => $phpClass) {
            if (file_exists($phpClass->getFile()->getPathname()) && $phpClass->getLastModified()->getTimestamp() != $phpClass->getFile()->getMTime()) {
                $file = $phpClass->getFile();

                $phpClass->clear();

                $result = $this->phpClassParser->parse($phpClass, $file);
                if ($result === false) {
                    unset($pathnameArray[$pathname]);
                }
            }
        }
    }
protected function modifyModifiedClasses ( & $ pathnameArray ) { foreach ( $ pathnameArray as $ pathname => $ phpClass ) { if ( file_exists ( $ phpClass -> getFile ( ) -> getPathname ( ) ) && $ phpClass -> getLastModified ( ) -> getTimestamp ( ) != $ phpClass -> getFile ( ) -> getMTime ( ) ) { $ file = $ phpClass -> getFile ( ) ; $ phpClass -> clear ( ) ; $ result = $ this -> phpClassParser -> parse ( $ phpClass , $ file ) ; if ( $ result === false ) { unset ( $ pathnameArray [ $ pathname ] ) ; } } } }
Checks if a file is modified and if so, reparse the file

@param phpClass[] $pathnameArray
@return \Synga\InheritanceFinder\PhpClass[]
Checks if a file is modified and if so reparse the file