@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected function extractRepositoryInformation($sourceUrl) |
92 | 92 | { |
93 | - $pattern = '#' . $this->getDomain() . '/' . self::REGEX_USER . '/' . self::REGEX_REPOSITORY . '#'; |
|
93 | + $pattern = '#'.$this->getDomain().'/'.self::REGEX_USER.'/'.self::REGEX_REPOSITORY.'#'; |
|
94 | 94 | |
95 | 95 | preg_match($pattern, $sourceUrl, $matches); |
96 | 96 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | private function transformSshUrlIntoHttp($url) |
129 | 129 | { |
130 | - $pattern = '#git@' . $this->getDomain() . ':' . self::REGEX_USER . '/' . self::REGEX_REPOSITORY . '.git$#'; |
|
130 | + $pattern = '#git@'.$this->getDomain().':'.self::REGEX_USER.'/'.self::REGEX_REPOSITORY.'.git$#'; |
|
131 | 131 | |
132 | 132 | if (preg_match($pattern, $url, $matches)) { |
133 | 133 | return sprintf( |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $file = realpath( |
60 | 60 | FileSystemHelper::isAbsolute($extra['commit-bin-file']) |
61 | 61 | ? $extra['commit-bin-file'] |
62 | - : $baseDir . '/' . $extra['commit-bin-file'] |
|
62 | + : $baseDir.'/'.$extra['commit-bin-file'] |
|
63 | 63 | ); |
64 | 64 | |
65 | 65 | if (!file_exists($file)) { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | ); |
128 | 128 | |
129 | 129 | if ($additionalMessage) { |
130 | - $warning .= ' ' . $additionalMessage; |
|
130 | + $warning .= ' '.$additionalMessage; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | return $warning; |
@@ -127,7 +127,7 @@ |
||
127 | 127 | { |
128 | 128 | $path = $this->composer->getConfig()->get('home'); |
129 | 129 | |
130 | - $globalComposerJsonFile = $path . '/composer.json'; |
|
130 | + $globalComposerJsonFile = $path.'/composer.json'; |
|
131 | 131 | |
132 | 132 | if (file_exists($globalComposerJsonFile)) { |
133 | 133 | $globalComposerJson = json_decode(file_get_contents($globalComposerJsonFile), true); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | if (count($builder->getWarnings()) > 0) { |
134 | 134 | $this->io->writeError('<error>Invalid config for composer-changelogs plugin:</error>'); |
135 | 135 | foreach ($builder->getWarnings() as $warning) { |
136 | - $this->io->write(' ' . $warning); |
|
136 | + $this->io->write(' '.$warning); |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | } |
@@ -167,11 +167,11 @@ discard block |
||
167 | 167 | |
168 | 168 | $workingDirectory = getcwd(); |
169 | 169 | $filename = tempnam(sys_get_temp_dir(), 'composer-changelogs-'); |
170 | - $message = $this->config->getCommitMessage() . PHP_EOL . PHP_EOL . strip_tags($this->outputter->getOutput()); |
|
170 | + $message = $this->config->getCommitMessage().PHP_EOL.PHP_EOL.strip_tags($this->outputter->getOutput()); |
|
171 | 171 | |
172 | 172 | file_put_contents($filename, $message); |
173 | 173 | |
174 | - $command = $this->config->getCommitBinFile() . ' ' . escapeshellarg($workingDirectory) . ' ' . escapeshellarg($filename); |
|
174 | + $command = $this->config->getCommitBinFile().' '.escapeshellarg($workingDirectory).' '.escapeshellarg($filename); |
|
175 | 175 | |
176 | 176 | $this->io->write(sprintf('Executing following command: %s', $command)); |
177 | 177 | exec($command); |