houseofdross/nbn-availability

View on GitHub

Showing 32 of 33 total issues

Call to method request from undeclared class \GuzzleHttp\Client
Open

        $response = $this->client->request('GET', $requestUri, [
Severity: Critical
Found in src/AvailabilityChecker.php by phan

Invalid offset "techTypeLabel" of array type array{}
Open

            $availabilityStatus['techTypeLabel'] ?? $availabilityStatus['techTypeMapLabel'] ?? '',
Severity: Minor
Found in src/AvailabilityChecker.php by phan

Call to undeclared method \Hod\NbnAvailability\Command\ConsoleCommand::addArgument
Open

        $this->addArgument('longitude', InputArgument::REQUIRED, 'The longitude of the location to check');
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Parameter $input has undeclared type \Symfony\Component\Console\Input\InputInterface
Open

    public function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in src/Command/ConsoleCommand.php by phan

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln('Technology Type: '.$availability->technologyType());
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Parameter $output has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open

    public function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in src/Command/ConsoleCommand.php by phan

Invalid offset "rfsMessage" of array type array{}
Open

            $availabilityStatus['rfsMessage'] ?? ''
Severity: Minor
Found in src/AvailabilityChecker.php by phan

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln('NBN Availability: '.$availability->serviceStatus());
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Call to method add from undeclared class \Symfony\Component\Console\Application
Open

$application->add(new ConsoleCommand(new AvailabilityChecker()));
Severity: Critical
Found in bin/app.php by phan

Call to undeclared function \GuzzleHttp\json_decode() (Did you mean \json_decode() or \json_encode())
Open

        $availability = \GuzzleHttp\json_decode($response->getBody(), true);
Severity: Critical
Found in src/AvailabilityChecker.php by phan

Invalid offset "techTypeMapLabel" of array type array{}
Open

            $availabilityStatus['techTypeLabel'] ?? $availabilityStatus['techTypeMapLabel'] ?? '',
Severity: Minor
Found in src/AvailabilityChecker.php by phan

Call to undeclared method \Hod\NbnAvailability\Command\ConsoleCommand::setDescription
Open

        $this->setDescription('Retrieve the NBN availability for a location');
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Possibly zero references to protected method \Hod\NbnAvailability\Command\ConsoleCommand::configure()
Open

    protected function configure()
Severity: Minor
Found in src/Command/ConsoleCommand.php by phan

Reference to constant REQUIRED from undeclared class \Symfony\Component\Console\Input\InputArgument
Open

        $this->addArgument('latitude', InputArgument::REQUIRED, 'The latitude of the location to check');
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Call to method writeln from undeclared class \Symfony\Component\Console\Output\OutputInterface
Open

        $output->writeln('Date Available: '.$availability->availableDate());
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Invalid offset "serviceStatus" of array type array{}
Open

            $availabilityStatus['serviceStatus'] ?? '',
Severity: Minor
Found in src/AvailabilityChecker.php by phan

Call to undeclared method \Hod\NbnAvailability\Command\ConsoleCommand::setHelp
Open

        $this->setHelp('Look up and return the NBN availability for a given location');
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Call to method __construct from undeclared class \Symfony\Component\Console\Application
Open

$application = new Application();
Severity: Critical
Found in bin/app.php by phan

Class extends undeclared class \Symfony\Component\Console\Command\Command
Open

class ConsoleCommand extends Command
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan

Call to undeclared method \Hod\NbnAvailability\Command\ConsoleCommand::addArgument
Open

        $this->addArgument('latitude', InputArgument::REQUIRED, 'The latitude of the location to check');
Severity: Critical
Found in src/Command/ConsoleCommand.php by phan
Severity
Category
Status
Source
Language