|
@@ -269,9 +269,9 @@ class Perforce
|
|
|
public function generateP4Command($command, $useClient = true)
|
|
|
{
|
|
|
$p4Command = 'p4 ';
|
|
|
- $p4Command = $p4Command . '-u ' . $this->getUser() . ' ';
|
|
|
+ $p4Command .= '-u ' . $this->getUser() . ' ';
|
|
|
if ($useClient) {
|
|
|
- $p4Command = $p4Command . '-c ' . $this->getClient() . ' ';
|
|
|
+ $p4Command .= '-c ' . $this->getClient() . ' ';
|
|
|
}
|
|
|
$p4Command = $p4Command . '-p ' . $this->getPort() . ' ' . $command;
|
|
|
|
|
@@ -312,7 +312,7 @@ class Perforce
|
|
|
chdir($this->path);
|
|
|
$p4SyncCommand = $this->generateP4Command('sync -f ');
|
|
|
if (null !== $sourceReference) {
|
|
|
- $p4SyncCommand = $p4SyncCommand . '@' . $sourceReference;
|
|
|
+ $p4SyncCommand .= '@' . $sourceReference;
|
|
|
}
|
|
|
$this->executeCommand($p4SyncCommand);
|
|
|
chdir($prevDir);
|