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() ] );