File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments