bwinkers/nugget

View on GitHub
src/GSheetReader.php

Summary

Maintainability
A
0 mins
Test Coverage

Saw an @param annotation for scopes, but it was not found in the param list of function __construct($url)
Open

     * @param array $scopes
Severity: Info
Found in src/GSheetReader.php by phan

Saw an @param annotation for credentials, but it was not found in the param list of function __construct($url)
Open

     * @param array $credentials
Severity: Info
Found in src/GSheetReader.php by phan

Possibly zero references to use statement for classlike/namespace NuggetException (\Activerules\Nugget\Exception\NuggetException)
Open

use Activerules\Nugget\Exception\NuggetException;
Severity: Minor
Found in src/GSheetReader.php by phan

Argument 1 (filename) is \Activerules\Nugget\type but \file_get_contents() takes string
Open

        $file = file_get_contents($url);
Severity: Minor
Found in src/GSheetReader.php by phan

Returning type false|string but loadGsheetCSV() is declared to return object
Open

        return $file;
Severity: Minor
Found in src/GSheetReader.php by phan

Parameter $url has undeclared type \Activerules\Nugget\type
Open

    public function loadGsheetCSV($url)
Severity: Minor
Found in src/GSheetReader.php by phan

There are no issues that match your filters.

Category
Status