Completed
Push — feature/sentry-and-update ( 08707d )
by Narcotic
03:24
created
src/Command/ImportCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             $this->logger->info("Loading data from ${file}");
243 243
 
244 244
             if (!array_key_exists('target', $doc->getData())) {
245
-                throw new MissingTargetException('Missing target in \'' . $file . '\'');
245
+                throw new MissingTargetException('Missing target in \''.$file.'\'');
246 246
             }
247 247
 
248 248
             $targetUrl = sprintf('%s%s', $host, $doc->getData()['target']);
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 
291 291
         // Authentication or custom headers.
292 292
         if ($this->headerBasicAuth) {
293
-            $data['headers']['Authorization'] = 'Basic '. base64_encode($this->headerBasicAuth);
293
+            $data['headers']['Authorization'] = 'Basic '.base64_encode($this->headerBasicAuth);
294 294
         }
295 295
         if ($this->customHeaders) {
296 296
             foreach ($this->customHeaders as $headers) {
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
                 $data
341 341
             );
342 342
 
343
-            $this->logger->info('Wrote ' . $response->getHeader('Link')[0]);
343
+            $this->logger->info('Wrote '.$response->getHeader('Link')[0]);
344 344
         } catch (\Exception $e) {
345 345
             $this->errors[$file] = $e->getMessage();
346 346
             $this->logger->error(
@@ -357,10 +357,10 @@  discard block
 block discarded – undo
357 357
                     $this->cloner->cloneVar(
358 358
                         $this->parser->parse($e->getResponse()->getBody(), false, false, true)
359 359
                     ),
360
-                    function ($line, $depth) use ($output) {
360
+                    function($line, $depth) use ($output) {
361 361
                         if ($depth > 0) {
362 362
                             $output->writeln(
363
-                                '<error>' . str_pad(str_repeat('  ', $depth) . $line, 140, ' ') . '</error>'
363
+                                '<error>'.str_pad(str_repeat('  ', $depth).$line, 140, ' ').'</error>'
364 364
                             );
365 365
                         }
366 366
                     }
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         }
418 418
 
419 419
         // Find file
420
-        $fileName = dirname($originFile) . DIRECTORY_SEPARATOR . $documentData['file'];
420
+        $fileName = dirname($originFile).DIRECTORY_SEPARATOR.$documentData['file'];
421 421
         $fileName = str_replace('//', '/', $fileName);
422 422
         if (!file_exists($fileName)) {
423 423
             return false;
Please login to merge, or discard this patch.