for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Mascame\Artificer\Options;
use Config;
class PluginOption
{
/**
* @var string
*/
public $namespace;
public $configFile;
* @param $namespace
public function __construct($namespace, $configFile)
$exploded_namespace = explode('/', $namespace);
$this->namespace = end($exploded_namespace) . '::';
$this->configFile = $configFile;
}
* @param string $plugin
$plugin
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.
* @param string $key
public function get($key = null, $configFile = null)
return Config::get($this->getPrefix($configFile) . $key);
public function has($key = '', $configFile = null)
return Config::has($this->getPrefix($configFile) . $key);
public function set($key, $value, $configFile = null)
Config::set($this->getPrefix($configFile) . $key, $value);
public function all($key = null, $configFile = null)
* @param null $configFile
* @return null|string
protected function getFile($configFile = null)
return ($configFile) ? $configFile : $this->configFile;
* @param $file
public function setConfigFile($file)
$this->configFile = $file;
public function getPrefix($configFile = null)
return $this->namespace . $this->getFile($configFile) . '.';
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.