Completed
Push — master ( 9135e7...c907ef )
by Sebastian
07:51
created
src/Backup/Sync/Dropbox.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function sync(Target $target, Result $result)
77 77
     {
78 78
         $sourcePath  = $target->getPathname();
79
-        $dropboxPath = $this->path . $target->getFilename();
79
+        $dropboxPath = $this->path.$target->getFilename();
80 80
         $client      = new DropboxApi\Client($this->token, "phpbu/1.1.0");
81 81
         $pathError   = DropboxApi\Path::findErrorNonRoot($dropboxPath);
82 82
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         } catch (\Exception $e) {
101 101
             throw new Exception($e->getMessage(), null, $e);
102 102
         }
103
-        $result->debug('upload: done  (' . $res['size'] . ')');
103
+        $result->debug('upload: done  ('.$res['size'].')');
104 104
     }
105 105
 
106 106
     /**
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
     public function simulate(Target $target, Result $result)
113 113
     {
114 114
         $result->debug(
115
-            'sync backup to dropbox' . PHP_EOL
116
-            . '  token:    ********' . PHP_EOL
117
-            . '  location: ' . $this->path
115
+            'sync backup to dropbox'.PHP_EOL
116
+            . '  token:    ********'.PHP_EOL
117
+            . '  location: '.$this->path
118 118
         );
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
src/Backup/Source/Mysqldump.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -220,19 +220,19 @@
 block discarded – undo
220 220
         if (null == $this->executable) {
221 221
             $this->executable = new Executable\Mysqldump($this->pathToMysqldump);
222 222
             $this->executable->credentials($this->user, $this->password)
223
-                             ->useHost($this->host)
224
-                             ->useQuickMode($this->quick)
225
-                             ->lockTables($this->lockTables)
226
-                             ->dumpBlobsHexadecimal($this->hexBlob)
227
-                             ->useCompression($this->compress)
228
-                             ->useExtendedInsert($this->extendedInsert)
229
-                             ->dumpTables($this->tables)
230
-                             ->dumpDatabases($this->databases)
231
-                             ->ignoreTables($this->ignoreTables)
232
-                             ->produceFilePerTable($this->filePerTable)
233
-                             ->dumpNoData($this->noData)
234
-                             ->dumpStructureOnly($this->structureOnly)
235
-                             ->dumpTo($this->getDumpTarget($target));
223
+                                ->useHost($this->host)
224
+                                ->useQuickMode($this->quick)
225
+                                ->lockTables($this->lockTables)
226
+                                ->dumpBlobsHexadecimal($this->hexBlob)
227
+                                ->useCompression($this->compress)
228
+                                ->useExtendedInsert($this->extendedInsert)
229
+                                ->dumpTables($this->tables)
230
+                                ->dumpDatabases($this->databases)
231
+                                ->ignoreTables($this->ignoreTables)
232
+                                ->produceFilePerTable($this->filePerTable)
233
+                                ->dumpNoData($this->noData)
234
+                                ->dumpStructureOnly($this->structureOnly)
235
+                                ->dumpTo($this->getDumpTarget($target));
236 236
         }
237 237
         return $this->executable;
238 238
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $result->debug($this->getExecutable($target)->getCommandLinePrintable());
204 204
 
205 205
         if (!$mysqldump->wasSuccessful()) {
206
-            throw new Exception('mysqldump failed:' . $mysqldump->getStdErr());
206
+            throw new Exception('mysqldump failed:'.$mysqldump->getStdErr());
207 207
         }
208 208
 
209 209
         return $this->createStatus($target);
@@ -258,6 +258,6 @@  discard block
 block discarded – undo
258 258
      */
259 259
     private function getDumpTarget(Target $target)
260 260
     {
261
-        return $target->getPathnamePlain() . ($this->filePerTable ? '.dump' : '');
261
+        return $target->getPathnamePlain().($this->filePerTable ? '.dump' : '');
262 262
     }
263 263
 }
Please login to merge, or discard this patch.
src/Backup/Source/Tar.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $result->debug($tar->getCmd());
102 102
 
