diff --git a/src/Model/Module.php b/src/Model/Module.php index f5f2037..9b030d9 100644 --- a/src/Model/Module.php +++ b/src/Model/Module.php @@ -107,7 +107,12 @@ public function isValid() { public function isTranslatable() { return $this->directory && realpath($this->directory . '/.tx/config'); } - + + /** + * Get name of this module + * + * @return string + */ public function getName() { return $this->name; } diff --git a/src/Steps/Release/UpdateTranslations.php b/src/Steps/Release/UpdateTranslations.php index b0c5325..a3ee035 100644 --- a/src/Steps/Release/UpdateTranslations.php +++ b/src/Steps/Release/UpdateTranslations.php @@ -221,7 +221,7 @@ protected function generateJavascriptInDirectory(OutputInterface $output, $base, * Push source updates to transifex * * @param OutputInterface $output - * @param type $modules + * @param Module[] $modules */ public function pushSource(OutputInterface $output, $modules) { $this->log($output, "Pushing updated sources to transifex"); @@ -232,7 +232,8 @@ public function pushSource(OutputInterface $output, $modules) { '(cd %s && tx push -s)', $module->getDirectory() ); - $this->runCommand($output, $pushCommand, "Error pushing module {$module} to origin"); + $moduleName = $module->getName(); + $this->runCommand($output, $pushCommand, "Error pushing module {$moduleName} to origin"); } }