PHPMD cleanup

This commit is contained in:
Dan Cryer 2014-05-02 14:48:40 +01:00
commit cb6262d833
21 changed files with 116 additions and 31 deletions

View file

@ -20,9 +20,18 @@ use PHPCI\Model\Build;
*/
class Shell implements \PHPCI\Plugin
{
protected $args;
/**
* @var \PHPCI\Builder
*/
protected $phpci;
/**
* @var \PHPCI\Model\Build
*/
protected $build;
protected $args;
/**
* @var string[] $commands The commands to be executed
*/
@ -30,7 +39,8 @@ class Shell implements \PHPCI\Plugin
public function __construct(Builder $phpci, Build $build, array $options = array())
{
$this->phpci = $phpci;
$this->phpci = $phpci;
$this->build = $build;
if (isset($options['command'])) {
// Keeping this for backwards compatibility, new projects should use interpolation vars.