103 103
         if (!$tar->wasSuccessful()) {
104
-            throw new Exception('tar failed: ' . $tar->getStdErr());
104
+            throw new Exception('tar failed: '.$tar->getStdErr());
105 105
         }
106 106
 
107 107
         return $this->createStatus($target);
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,10 +141,10 @@
 block discarded – undo
141 141
 
142 142
             $this->executable = new Executable\Tar($this->pathToTar);
143 143
             $this->executable->archiveDirectory($this->path)
144
-                             ->useCompression($this->compression)
145
-                             ->ignoreFailedRead($this->ignoreFailedRead)
146
-                             ->removeSourceDirectory($this->removeSourceDir)
147
-                             ->archiveTo($this->pathToArchive);
144
+                                ->useCompression($this->compression)
145
+                                ->ignoreFailedRead($this->ignoreFailedRead)
146
+                                ->removeSourceDirectory($this->removeSourceDir)
147
+                                ->archiveTo($this->pathToArchive);
148 148
         }
149 149
         return $this->executable;
150 150
     }
Please login to merge, or discard this patch.
src/Backup/Source/SimulatorExecutable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function simulate(Target $target, Result $result)
29 29
     {
30
-        $result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandLinePrintable());
30
+        $result->debug('backup data:'.PHP_EOL.$this->getExecutable($target)->getCommandLinePrintable());
31 31
 
32 32
         return $this->createStatus($target);
33 33
     }
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $this->executeCleanup($backup, $target, $collector);
126 126
 
