| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | trait Renderable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $viewPath; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string|View $view |
||
| 16 | * |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | 4 | public function setView($view) |
|
| 20 | { |
||
| 21 | 4 | $this->viewPath = $view; |
|
| 22 | |||
| 23 | 4 | return $this; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return View|string |
||
| 28 | */ |
||
| 29 | 12 | public function getView() |
|
| 30 | { |
||
| 31 | 12 | if (empty($this->viewPath) && property_exists($this, 'view')) { |
|
| 32 | 7 | return $this->view; |
|
| 33 | } |
||
| 34 | |||
| 35 | 7 | return $this->viewPath; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function __toString() |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory |
||
| 48 | */ |
||
| 49 | 5 | public function render() |
|
| 54 | 5 | ); |
|
| 55 | } |
||
| 56 | } |
||
| 57 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.