@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | if (func_num_args() > 1) { |
267 | 267 | return func_get_arg(1); |
268 | 268 | } else { |
269 | - throw new Exception\MissingVariableException('Missing variable ' . $name); |
|
269 | + throw new Exception\MissingVariableException('Missing variable '.$name); |
|
270 | 270 | } |
271 | 271 | } |
272 | 272 | if ($parts && $value instanceof self && $value !== $this) { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | $args[0] = implode('.', $parts); |
276 | 276 | return call_user_func_array(array($value, 'get'), $args); |
277 | 277 | } catch (Exception\MissingVariableException $e) { |
278 | - throw new Exception\MissingVariableException('Missing variable ' . $name); |
|
278 | + throw new Exception\MissingVariableException('Missing variable '.$name); |
|
279 | 279 | } |
280 | 280 | } |
281 | 281 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | if (!$this->expression) { |
78 | 78 | throw new Exception('Missing expression'); |
79 | 79 | } |
80 | - return $this->getParent()->expand('{' . $this->expression . '}'); |
|
80 | + return $this->getParent()->expand('{'.$this->expression.'}'); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | ?> |
@@ -76,25 +76,25 @@ discard block |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | $cwd = $this->expand($this->cwd); |
79 | - $cwdCmd = $cwd ? 'cd ' . escapeshellarg($cwd) . '; ' : null; |
|
79 | + $cwdCmd = $cwd ? 'cd '.escapeshellarg($cwd).'; ' : null; |
|
80 | 80 | $toDirParent = dirname(array_pop(explode(':', $to, 2))); |
81 | 81 | if ($toDirParent !== '/') { |
82 | - $prepareDirCmd = 'mkdir -p ' . escapeshellarg($toDirParent); |
|
82 | + $prepareDirCmd = 'mkdir -p '.escapeshellarg($toDirParent); |
|
83 | 83 | if ($toNode) { |
84 | 84 | $prepareDirCmd = $this->getSshCommand($prepareDirCmd, $toNode); |
85 | 85 | } elseif ($cwd && $toDirParent[0] !== '/') { |
86 | - $prepareDirCmd = $cwdCmd . $prepareDirCmd; |
|
86 | + $prepareDirCmd = $cwdCmd.$prepareDirCmd; |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | - $scpCommand = $this->getScpCommand($node) . ' ' . escapeshellarg($from) . ' ' . escapeshellarg($to); |
|
90 | + $scpCommand = $this->getScpCommand($node).' '.escapeshellarg($from).' '.escapeshellarg($to); |
|
91 | 91 | |
92 | 92 | if ($node) { |
93 | 93 | $this->addExpect($scpCommand, $node); |
94 | 94 | } |
95 | 95 | |
96 | 96 | if ($cwdCmd) { |
97 | - $scpCommand = $cwdCmd . $scpCommand; |
|
97 | + $scpCommand = $cwdCmd.$scpCommand; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | return isset($prepareDirCmd) ? array($prepareDirCmd, $scpCommand) : $scpCommand; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | protected function getScpCommand(Node $node) |
111 | 111 | { |
112 | - return rtrim('scp -r ' . trim($node->get('scpOptions'))); |
|
112 | + return rtrim('scp -r '.trim($node->get('scpOptions'))); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function formatQuestion($question, $default = null) |
61 | 61 | { |
62 | - return '<question>' . $question . '</question> ' |
|
62 | + return '<question>'.$question.'</question> ' |
|
63 | 63 | . ($default !== null && $default !== '' ? "[{$default}] " : ''); |
64 | 64 | } |
65 | 65 |
@@ -114,12 +114,12 @@ |
||
114 | 114 | */ |
115 | 115 | protected function getScpCommand() |
116 | 116 | { |
117 | - $rsyncCommand = 'rsync' . $this->renderOptions($this->options); |
|
117 | + $rsyncCommand = 'rsync'.$this->renderOptions($this->options); |
|
118 | 118 | |
119 | 119 | foreach (array('include', 'exclude') as $type) { |
120 | 120 | $rules = $this->getMergedArrayOption($type, $this->defaultRules[$type]); |
121 | 121 | foreach ($rules as $rule) { |
122 | - $rsyncCommand .= ' --' . $type . '=' . escapeshellarg($rule); |
|
122 | + $rsyncCommand .= ' --'.$type.'='.escapeshellarg($rule); |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | { |
58 | 58 | if ($name === 'command') { |
59 | 59 | parent::offsetSet('composerCommand', $value); |
60 | - $value = 'composer ' . $value; |
|
60 | + $value = 'composer '.$value; |
|
61 | 61 | } |
62 | 62 | parent::offsetSet($name, $value); |
63 | 63 | } |
@@ -84,19 +84,19 @@ discard block |
||
84 | 84 | protected function getCommand() |
85 | 85 | { |
86 | 86 | $cmd = $this->get('command'); |
87 | - $argv = substr(parent::getCommand(), strlen($cmd)) . ' '; |
|
87 | + $argv = substr(parent::getCommand(), strlen($cmd)).' '; |
|
88 | 88 | if (strpos($argv, ' --no-ansi ') === false |
89 | 89 | && strpos($argv, ' --ansi ') === false |
90 | 90 | && $this->console->getOutput()->isDecorated() |
91 | 91 | ) { |
92 | - $argv = ' --ansi' . $argv; |
|
92 | + $argv = ' --ansi'.$argv; |
|
93 | 93 | } |
94 | 94 | if (!$this->shouldExecute() |
95 | 95 | && strpos($argv, ' --dry-run ') === false |
96 | 96 | ) { |
97 | - $argv = ' --dry-run' . $argv; |
|
97 | + $argv = ' --dry-run'.$argv; |
|
98 | 98 | } |
99 | - return $cmd . rtrim($argv); |
|
99 | + return $cmd.rtrim($argv); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | ?> |
@@ -76,11 +76,11 @@ |
||
76 | 76 | if (is_string($fn)) { |
77 | 77 | $name = $fn; |
78 | 78 | } elseif (is_array($fn)) { |
79 | - $name = (is_object($fn[0]) ? get_class($fn[0]) . '->' : $fn[0] . '::') . $fn[1]; |
|
79 | + $name = (is_object($fn[0]) ? get_class($fn[0]).'->' : $fn[0].'::').$fn[1]; |
|
80 | 80 | } else { |
81 | 81 | $name = 'anonymous function'; |
82 | 82 | } |
83 | - $this->console->output('Calling ' . $name, OutputInterface::VERBOSITY_DEBUG); |
|
83 | + $this->console->output('Calling '.$name, OutputInterface::VERBOSITY_DEBUG); |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | ?> |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $process = $this->console->createProcess($this->getCommand(), $this->get('cwd')); |
144 | 144 | $process->setDryRun(!$this->shouldExecute()); |
145 | 145 | foreach ($this->get('processSettings') as $key => $value) { |
146 | - $process->{'set' . ucfirst($key)}($value); |
|
146 | + $process->{'set'.ucfirst($key)}($value); |
|
147 | 147 | } |
148 | 148 | return $process->run(); |
149 | 149 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | if ($options || $arguments) { |
170 | 170 | throw new Exception('Can not combine argv with options or arguments'); |
171 | 171 | } |
172 | - $cmd .= ' ' . (is_array($argv) ? implode(' ', $argv) : $argv); |
|
172 | + $cmd .= ' '.(is_array($argv) ? implode(' ', $argv) : $argv); |
|
173 | 173 | } else { |
174 | 174 | $cmd .= $this->renderOptions($options); |
175 | 175 | $cmd .= $this->renderArguments($arguments); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $argumentString = ''; |
225 | 225 | foreach ($arguments as $argument) { |
226 | 226 | $value = $this->expand($argument); |
227 | - $argumentString .= ' ' . escapeshellarg($value); |
|
227 | + $argumentString .= ' '.escapeshellarg($value); |
|
228 | 228 | } |
229 | 229 | return $argumentString; |
230 | 230 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function run() |
40 | 40 | { |
41 | 41 | if ($this->has('message')) { |
42 | - $this->console->output('<info>' . $this->get('message') . '</info>'); |
|
42 | + $this->console->output('<info>'.$this->get('message').'</info>'); |
|
43 | 43 | } |
44 | 44 | throw new BreakException('Execution stopped'); |
45 | 45 | } |