Skip to content

Commit

Permalink
Style, phpdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 25, 2017
1 parent 6514ea9 commit 830eeb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions lib/Components/Component/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ public function getChangelog($helper)
$base = $this->getFactory()->getGitRoot()->getRoot();
return $helper->getChangelog(
preg_replace(
'#^' . $base . '#', '', realpath($this->_directory)
),
$this->_directory
'#^' . $base . '#', '', $this->_directory
)
);
}

Expand Down
6 changes: 2 additions & 4 deletions lib/Components/Helper/ChangeLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ public function __construct(
* @param string $file Path to the package.xml.
* @param array $options Additional options.
*
* @return NULL
* @return string Path to the updated package.xml file.
*/
public function packageXml($log, $xml, $file, $options)
{
if (file_exists($file)) {
if (empty($options['pretend'])) {
$xml->addNote($log);
file_put_contents($file, (string) $xml);
file_put_contents($file, (string)$xml);
$this->_output->ok(
'Added new note to version ' . $xml->getVersion() . ' of ' . $file . '.'
);
Expand Down Expand Up @@ -203,8 +203,6 @@ public function changesFileExists()
*
* @param string $entry Change log entry to add.
* @param string $changes Path to the CHANGES file.
*
* @return NULL
*/
public function addChange($entry, $changes)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Components/Module/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public function handle(Components_Config $config)
{
$options = $config->getOptions();
$arguments = $config->getArguments();
if (!empty($options['changed'])
|| (isset($arguments[0]) && $arguments[0] == 'changed')) {
if (!empty($options['changed']) ||
(isset($arguments[0]) && $arguments[0] == 'changed')) {
$this->_dependencies->getRunnerChange()->run();
return true;
}
Expand Down
7 changes: 4 additions & 3 deletions lib/Components/Runner/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ class Components_Runner_Update
/**
* Constructor.
*
* @param Components_Config $config The configuration for the current job.
* @param Component_Output $output The output handler.
* @param Components_Config $config The configuration for the current job.
* @param Component_Output $output The output handler.
*/
public function __construct(
Components_Config $config,
Components_Output $output
) {
)
{
$this->_config = $config;
$this->_output = $output;
}
Expand Down

0 comments on commit 830eeb2

Please sign in to comment.