Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

Commit f9556f5

Browse files
authored
Merge pull request #50 from spatie/analysis-8PnEvK
Apply fixes from StyleCI
2 parents 54c3102 + 064e683 commit f9556f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CrawlLogger.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ public function crawled(
125125

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

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

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

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

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

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

156156
if ($foundOnUrl) {
157157
$message .= " (found on {$foundOnUrl})";
158158
}
159159

160160
if ($this->outputFile) {
161-
file_put_contents($this->outputFile, $message . PHP_EOL, FILE_APPEND);
161+
file_put_contents($this->outputFile, $message.PHP_EOL, FILE_APPEND);
162162
}
163163

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

0 commit comments

Comments
 (0)