127 127
             } catch (\Exception $e) {
128
-                $this->result->debug('exception: ' . $e->getMessage());
128
+                $this->result->debug('exception: '.$e->getMessage());
129 129
                 $this->result->addError($e);
130 130
                 $this->result->backupFailed($backup);
131 131
                 if ($backup->stopOnFailure()) {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                     $this->result->cryptSkipped($crypt);
255 255
                 } else {
256 256
                     /* @var \phpbu\App\Runner\Crypter $runner */
257
-                    $runner  = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
257
+                    $runner = $this->factory->createRunner('crypter', $this->configuration->isSimulation());
258 258
                     $runner->run($this->factory->createCrypter($crypt->type, $crypt->options), $target, $this->result);
259 259
                 }
260 260
             } catch (Backup\Crypter\Exception $e) {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     {
277 277
         /* @var \phpbu\App\Runner\Crypter $runner */
278 278
         /* @var \phpbu\App\Configuration\Backup\Sync $sync */
279
-        $runner  = $this->factory->createRunner('sync', $this->configuration->isSimulation());
279
+        $runner = $this->factory->createRunner('sync', $this->configuration->isSimulation());
280 280
         foreach ($backup->getSyncs() as $sync) {
281 281
             try {
282 282
                 $this->result->syncStart($sync);
Please login to merge, or discard this patch.
src/Result/PrinterCli.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
     {
172 172
         $configuration = $event->getConfiguration();
173 173
         $this->write(
174
-            Version::getVersionString() . PHP_EOL .
175
-            PHP_EOL .
176
-            'Runtime:       ' . $this->runtime->getNameWithVersion() . PHP_EOL .
177
-            'Configuration: ' . $configuration->getFilename() . PHP_EOL .
174
+            Version::getVersionString().PHP_EOL.
175
+            PHP_EOL.
176
+            'Runtime:       '.$this->runtime->getNameWithVersion().PHP_EOL.
177
+            'Configuration: '.$configuration->getFilename().PHP_EOL.
178 178
             PHP_EOL
179 179
         );
180 180
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $this->numBackups++;
190 190
         if ($this->debug) {
191 191
             $backup = $event->getConfiguration();
192
-            $this->writeWithAsterisk('backup: [' . $backup->getSource()->type . '] ');
192
+            $this->writeWithAsterisk('backup: ['.$backup->getSource()->type.'] ');
193 193
         }
194 194
     }
195 195
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     public function onBackupFailed(Event\Backup\Failed $event)
202 202
     {
203 203
         if ($this->debug) {
204
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
204
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
205 205
         }
206 206
     }
207 207
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     public function onBackupEnd(Event\Backup\End $event)
214 214
     {
215 215
         if ($this->debug) {
216
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
216
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
217 217
         }
218 218
     }
219 219
 
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
         $this->numChecks++;
228 228
         if ($this->debug) {
229 229
             $check = $event->getConfiguration();
230
-            $this->writeWithAsterisk('check: [' . $check->type . '] ');
231
-            $this->write('checking: [' . $check->value . '] ');
230
+            $this->writeWithAsterisk('check: ['.$check->type.'] ');
231
+            $this->write('checking: ['.$check->value.'] ');
232 232
         }
233 233
     }
234 234
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     public function onCheckFailed(Event\Check\Failed $event)
241 241
     {
242 242
         if ($this->debug) {
243
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
243
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
244 244
         }
245 245
     }
246 246
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     public function onCheckEnd(Event\Check\End $event)
253 253
     {
254 254
         if ($this->debug) {
255
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
255
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
256 256
         }
257 257
     }
258 258
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $this->numCrypts++;
267 267
         if ($this->debug) {
268 268
             $crypt = $event->getConfiguration();
269
-            $this->writeWithAsterisk('crypt: [' . $crypt->type . '] ');
269
+            $this->writeWithAsterisk('crypt: ['.$crypt->type.'] ');
270 270
         }
271 271
     }
272 272
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     public function onCryptSkipped(Event\Crypt\Skipped $event)
279 279
     {
280 280
         if ($this->debug) {
281
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
281
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
282 282
         }
283 283
     }
284 284
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     public function onCryptFailed(Event\Crypt\Failed $event)
291 291
     {
292 292
         if ($this->debug) {
293
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
293
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
294 294
         }
295 295
     }
296 296
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     public function onCryptEnd(Event\Crypt\End $event)
303 303
     {
304 304
         if ($this->debug) {
305
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
305
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
306 306
         }
307 307
     }
308 308
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         $this->numSyncs++;
317 317
         if ($this->debug) {
318 318
             $sync = $event->getConfiguration();
319
-            $this->writeWithAsterisk('sync: [' . $sync->type . '] ');
319
+            $this->writeWithAsterisk('sync: ['.$sync->type.'] ');
320 320
         }
321 321
     }
322 322
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     public function onSyncSkipped(Event\Sync\Skipped $event)
329 329
     {
330 330
         if ($this->debug) {
331
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
331
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
332 332
         }
333 333
     }
334 334
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     public function onSyncFailed(Event\Sync\Failed $event)
341 341
     {
342 342
         if ($this->debug) {
343
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
343
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
344 344
         }
345 345
     }
346 346
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     public function onSyncEnd(Event\Sync\End $event)
353 353
     {
354 354
         if ($this->debug) {
355
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
355
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
356 356
         }
357 357
     }
358 358
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $this->numCleanups++;
367 367
         if ($this->debug) {
368 368
             $cleanup = $event->getConfiguration();
369
-            $this->writeWithAsterisk('cleanup: [' . $cleanup->type . '] ');
369
+            $this->writeWithAsterisk('cleanup: ['.$cleanup->type.'] ');
370 370
         }
371 371
     }
372 372
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
     public function onCleanupSkipped(Event\Cleanup\Skipped $event)
379 379
     {
380 380
         if ($this->debug) {
381
-            $this->writeWithColor('fg-black, bg-yellow', 'skipped' . PHP_EOL);
381
+            $this->writeWithColor('fg-black, bg-yellow', 'skipped'.PHP_EOL);
382 382
         }
383 383
     }
384 384
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     public function onCleanupFailed(Event\Cleanup\Failed $event)
391 391
     {
392 392
         if ($this->debug) {
393
-            $this->writeWithColor('fg-white, bg-red, bold', 'failed' . PHP_EOL);
393
+            $this->writeWithColor('fg-white, bg-red, bold', 'failed'.PHP_EOL);
394 394
         }
395 395
     }
396 396
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     public function onCleanupEnd(Event\Cleanup\End $event)
403 403
     {
404 404
         if ($this->debug) {
405
-            $this->writeWithColor('fg-black, bg-green', 'ok' . PHP_EOL);
405
+            $this->writeWithColor('fg-black, bg-green', 'ok'.PHP_EOL);
406 406
         }
407 407
     }
