Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
enzolutions committed Jul 14, 2017
2 parents f134dfb + 65983cb commit 898f1a2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"composer/installers": "~1.0",
"doctrine/annotations": "1.2.*",
"doctrine/collections": "1.3.*",
"drupal/console-core": "1.0.0-rc23",
"drupal/console-core": "1.0.0-rc24",
"drupal/console-dotenv": "~0",
"drupal/console-extend-plugin": "~0",
"gabordemooij/redbean": "~4.3",
Expand Down
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Application extends BaseApplication
/**
* @var string
*/
const VERSION = '1.0.0-rc23';
const VERSION = '1.0.0-rc24';

public function __construct(ContainerInterface $container)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Config/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function configImport(DrupalStyle $io, StorageComparer $storage_comparer
$config_importer->import();
return true;
} catch (ConfigImporterException $e) {
$message = 'The import failed due to the following reasons:' . "\n";
$message = $this->trans('commands.config.import.messages.import-fail') . "\n";
$message .= implode("\n", $config_importer->getErrors());
$io->error(
sprintf(
Expand Down
4 changes: 2 additions & 2 deletions src/Command/Config/ImportSingleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$directory = $input->getOption('directory');

if (!$file) {
$io->error('File option is missing.');
$io->error($this->trans('commands.config.import.single..message.missing-file'));

return 1;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ private function configImport($io, StorageComparer $storageComparer)
return true;
}
} catch (ConfigImporterException $e) {
$message = 'The import failed due to the following reasons:' . "\n";
$message = $this->trans('commands.config.import.messages.import-fail') . "\n";
$message .= implode("\n", $configImporter->getErrors());
$io->error(
sprintf(
Expand Down
6 changes: 3 additions & 3 deletions src/Command/Module/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($process->isSuccessful()) {
$io->info(
sprintf(
'Module %s was downloaded with Composer.',
$this->trans('commands.module.install.messages.download-with-composer'),
$moduleItem
)
);
} else {
$io->error(
sprintf(
'Module %s seems not to be installed with Composer. Halting.',
$this->trans('commands.module.install.messages.not-installed-with-composer'),
$moduleItem
)
);
Expand All @@ -202,7 +202,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
unset($module[array_search($invalidModule, $module)]);
$io->error(
sprintf(
'Invalid module name: %s',
$this->trans('commands.module.install.messages.invalid-name'),
$invalidModule
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public function showNoCore()
}

/**
* @param string $nameOnly
* @param boolean $nameOnly
* @return array
*/
public function getList($nameOnly)
public function getList($nameOnly = false)
{
return $this->getExtensions($this->extension, $nameOnly);
}
Expand Down

0 comments on commit 898f1a2

Please sign in to comment.