We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function install() |
||
| 47 | { |
||
| 48 | /** @var Page $page */ |
||
| 49 | $page = app(Page::class); |
||
| 50 | |||
| 51 | $page->seo_title = 'News'; |
||
| 52 | $page->slug = 'news'; |
||
| 53 | $page->enabled = true; |
||
| 54 | $page->sitemap = false; |
||
| 55 | $page->plugin = $this->pluginName(); |
||
| 56 | |||
| 57 | // status of the operation |
||
| 58 | return $page->save(); |
||
| 59 | } |
||
| 60 | |||
| 79 | } |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.