for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
/**
* Created by PhpStorm.
* User: Marky
* Date: 23/01/2018
* Time: 15:14
*/
namespace App\Plugins\Articles;
use App\Classes\Interfaces\Installable;
use App\Classes\Repositories\PageRepository;
use App\Model\Page;
use App\Plugins\PluginHandler;
* Class ArticleController
*
* @package App\Plugins\Articles
class ArticlesController extends PluginHandler implements Installable
{
* Return the icon associated with this plugin.
public function icon()
return 'fa-book';
}
* Return the version for this plugin.
public function version()
return '1.0';
* The steps required for this plugin product to fully
* integrate into the webservice.
* @return boolean
public function install()
/** @var Page $page */
$page = app(Page::class);
$page->seo_title = 'News';
$page->slug = 'news';
$page->enabled = true;
$page->sitemap = false;
$page->plugin = $this->pluginName();
// status of the operation
return $page->save();
* remove itself from the webservice.
boolean|null
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
* @throws \Exception
public function uninstall()
/** @var PageRepository $repository */
$repository = app(PageRepository::class);
$page = $repository->wherePlugin($this->pluginName());
// status of the operation.
return $page->forceDelete();
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.