Contao3-Ninja / dlstats

Contao Module dlstats - Counts the number of file downloads
http://contao.ninja/download-statistik-dlstats.html
GNU Lesser General Public License v3.0
4 stars 0 forks source link

[Insight] PHP code should follow PSR-1 basic coding standard - in classes/DlstatsHelper.php, line 289 #80

Closed BugBuster1701 closed 9 years ago

BugBuster1701 commented 9 years ago

in classes/DlstatsHelper.php, line 289

Method names should be declared in camelCase. You should rename this method to comply with PSR-1.

     * @return mixed        false: no valid IPv4 and no valid IPv6
     *                      "IPv4" : IPv4 Address
     *                      "IPv6" : IPv6 Address
     * @access protected
     */
    protected function CheckIPVersion($UserIP = false)
    {
        // Test for IPv4
        if (ip2long($UserIP) !== false)
        {
            $this->IP_Version = "IPv4";

Posted from SensioLabsInsight