Skip to content

Commit aeb4a48

Browse files
committed
Removed spaces to have the same coding style as the plugin
1 parent 4753017 commit aeb4a48

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Outputs/Alert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function getOutputContent(Collection $detectedQueries)
3636
$output = '<script type="text/javascript">';
3737
$output .= "alert('Found the following N+1 queries in this request:\\n\\n";
3838
foreach ($detectedQueries as $detectedQuery) {
39-
$output .= "Model: ".addslashes($detectedQuery['model']). " => Relation: ".addslashes($detectedQuery['relation']);
39+
$output .= "Model: ".addslashes($detectedQuery['model'])." => Relation: ".addslashes($detectedQuery['relation']);
4040
$output .= " - You should add \"with(\'".addslashes($detectedQuery['relation'])."\')\" to eager-load this relation.";
4141
$output .= "\\n";
4242
}

src/Outputs/Console.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ protected function getOutputContent(Collection $detectedQueries)
2727
$output = '<script type="text/javascript">';
2828
$output .= "console.warn('Found the following N+1 queries in this request:\\n\\n";
2929
foreach ($detectedQueries as $detectedQuery) {
30-
$output .= "Model: " . addslashes($detectedQuery['model']) . " => Relation: " . addslashes($detectedQuery['relation']);
31-
$output .= " - You should add \"with(\'" . $detectedQuery['relation'] . "\')\" to eager-load this relation.";
30+
$output .= "Model: ".addslashes($detectedQuery['model'])." => Relation: ".addslashes($detectedQuery['relation']);
31+
$output .= " - You should add \"with(\'".$detectedQuery['relation']."\')\" to eager-load this relation.";
3232
$output .= "\\n\\n";
33-
$output .= "Model: " . addslashes($detectedQuery['model']) . "\\n";
34-
$output .= "Relation: " . $detectedQuery['relation'] . "\\n";
35-
$output .= "Num-Called: " . $detectedQuery['count'] . "\\n";
33+
$output .= "Model: ".addslashes($detectedQuery['model'])."\\n";
34+
$output .= "Relation: ".$detectedQuery['relation']."\\n";
35+
$output .= "Num-Called: ".$detectedQuery['count']."\\n";
3636
$output .= "\\n";
3737
$output .= 'Call-Stack:\\n';
3838

0 commit comments

Comments
 (0)