src/View/Config/ViewModel.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to undeclared property \Mvc5\View\Config\ViewModel->service (Did you mean \Mvc5\View\Config\ViewModel->service())
Open

        return $this->service->call($name, $args);
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Possibly zero references to public method \Mvc5\View\Config\ViewModel::service()
Open

    function service()
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Class uses undeclared trait \Mvc5\Template\Config\TemplateModel
Open

trait ViewModel
Severity: Critical
Found in src/View/Config/ViewModel.php by phan

Possibly zero references to public method \Mvc5\View\Config\ViewModel::withService()
Open

    function withService(Service $service) : View\ViewModel
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Reference to undeclared property \Mvc5\View\Config\ViewModel->service (Did you mean \Mvc5\View\Config\ViewModel->service() or $service)
Open

        $this->service = $service;
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Returning type \Mvc5\View\Config\ViewModel but withService() is declared to return \Mvc5\View\ViewModel
Open

        return $new;
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Class uses undeclared trait \Mvc5\Service\Plugin (Did you mean trait \Mvc5\Plugin\Config\Plugin)
Open

trait ViewModel
Severity: Critical
Found in src/View/Config/ViewModel.php by phan

Doc-block of withService contains declared return type mixed which is incompatible with the return type \Mvc5\View\ViewModel declared in the signature
Open

     * @return View\ViewModel|mixed
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Reference to undeclared property \Mvc5\View\Config\ViewModel->service (Did you mean \Mvc5\View\Config\ViewModel->service() or $service)
Open

        $new->service = $service;
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Reference to undeclared property \Mvc5\View\Config\ViewModel->config
Open

        $this->config = (is_array($template) ? $template + $vars : $vars) + array_filter([
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

Reference to undeclared property \Mvc5\View\Config\ViewModel->service (Did you mean \Mvc5\View\Config\ViewModel->service())
Open

        return $this->service;
Severity: Minor
Found in src/View/Config/ViewModel.php by phan

There are no issues that match your filters.

Category
Status