services/scanners/ScannerPhpArray.php
private function _getTranslators($file)
    {
        $subject = file_get_contents($file);
        preg_match_all($this->module->patternArrayTranslator, $subject, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
        $translators = [];
        foreach ($matches as $data) {
            if (isset($data['translator'][0])) {
                $translators[$data['translator'][0]] = true;
            }
        }

        return array_keys($translators);
    }
private function _getTranslators($file)
    {
        $subject = file_get_contents($file);
        preg_match_all($this->module->patternArrayTranslator, $subject, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
        $translators = [];
        foreach ($matches as $data) {
            if (isset($data['translator'][0])) {
                $translators[$data['translator'][0]] = true;
            }
        }

        return array_keys($translators);
    }
private function _getTranslators ( $ file ) { $ subject = file_get_contents ( $ file ) ; preg_match_all ( $ this -> module -> patternArrayTranslator , $ subject , $ matches , PREG_SET_ORDER | PREG_OFFSET_CAPTURE ) ; $ translators = [ ] ; foreach ( $ matches as $ data ) { if ( isset ( $ data [ 'translator' ] [ 0 ] ) ) { $ translators [ $ data [ 'translator' ] [ 0 ] ] = true ; } } return array_keys ( $ translators ) ; }
Returns the names of the arrays storing the language elements to be translated.

@param string $file Path to the file to scan.

@return array List of arrays storing the language elements to be translated.
Returns the names of the arrays storing the language elements to be translated .