WissamSawah/Weather

View on GitHub

Showing 84 of 84 total issues

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

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

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

Line indented incorrectly; expected 4 spaces, found 8
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 8 spaces, found 12
Open

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

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

    $curly = array();

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (is_array($d)) {

Line indented incorrectly; expected 16 spaces, found 12
Open

            }

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

        $curly[$id] = curl_init();

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

        }

Line indented incorrectly; expected 8 spaces, found 12
Open

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

Line indented incorrectly; expected 4 spaces, found 5
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    foreach ($data as $id => $d) {

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

    }

The variable $BaseUrl is not named in camelCase.
Open

    public function multiCurlJson($details)
    {
        $accessKey  = $this->darkKey;
        $multiRequests = [];
        #future weather
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $BaseUrl is not named in camelCase.
Open

    public function indexActionPost()
    {
        $title = "Check IP (JSON)";
        $page = $this->di->get("page");
        $request = $this->di->get("request");
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $BaseUrl is not named in camelCase.
Open

    public function multiCurlJson($details)
    {
        $accessKey  = $this->darkKey;
        $multiRequests = [];
        #future weather
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $BaseUrl is not named in camelCase.
Open

    public function indexAction() : object
    {
        $title = "Check IP (JSON)";
        $page = $this->di->get("page");
        $request = $this->di->get("request");
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $BaseUrl is not named in camelCase.
Open

    public function weatherCheckActionGet()
    {
        $title = "Check IP (JSON)";
        $page = $this->di->get("page");
        $request = $this->di->get("request");
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $BaseUrl is not named in camelCase.
Open

    public function indexActionPost()
    {
        $title = "Check IP (JSON)";
        $page = $this->di->get("page");
        $request = $this->di->get("request");
Severity: Minor
Found in src/Weather/JsonWeather.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language