src/Commands/RenameCommand.php
private function getFilesContainingOldKey()
    {
        $affectedFiles = [];

        foreach ($this->manager->getAllViewFilesWithTranslations() as $file => $keys) {
            foreach ($keys as $key) {
                if ($key == $this->argument('oldKey')) {
                    $affectedFiles[$file][] = $key;
                }
            }
        }

        return $affectedFiles;
    }
private function getFilesContainingOldKey()
    {
        $affectedFiles = [];

        foreach ($this->manager->getAllViewFilesWithTranslations() as $file => $keys) {
            foreach ($keys as $key) {
                if ($key == $this->argument('oldKey')) {
                    $affectedFiles[$file][] = $key;
                }
            }
        }

        return $affectedFiles;
    }
private function getFilesContainingOldKey ( ) { $ affectedFiles = [ ] ; foreach ( $ this -> manager -> getAllViewFilesWithTranslations ( ) as $ file => $ keys ) { foreach ( $ keys as $ key ) { if ( $ key == $ this -> argument ( 'oldKey' ) ) { $ affectedFiles [ $ file ] [ ] = $ key ; } } } return $ affectedFiles ; }
Get an array of application files containing the old key.

@return array
Get an array of application files containing the old key .