private function scan(Translations $translations)
    {
        foreach ($this->iterator as $each) {
            foreach ($each as $file) {
                if ($file === null || !$file->isFile()) {
                    continue;
                }

                $target = $file->getPathname();

                if (($fn = $this->getFunctionName('addFrom', $target, 'File'))) {
                    $translations->$fn($target);
                }
            }
        }
    }
private function scan(Translations $translations)
    {
        foreach ($this->iterator as $each) {
            foreach ($each as $file) {
                if ($file === null || !$file->isFile()) {
                    continue;
                }

                $target = $file->getPathname();

                if (($fn = $this->getFunctionName('addFrom', $target, 'File'))) {
                    $translations->$fn($target);
                }
            }
        }
    }
private function scan ( Translations $ translations ) { foreach ( $ this -> iterator as $ each ) { foreach ( $ each as $ file ) { if ( $ file === null || ! $ file -> isFile ( ) ) { continue ; } $ target = $ file -> getPathname ( ) ; if ( ( $ fn = $ this -> getFunctionName ( 'addFrom' , $ target , 'File' ) ) ) { $ translations -> $ fn ( $ target ) ; } } } }
Execute the scan.

@param Translations $translations
Execute the scan .