for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Mascame\Artificer\Plugin;
use App;
use Mascame\Artificer\Options\PluginOption;
abstract class AbstractPlugin implements PluginInterface
{
/**
* Namespace will automatically be set if empty
*
* @var string
*/
public $namespace;
public $version = '1.0';
public $name = 'Unknown plugin';
public $description = 'No description provided';
public $author = 'Anonymous';
public $configFile = null;
public $thumbnail = null;
public $slug;
* @var array
public $routes = array();
* @var PluginOption
protected $option;
abstract public function boot();
* @return \Mascame\Artificer\Extension\PluginManager
public function pluginManager() {
return App::make('ArtificerPluginManager');
}
* @param array $routes
$routes
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function isInstalled()
return $this->pluginManager()->isInstalled($this->namespace);
public function addRoutes(array $routes)
$this->pluginManager()->addRoutes($this->namespace, $routes);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.