diff --git a/GamePedia/php/script_TD3a.php b/GamePedia/php/script_TD3a.php index 4abffbbe036bbe4f92179bf2c4acef011776956f..33c8e7aef53fe53da1452e3ef856907bede4761a 100644 --- a/GamePedia/php/script_TD3a.php +++ b/GamePedia/php/script_TD3a.php @@ -25,8 +25,11 @@ echo ("<!DOCTYPE html> $c = new ControleurScript(); echo $c->allGame(); + echo '<br>'; echo $c->gameMario(); +echo '<br>'; echo $c->gameDebMario(); +echo '<br>'; echo $c->gameDebMarioRate(); echo ("</body> </html>"); \ No newline at end of file diff --git a/GamePedia/src/controleurs/ControleurScript.php b/GamePedia/src/controleurs/ControleurScript.php index 0d6d1557004506f489cf2f077bbc0661ed067804..f6591676983b7d44bdc2f9cb9c96e64a04a9dcbb 100644 --- a/GamePedia/src/controleurs/ControleurScript.php +++ b/GamePedia/src/controleurs/ControleurScript.php @@ -241,7 +241,10 @@ class ControleurScript public function gameDebMario(){ $time_start = microtime(true); - Game::where('name', 'like', "Mario%")->characters()->get(); + $q= Game::where('name', 'like', "Mario%")->get(); + foreach ($q as $game) { + $game->characters()->get(); + } $time_end = microtime(true); $time = $time_end - $time_start; return $time; @@ -255,5 +258,4 @@ class ControleurScript return $time; } - } \ No newline at end of file