Skip to content

Commit 2565b43

Browse files
committed
[CS] Use combined assignment operators when possible
1 parent d245235 commit 2565b43

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Command/ServerRunCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9090
$address = $input->getArgument('address');
9191

9292
if (false === strpos($address, ':')) {
93-
$address = $address.':'.$input->getOption('port');
93+
$address .= ':'.$input->getOption('port');
9494
}
9595

9696
if ($this->isOtherServerProcessRunning($address)) {

Command/ServerStartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
112112
$address = $input->getArgument('address');
113113

114114
if (false === strpos($address, ':')) {
115-
$address = $address.':'.$input->getOption('port');
115+
$address .= ':'.$input->getOption('port');
116116
}
117117

118118
if (!$input->getOption('force') && $this->isOtherServerProcessRunning($address)) {

Command/ServerStatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4949
$address = $input->getArgument('address');
5050

5151
if (false === strpos($address, ':')) {
52-
$address = $address.':'.$input->getOption('port');
52+
$address .= ':'.$input->getOption('port');
5353
}
5454

5555
// remove an orphaned lock file

Command/ServerStopCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5959

6060
$address = $input->getArgument('address');
6161
if (false === strpos($address, ':')) {
62-
$address = $address.':'.$input->getOption('port');
62+
$address .= ':'.$input->getOption('port');
6363
}
6464

6565
$lockFile = $this->getLockFile($address);

Command/TranslationDebugCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private function extractMessages($locale, $transPaths)
263263
{
264264
$extractedCatalogue = new MessageCatalogue($locale);
265265
foreach ($transPaths as $path) {
266-
$path = $path.'views';
266+
$path .= 'views';
267267
if (is_dir($path)) {
268268
$this->getContainer()->get('translation.extractor')->extract($path, $extractedCatalogue);
269269
}
@@ -283,7 +283,7 @@ private function loadCurrentMessages($locale, $transPaths, TranslationLoader $lo
283283
{
284284
$currentCatalogue = new MessageCatalogue($locale);
285285
foreach ($transPaths as $path) {
286-
$path = $path.'translations';
286+
$path .= 'translations';
287287
if (is_dir($path)) {
288288
$loader->loadMessages($path, $currentCatalogue);
289289
}
@@ -311,7 +311,7 @@ private function loadFallbackCatalogues($locale, $transPaths, TranslationLoader
311311

312312
$fallbackCatalogue = new MessageCatalogue($fallbackLocale);
313313
foreach ($transPaths as $path) {
314-
$path = $path.'translations';
314+
$path .= 'translations';
315315
if (is_dir($path)) {
316316
$loader->loadMessages($path, $fallbackCatalogue);
317317
}

0 commit comments

Comments
 (0)