private function createJavaScriptPaths(array $javascripts)
    {
        $files = array();

        foreach ($javascripts as $file) {
            if (!$this->isExternalJavaScriptFile($file)) {

                if (false !== strpos($file, '?')) {
                    $file = strstr($file, '?', true);
                }

                $file = $this->getBasePath() . $file;
            }

            $files[] = $file;
        }

        return $files;
    }
private function createJavaScriptPaths(array $javascripts)
    {
        $files = array();

        foreach ($javascripts as $file) {
            if (!$this->isExternalJavaScriptFile($file)) {

                if (false !== strpos($file, '?')) {
                    $file = strstr($file, '?', true);
                }

                $file = $this->getBasePath() . $file;
            }

            $files[] = $file;
        }

        return $files;
    }
private function createJavaScriptPaths ( array $ javascripts ) { $ files = array ( ) ; foreach ( $ javascripts as $ file ) { if ( ! $ this -> isExternalJavaScriptFile ( $ file ) ) { if ( false !== strpos ( $ file , '?' ) ) { $ file = strstr ( $ file , '?' , true ) ; } $ file = $ this -> getBasePath ( ) . $ file ; } $ files [ ] = $ file ; } return $ files ; }
Check if a JavaScript file is a local or externalJavaScript file or. If
it is a local file, prepend our basepath to the link so we can properly
fetch the data to insert.

@param  array $javascripts
@return array
Check if a JavaScript file is a local or externalJavaScript file or . If it is a local file prepend our basepath to the link so we can properly fetch the data to insert .