@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $storage->makeDirectory($this->path); |
| 67 | 67 | } |
| 68 | 68 | $storage->getDriver()->writeStream( |
| 69 | - $this->path . '/' . $target->getFilename(), |
|
| 69 | + $this->path.'/'.$target->getFilename(), |
|
| 70 | 70 | fopen($target->getPathname(), 'r+') |
| 71 | 71 | ); |
| 72 | 72 | } |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | public function simulate(Target $target, Result $result) |
| 81 | 81 | { |
| 82 | 82 | $result->debug( |
| 83 | - 'sync backup to ' . $this->filesystem . PHP_EOL |
|
| 84 | - . ' target path: ' . $this->path |
|
| 83 | + 'sync backup to '.$this->filesystem.PHP_EOL |
|
| 84 | + . ' target path: '.$this->path |
|
| 85 | 85 | ); |
| 86 | 86 | } |
| 87 | 87 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function boot() |
| 29 | 29 | { |
| 30 | 30 | $this->publishes( |
| 31 | - [__DIR__ . '/phpbu.php' => config_path('phpbu.php')] |
|
| 31 | + [__DIR__.'/phpbu.php' => config_path('phpbu.php')] |
|
| 32 | 32 | ); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -121,8 +121,8 @@ |
||
| 121 | 121 | ] |
| 122 | 122 | )) { |
| 123 | 123 | throw new Configuration\Exception( |
| 124 | - 'invalid configuration' . PHP_EOL . |
|
| 125 | - 'please use the \'phpbu.php\' configuration file provided by \'phpbu-laravel\'' . PHP_EOL . |
|
| 124 | + 'invalid configuration'.PHP_EOL. |
|
| 125 | + 'please use the \'phpbu.php\' configuration file provided by \'phpbu-laravel\''.PHP_EOL. |
|
| 126 | 126 | 'for details visit phpbu.de' |
| 127 | 127 | ); |
| 128 | 128 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | protected function writeWithColor($color, $buffer) |
| 44 | 44 | { |
| 45 | - $this->write($buffer . PHP_EOL); |
|
| 45 | + $this->write($buffer.PHP_EOL); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | foreach ($keys as $k) { |
| 80 | 80 | $path .= $k; |
| 81 | 81 | if (!array_key_exists($k, $conf)) { |
| 82 | - throw new Exception('invalid configuration key ' . $key . ' at ' . $path); |
|
| 82 | + throw new Exception('invalid configuration key '.$key.' at '.$path); |
|
| 83 | 83 | } |
| 84 | 84 | $conf = $conf[$k]; |
| 85 | 85 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $options = array_merge($options, $db['source']['options']); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - $backup = new Configuration\Backup('db-' . $db['source']['connection'], false); |
|
| 139 | + $backup = new Configuration\Backup('db-'.$db['source']['connection'], false); |
|
| 140 | 140 | $type = $this->getDatabaseSourceType($connection['driver']); |
| 141 | 141 | $backup->setSource(new Configuration\Backup\Source($type, $options)); |
| 142 | 142 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | { |
| 155 | 155 | $connections = $this->proxy->get('database.connections'); |
| 156 | 156 | if (!isset($connections[$connection])) { |
| 157 | - throw new Exception('Unknown database connection: ' . $connection); |
|
| 157 | + throw new Exception('Unknown database connection: '.$connection); |
|
| 158 | 158 | } |
| 159 | 159 | $config = $connections[$connection]; |
| 160 | 160 | if (!in_array($config['driver'], ['mysql', 'pgsql'])) { |