e107inc/e107

View on GitHub
e107_plugins/import/providers/html_import_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $filename is undeclared
Open

                if(file_exists($relPath."/".$filename))

Variable $array is undeclared
Open

                foreach($array['channel']['item'] as $val)

Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
Open

            <td>".$tp->text_truncate($data['body'],150)."</td>\n

Saw possibly unextractable annotation for a fragment of comment '* @param returns text-body with remote links replaced with local ones for the images downloaded.': after returns, did not see an element name (will guess based on comment order)
Open

     * @param returns text-body with remote links replaced with local ones for the images downloaded. 

Argument 2 (mode) is '0755' but \mkdir() takes int
Open

                mkdir(e_MEDIA.$relPath,'0755');    

Variable $array is undeclared
Open

                if ($array === FALSE || $file === FALSE) return FALSE;

Argument 3 (subject) is \Returns but \str_replace() takes array|string
Open

        return str_replace($search,$replace,$body);

Reference to undeclared property \tidy->value
Open

            return $parsed->value;

Variable $var was undeclared, but array fields are being added to it.
Open

        $var[0]['caption']    = "Website Home-page URL";

Argument 2 (subject) is \Returns but \preg_match_all() takes string
Open

        preg_match_all("/(((http:\/\/www)|(http:\/\/)|(www))[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)\.(jpg|jpeg|gif|png|svg)/im",$body,$matches);

Argument 1 (str) is string[] but \trim() takes string
Open

            $html = trim($html,"\n");

Parameter $body has undeclared type \Returns
Open

    function saveImages($body,$cat='news')

There are no issues that match your filters.

Category
Status