Skip to content

Commit

Permalink
Fix erroneous replace operation
Browse files Browse the repository at this point in the history
  • Loading branch information
atoff committed Apr 1, 2020
1 parent 2c5e69d commit b3f9f85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StandStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function getAircraftWithinParameters()
}


$filteredResults = ;
$filteredResults = [];
foreach ($pilots as $pilot) {
if (($this->getCoordDistance($pilot['latitude'], $pilot['longitude'], $this->airportCoordinates['lat'], $this->airportCoordinates['long']) < $this->maxDistanceFromAirport)) {
if (($pilot['groundspeed'] <= $this->maxAircraftGroundspeed) && ($pilot['altitude'] <= $this->maxAircraftAltitude)) {
Expand All @@ -188,7 +188,7 @@ function checkIfAircraftAreOnStand()
foreach ($pilots as $pilot) {

// Array to hold the stands they could possibly be on
$possibleStands = ;
$possibleStands = [];

// Check each stand to see how close they are
foreach ($stands as $stand) {
Expand Down Expand Up @@ -309,7 +309,7 @@ function unsetStandOccupied($standID)

function standSides($standID)
{
$standSides = ;
$standSides = [];
$stands = $this->stands;

//Find the 'base' stand number
Expand Down

0 comments on commit b3f9f85

Please sign in to comment.