TIPOFF / seo

Laravel Package for tracking SEO keywords
MIT License
1 stars 0 forks source link

Domain, explode url and save favicon #14 [TGER-129] #65

Closed devjk1 closed 3 years ago

devjk1 commented 3 years ago

14

errors:

pdbreen commented 3 years ago

For loading helper functions, combine into single PHP file - say src/Helpers/Helpers.php then update the autoload entry in composer.json with a files entry. You can see an example of this in the tipoff/support:composer.json file.

        "files": [
            "src/Helpers/Helpers.php"
        ]
devjk1 commented 3 years ago

Tests working now, but I'm not out of the woods yet. Psalm is complaining about vars $name and $tld not being used / referenced .. in ParseUrl.php (I think) I initialize all vars, change them in the if block, then use all vars in return [ ].

Thanks for the help earlier Patrick

pdbreen commented 3 years ago

Looks like you should eliminate the initialization of $name and $tld. Every code path results in an assignment, making the initialization value the unused value psalm is complaining about.