408 408
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     public function onDebug(Event\Debug $event)
415 415
     {
416 416
         if ($this->debug) {
417
-            $this->write($event->getMessage() . PHP_EOL);
417
+            $this->write($event->getMessage().PHP_EOL);
418 418
         }
419 419
     }
420 420
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      */
453 453
     protected function printHeader()
454 454
     {
455
-        $this->write(PHP_Timer::resourceUsage() . PHP_EOL . PHP_EOL);
455
+        $this->write(PHP_Timer::resourceUsage().PHP_EOL.PHP_EOL);
456 456
     }
457 457
 
458 458
     /**
@@ -512,13 +512,13 @@  discard block
 block discarded – undo
512 512
         $clSkipped  = str_pad($backup->cleanupCountSkipped(), 7, ' ', STR_PAD_LEFT);
513 513
         $clFailed   = str_pad($backup->cleanupCountFailed(), 6, ' ', STR_PAD_LEFT);
514 514
 
515
-        $out = PHP_EOL . '          | executed | skipped | failed |' . PHP_EOL
516
-            . '----------+----------+---------+--------+' . PHP_EOL
517
-            . ' checks   | ' . $chExecuted . ' |         | ' . $chFailed . ' |' . PHP_EOL
518
-            . ' crypts   | ' . $crExecuted . ' | ' . $crSkipped . ' | ' . $crFailed . ' |' . PHP_EOL
519
-            . ' syncs    | ' . $syExecuted . ' | ' . $sySkipped . ' | ' . $syFailed . ' |' . PHP_EOL
520
-            . ' cleanups | ' . $clExecuted . ' | ' . $clSkipped . ' | ' . $clFailed . ' |' . PHP_EOL
521
-            . '----------+----------+---------+--------+' . PHP_EOL . PHP_EOL;
515
+        $out = PHP_EOL.'          | executed | skipped | failed |'.PHP_EOL
516
+            . '----------+----------+---------+--------+'.PHP_EOL
517
+            . ' checks   | '.$chExecuted.' |         | '.$chFailed.' |'.PHP_EOL
518
+            . ' crypts   | '.$crExecuted.' | '.$crSkipped.' | '.$crFailed.' |'.PHP_EOL
519
+            . ' syncs    | '.$syExecuted.' | '.$sySkipped.' | '.$syFailed.' |'.PHP_EOL
520
+            . ' cleanups | '.$clExecuted.' | '.$clSkipped.' | '.$clFailed.' |'.PHP_EOL
521
+            . '----------+----------+---------+--------+'.PHP_EOL.PHP_EOL;
522 522
 
523 523
         $this->write($out);
524 524
     }
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
             $this->writeWithColor(
540 540
                 'fg-black, bg-green',
541 541
                 sprintf(
542
-                    'OK (%d %s, %d %s, %d %s, %d %s, %d %s)' . PHP_EOL,
542
+                    'OK (%d %s, %d %s, %d %s, %d %s, %d %s)'.PHP_EOL,
543 543
                     count($result->getBackups()),
544 544
                     Util\Str::appendPluralS('backup', count($result->getBackups())),
545 545
                     $this->numChecks,
@@ -556,8 +556,8 @@  discard block
 block discarded – undo
556 556
             $this->writeWithColor(
557 557
                 'fg-black, bg-yellow',
558 558
                 sprintf(
559
-                    "WARNING, skipped|failed Crypts, Syncs or Cleanups!" . PHP_EOL .
560
-                    'Backups: %d, Crypts: %d|%d, Syncs: %d|%d, Cleanups: %d|%d ' . PHP_EOL,
559
+                    "WARNING, skipped|failed Crypts, Syncs or Cleanups!".PHP_EOL.
560
+                    'Backups: %d, Crypts: %d|%d, Syncs: %d|%d, Cleanups: %d|%d '.PHP_EOL,
561 561
                     count($result->getBackups()),
562 562
                     $result->cryptsSkippedCount(),
563 563
                     $result->cryptsFailedCount(),
@@ -571,8 +571,8 @@  discard block
 block discarded – undo
571 571
             $this->writeWithColor(
572 572
                 'fg-white, bg-red',
573 573
                 sprintf(
574
-                    "FAILURE!" . PHP_EOL .
575
-                    'Backups: %d, failed Checks: %d, failed Crypts: %d, failed Syncs: %d, failed Cleanups: %d.' . PHP_EOL,
574
+                    "FAILURE!".PHP_EOL.
575
+                    'Backups: %d, failed Checks: %d, failed Crypts: %d, failed Syncs: %d, failed Cleanups: %d.'.PHP_EOL,
576 576
                     count($result->getBackups()),
577 577
                     $result->checksFailedCount(),
578 578
                     $result->cryptsFailedCount(),
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         if ($this->colors) {
596 596
             $buffer = Util\Cli::formatWithColor($color, $buffer);
597 597
         }
598
-        $this->write($buffer . PHP_EOL);
598
+        $this->write($buffer.PHP_EOL);
599 599
     }
600 600
 
601 601
     /**
Please login to merge, or discard this patch.
src/Cli/Executable/OpenSSL.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     public function encryptFile($file)
178 178
     {
179 179
         $this->sourceFile = $file;
180
-        $this->targetFile = $file . '.enc';
180
+        $this->targetFile = $file.'.enc';
181 181
         return $this;
182 182
     }
183 183
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     {
311 311
         $cmd->addOption('smime');
312 312
         $cmd->addOption('-encrypt');
313
-        $cmd->addOption('-' . $this->algorithm);
313
+        $cmd->addOption('-'.$this->algorithm);
314 314
         $cmd->addOption('-binary');
315 315
         $cmd->addOption('-in', $this->sourceFile, ' ');
316 316
         $cmd->addOption('-out', $this->targetFile, ' ');
@@ -325,12 +325,12 @@  discard block
 block discarded – undo
325 325
      */
