Skip to content

Commit

Permalink
Merge pull request #50 from spatie/analysis-8PnEvK
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
brendt committed May 22, 2018
2 parents 54c3102 + 064e683 commit f9556f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CrawlLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public function crawled(

$timestamp = date('Y-m-d H:i:s');

$message = "{$statusCode} {$reason} - " . (string) $url;
$message = "{$statusCode} {$reason} - ".(string) $url;

if ($this->outputFile && $colorTag === 'error') {
file_put_contents($this->outputFile, $message . PHP_EOL, FILE_APPEND);
file_put_contents($this->outputFile, $message.PHP_EOL, FILE_APPEND);
}

$this->consoleOutput->writeln("<{$colorTag}>[{$timestamp}] {$message}</{$colorTag}>");
Expand All @@ -151,14 +151,14 @@ public function crawlFailed(

$timestamp = date('Y-m-d H:i:s');

$message = "{$statusCode}: {$reason} - " . (string) $url;
$message = "{$statusCode}: {$reason} - ".(string) $url;

if ($foundOnUrl) {
$message .= " (found on {$foundOnUrl})";
}

if ($this->outputFile) {
file_put_contents($this->outputFile, $message . PHP_EOL, FILE_APPEND);
file_put_contents($this->outputFile, $message.PHP_EOL, FILE_APPEND);
}

$this->consoleOutput->writeln("<{$colorTag}>[{$timestamp}] {$message}</{$colorTag}>");
Expand Down

0 comments on commit f9556f5

Please sign in to comment.