WissamSawah/Weather

View on GitHub

Showing 84 of 84 total issues

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        curl_setopt($curly[$id], CURLOPT_URL, $url);

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        curl_multi_add_handle($mh, $curly[$id]);

Line indented incorrectly; expected 4 spaces, found 5
Open

     public function validateIp($ipAddress)
Severity: Minor
Found in src/Weather/WeatherIp.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 9
Open

         if (filter_var($ipAddress, FILTER_VALIDATE_IP)) {
Severity: Minor
Found in src/Weather/WeatherIp.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Closing brace indented incorrectly; expected 4 spaces, found 8
Open

        }

Line indented incorrectly; expected 0 spaces, found 1
Open

 class WeatherIp implements ContainerInjectableInterface
Severity: Minor
Found in src/Weather/WeatherIp.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 1
Open

 }
Severity: Minor
Found in src/Weather/WeatherIp.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $mh = curl_multi_init();

Line indented incorrectly; expected 16 spaces, found 12
Open

            if (!empty($d['post'])) {

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!empty($options)) {

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        curl_setopt($curly[$id], CURLOPT_HEADER, 0);

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                curl_setopt($curly[$id], CURLOPT_POST, 1);

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                curl_setopt($curly[$id], CURLOPT_POSTFIELDS, $d['post']);

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

                } else if (defined("ANAX_PRODUCTION")) {
Severity: Minor
Found in config/di/router.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            curl_setopt_array($curly[$id], $options);

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $url = (is_array($d) && !empty($d['url'])) ? $d['url'] : $d;

Line indented incorrectly; expected 0 spaces, found 4
Open

    }

Line indented incorrectly; expected 8 spaces, found 12
Open

            foreach ($weather as $key => $value) {
Severity: Minor
Found in src/Weather/JsonWeather.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $result = array();
Severity
Category
Status
Source
Language