326 326
     protected function setPasswordOptions(Cmd $cmd)
327 327
     {
328
-        $password = 'pass:' . $this->password;
328
+        $password = 'pass:'.$this->password;
329 329
 
330 330
         $cmd->addOption('enc');
331 331
         $cmd->addOption('-e');
332 332
         $cmd->addOptionIfNotEmpty('-a', $this->base64, false);
333
-        $cmd->addOption('-' . $this->algorithm);
333
+        $cmd->addOption('-'.$this->algorithm);
334 334
         $cmd->addOption('-pass', $password, ' ');
335 335
         $cmd->addOption('-in', $this->sourceFile, ' ');
336 336
         $cmd->addOption('-out', $this->targetFile, ' ');
Please login to merge, or discard this patch.
src/Cli/Executable/Tar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
         $process = new Process();
151 151
         $tar     = new Cmd($this->binary);
152 152
 
153
-        $tar->addOption('-' . $this->compression . 'cf');
153
+        $tar->addOption('-'.$this->compression.'cf');
154 154
         $tar->addArgument($this->tarPathname);
155 155
         $tar->addOption('-C', dirname($this->path), ' ');
156 156
         $tar->addArgument(basename(($this->path)));
Please login to merge, or discard this patch.
src/Cli/Executable/Elasticdump.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
 
181 181
         // make sure there is a scheme
182 182
         if (!isset($parsed['scheme'])) {
183
-            $parsed = parse_url('http://' . $host);
183
+            $parsed = parse_url('http://'.$host);
184 184
         }
185 185
 
186
-        $url = $parsed['scheme'] . '://' . $this->getAuthUrlSnippet($user, $password) . $parsed['host'];
186
+        $url = $parsed['scheme'].'://'.$this->getAuthUrlSnippet($user, $password).$parsed['host'];
187 187
 
188 188
         if (isset($parsed['port'])) {
189
-            $url .= ':' . $parsed['port'];
189
+            $url .= ':'.$parsed['port'];
190 190
         }
191 191
 
192 192
         if (!empty($parsed['path'])) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         $url = $user;
215 215
 
216 216
         if (!empty($password)) {
217
-            $url .= ':' . $password;
217
+            $url .= ':'.$password;
218 218
         }
219 219
 
220 220
         if (!empty($url)) {
Please login to merge, or discard this patch.