Code style fixes for plugins.

This commit is contained in:
Dmitry Khomutov 2018-02-04 14:22:07 +07:00
commit 5e9e3088cc
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
20 changed files with 167 additions and 163 deletions

View file

@ -10,7 +10,7 @@ use PHPCensor\ZeroConfigPluginInterface;
/**
* Composer Plugin - Provides access to Composer functionality.
*
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class Composer extends Plugin implements ZeroConfigPluginInterface
@ -18,7 +18,7 @@ class Composer extends Plugin implements ZeroConfigPluginInterface
protected $directory;
protected $action;
protected $preferDist;
protected $nodev;
protected $noDev;
protected $ignorePlatformReqs;
protected $preferSource;
@ -42,7 +42,7 @@ class Composer extends Plugin implements ZeroConfigPluginInterface
$this->action = 'install';
$this->preferDist = false;
$this->preferSource = false;
$this->nodev = false;
$this->noDev = false;
$this->ignorePlatformReqs = false;
if (array_key_exists('directory', $options)) {
@ -63,7 +63,7 @@ class Composer extends Plugin implements ZeroConfigPluginInterface
}
if (array_key_exists('no_dev', $options)) {
$this->nodev = (bool)$options['no_dev'];
$this->noDev = (bool)$options['no_dev'];
}
if (array_key_exists('ignore_platform_reqs', $options)) {
@ -107,7 +107,7 @@ class Composer extends Plugin implements ZeroConfigPluginInterface
$cmd .= ' --prefer-source';
}
if ($this->nodev) {
if ($this->noDev) {
$this->builder->log('Using --no-dev flag');
$cmd .= ' --no-dev';
}