Skip to content

Commit

Permalink
[console] Remove trait lof errors. (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Oct 15, 2016
1 parent ac93d71 commit f440499
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 33 deletions.
17 changes: 9 additions & 8 deletions src/Command/Generate/ConfigFormBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,28 @@
use Drupal\Console\Extension\Manager;
use Drupal\Console\Utils\ChainQueue;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Console\Command\Shared\ContainerAwareCommandTrait;
use Drupal\Core\Render\ElementInfoManager;

class ConfigFormBaseCommand extends FormCommand
{

use ContainerAwareCommandTrait;

/** @var Manager */
/**
* @var Manager
*/
protected $extensionManager;

/** @var FormGenerator */
/**
* @var FormGenerator
*/
protected $generator;

/**
* @var StringConverter
*/
protected $stringConverter;

/** @var RouteProviderInterface */
/**
* @var RouteProviderInterface
*/
protected $routeProvider;

/**
Expand All @@ -49,7 +51,6 @@ class ConfigFormBaseCommand extends FormCommand
*/
protected $chainQueue;


/**
* ConfigFormBaseCommand constructor.
* @param Manager $extensionManager
Expand Down
15 changes: 6 additions & 9 deletions src/Command/Generate/EntityConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Command\Generate\EntityCommand;
use Drupal\Console\Generator\EntityConfigGenerator;
use Drupal\Console\Command\Shared\CommandTrait;
use Drupal\Console\Extension\Manager;
use Drupal\Console\Utils\Validator;
use Drupal\Console\Utils\StringConverter;
use Drupal\Console\Style\DrupalStyle;

class EntityConfigCommand extends EntityCommand
{
use CommandTrait;

/** @var Manager */
/**
* @var Manager
*/
protected $extensionManager;

/** @var EntityConfigGenerator */
/**
* @var EntityConfigGenerator
*/
protected $generator;

/**
Expand All @@ -39,7 +37,6 @@ class EntityConfigCommand extends EntityCommand
*/
protected $stringConverter;


/**
* EntityConfigCommand constructor.
* @param Manager $extensionManager
Expand Down
26 changes: 12 additions & 14 deletions src/Command/Generate/EntityContentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Drupal\Console\Command\Generate\EntityCommand;
use Drupal\Console\Generator\EntityContentGenerator;
use Drupal\Console\Command\Shared\CommandTrait;
use Drupal\Console\Extension\Manager;
use Drupal\Console\Utils\StringConverter;
use Drupal\Console\Utils\ChainQueue;
Expand All @@ -22,30 +19,31 @@

class EntityContentCommand extends EntityCommand
{
use CommandTrait;

/**
* @var ChainQueue
*/
protected $chainQueue;

/** @var EntityContentGenerator */
/**
* @var EntityContentGenerator
*/
protected $generator;

/**
* @var StringConverter
*/
protected $stringConverter;

/** @var Manager */
/**
* @var Manager
*/
protected $extensionManager;

/**
* @var Validator
*/
protected $validator;


/**
* EntityContentCommand constructor.
* @param ChainQueue $chainQueue
Expand Down Expand Up @@ -94,10 +92,10 @@ protected function configure()
);

$this->addOption(
'revisionable',
null,
InputOption::VALUE_NONE,
$this->trans('commands.generate.entity.content.options.revisionable')
'revisionable',
null,
InputOption::VALUE_NONE,
$this->trans('commands.generate.entity.content.options.revisionable')
);
}

Expand Down Expand Up @@ -128,8 +126,8 @@ protected function interact(InputInterface $input, OutputInterface $output)

// --revisionable option
$revisionable = $io->confirm(
$this->trans('commands.generate.entity.content.questions.revisionable'),
true
$this->trans('commands.generate.entity.content.questions.revisionable'),
true
);
$input->setOption('revisionable', $revisionable);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Command/Generate/FormBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

namespace Drupal\Console\Command\Generate;

use Drupal\Console\Command\Generate\FormCommand;

class FormBaseCommand extends FormCommand
{
protected function configure()
Expand Down

0 comments on commit f440499

Please sign in to comment.