@@ -71,7 +71,7 @@ |
||
71 | 71 | public function offsetSet($name, $value) |
72 | 72 | { |
73 | 73 | if (in_array($name, ['workflow', 'script', 'task', 'tasks'], true)) { |
74 | - throw new Exception($name . ' not allowed on workflows'); |
|
74 | + throw new Exception($name.' not allowed on workflows'); |
|
75 | 75 | } |
76 | 76 | parent::offsetSet($name, $value); |
77 | 77 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | if ($name === 'options' || $name === 'arguments') { |
126 | 126 | $type = substr($name, 0, -1); |
127 | 127 | if (!is_array($value)) { |
128 | - throw new Exception($name . ' must be array'); |
|
128 | + throw new Exception($name.' must be array'); |
|
129 | 129 | } |
130 | 130 | foreach ($value as $variable => $config) { |
131 | 131 | $from = $this->camelCaseToLowerCaseDashed($variable); |
@@ -165,9 +165,9 @@ discard block |
||
165 | 165 | if (($value === null || is_array($value) && !isset($value[0]) && count($value) <= 1) |
166 | 166 | && preg_match('/(^|\|)bool(ean)?($|\|)/', $config['type']) && strpos($config['type'], '|') |
167 | 167 | ) { |
168 | - if ($input->hasParameterOption($opt = '--' . $from) |
|
168 | + if ($input->hasParameterOption($opt = '--'.$from) |
|
169 | 169 | || array_key_exists('shortcut', $config) |
170 | - && $input->hasParameterOption($opt = '-' . $config['shortcut']) |
|
170 | + && $input->hasParameterOption($opt = '-'.$config['shortcut']) |
|
171 | 171 | ) { |
172 | 172 | // Set value to true, when option has no value |
173 | 173 | $value = true; |
@@ -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 |
@@ -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 | ?> |
@@ -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 | } |
@@ -104,13 +104,13 @@ |
||
104 | 104 | protected function getSshCommand($command, Node $node, $cwd = null) |
105 | 105 | { |
106 | 106 | if ($cwd && !preg_match('#^cd\s+[\'"]?/#', $command)) { |
107 | - $command = 'cd ' . escapeshellarg($cwd) . '; ' . $command; |
|
107 | + $command = 'cd '.escapeshellarg($cwd).'; '.$command; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | $sshCommand |
111 | - = rtrim('ssh' . $node->get('sshOptions')) |
|
112 | - . ' ' . escapeshellarg($node->get('url')) |
|
113 | - . ' ' . escapeshellarg($command); |
|
111 | + = rtrim('ssh'.$node->get('sshOptions')) |
|
112 | + . ' '.escapeshellarg($node->get('url')) |
|
113 | + . ' '.escapeshellarg($command); |
|
114 | 114 | |
115 | 115 | $this->addExpect($sshCommand, $node); |
116 | 116 |