From 9e65a3731c286fa931fd987958c6b8495f973f76 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Wed, 8 May 2024 19:25:39 -0400 Subject: [PATCH] fix typo --- app/Console/Commands/TabulateWinners.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/TabulateWinners.php b/app/Console/Commands/TabulateWinners.php index ddac3a9..2239c81 100644 --- a/app/Console/Commands/TabulateWinners.php +++ b/app/Console/Commands/TabulateWinners.php @@ -134,9 +134,9 @@ class TabulateWinners extends Command return $fortyThreeToSixtyEightQuery->vehicle; } - function sixtyEightToNinetyEightWinner() + function sixtyNineToNinetyEightWinner() { - $sixtyEightToNinetyEightQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id') + $sixtyNineToNinetyEightQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id') ->groupBy('vehicles.id') ->selectRaw('*, sum(vehicle_scores.overall_score) as totalscore') ->whereNotIn('vehicle_scores.vehicle', function($query){ @@ -147,7 +147,7 @@ class TabulateWinners extends Command ->where('vehicles.doNotJudge', '=', 0) ->orderBy('totalscore','desc') ->first(); - return $sixtyEightToNinetyEightQuery->vehicle; + return $sixtyNineToNinetyEightQuery->vehicle; } function NinetyNineToCurrentWinner() @@ -255,7 +255,7 @@ class TabulateWinners extends Command 'place' => 'first' ], [ - 'vehicle' => sixtyEightToNinetyEightWinner() + 'vehicle' => sixtyNineToNinetyEightWinner() ] ); CarShowWinner::updateOrCreate( @@ -264,7 +264,7 @@ class TabulateWinners extends Command 'place' => 'second' ], [ - 'vehicle' => sixtyEightToNinetyEightWinner() + 'vehicle' => sixtyNineToNinetyEightWinner() ] ); CarShowWinner::updateOrCreate( @@ -273,7 +273,7 @@ class TabulateWinners extends Command 'place' => 'third' ], [ - 'vehicle' => sixtyEightToNinetyEightWinner() + 'vehicle' => sixtyNineToNinetyEightWinner() ] );