@@ -72,10 +72,10 @@ |
||
| 72 | 72 | $executable = new Tar($this->pathToCommand); |
| 73 | 73 | $executable->archiveDirectory($this->path); |
| 74 | 74 | $executable->archiveTo($this->getArchiveFile($target)) |
| 75 | - ->useCompression( |
|
| 76 | - $target->shouldBeCompressed() ? $target->getCompression()->getCommand() : '' |
|
| 77 | - ) |
|
| 78 | - ->removeSourceDirectory(true); |
|
| 75 | + ->useCompression( |
|
| 76 | + $target->shouldBeCompressed() ? $target->getCompression()->getCommand() : '' |
|
| 77 | + ) |
|
| 78 | + ->removeSourceDirectory(true); |
|
| 79 | 79 | return $executable; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | 'mongodump' => [], |
| 43 | 43 | 'mysqldump' => [ |
| 44 | 44 | '/usr/local/mysql/bin', // Mac OS X |
| 45 | - '/usr/mysql/bin', // Linux |
|
| 45 | + '/usr/mysql/bin', // Linux |
|
| 46 | 46 | ], |
| 47 | 47 | 'tar' => [], |
| 48 | 48 | ]; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public static function detectCmdLocationInPath(string $cmd, string $path) : string |
| 121 | 121 | { |
| 122 | - $command = $path . DIRECTORY_SEPARATOR . $cmd; |
|
| 122 | + $command = $path.DIRECTORY_SEPARATOR.$cmd; |
|
| 123 | 123 | $bin = self::isExecutable($command); |
| 124 | 124 | if (empty($bin)) { |
| 125 | 125 | throw new RuntimeException(sprintf('wrong path specified for \'%s\': %s', $cmd, $path)); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | public static function detectCmdLocationInPaths($cmd, array $paths) : string |
| 156 | 156 | { |
| 157 | 157 | foreach ($paths as $path) { |
| 158 | - $command = $path . DIRECTORY_SEPARATOR . $cmd; |
|
| 158 | + $command = $path.DIRECTORY_SEPARATOR.$cmd; |
|
| 159 | 159 | $bin = self::isExecutable($command); |
| 160 | 160 | if (null !== $bin) { |
| 161 | 161 | return $bin; |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | return $path; |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - $file = $base . DIRECTORY_SEPARATOR . $path; |
|
| 264 | + $file = $base.DIRECTORY_SEPARATOR.$path; |
|
| 265 | 265 | |
| 266 | 266 | if ($useIncludePath && !file_exists($file)) { |
| 267 | 267 | $includePathFile = stream_resolve_include_path($path); |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | |
| 295 | 295 | $styledLines = []; |
| 296 | 296 | foreach ($lines as $line) { |
| 297 | - $styledLines[] = strlen($line) ? $style . str_pad($line, $padding) . "\x1b[0m" : ''; |
|
| 297 | + $styledLines[] = strlen($line) ? $style.str_pad($line, $padding)."\x1b[0m" : ''; |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | return implode(PHP_EOL, $styledLines); |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public static function formatWithAsterisk(string $buffer, int $length = 75) : string |
| 311 | 311 | { |
| 312 | - return $buffer . str_repeat('*', $length - strlen($buffer)) . PHP_EOL; |
|
| 312 | + return $buffer.str_repeat('*', $length - strlen($buffer)).PHP_EOL; |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | /** |
@@ -333,10 +333,10 @@ discard block |
||
| 333 | 333 | if ('.' === $file || '..' === $file) { |
| 334 | 334 | continue; |
| 335 | 335 | } |
| 336 | - if (is_dir($dir . '/' . $file)) { |
|
| 337 | - self::removeDir($dir . '/' . $file); |
|
| 336 | + if (is_dir($dir.'/'.$file)) { |
|
| 337 | + self::removeDir($dir.'/'.$file); |
|
| 338 | 338 | } else { |
| 339 | - unlink($dir . '/' . $file); |
|
| 339 | + unlink($dir.'/'.$file); |
|
| 340 | 340 | } |
| 341 | 341 | } |
| 342 | 342 | rmdir($dir); |