Fix linting

This commit is contained in:
Nigel Sheldon 2020-11-21 15:51:56 +01:00
commit 1614145b18
262 changed files with 45324 additions and 42695 deletions

View file

@ -1,18 +1,18 @@
<?php
if(!defined('INDEX')) { header('Location: ../'); exit; }
if (!defined('INDEX')) {
header('Location: ../');
exit;
}
$bdd->reconnexion();
$flottes = $bdd->query("SELECT id FROM $table_flottes WHERE (id_user = ".$planete->id_user." OR end_planete = ".$planete->id." OR id_alliance = ".$planete->id_alliance." OR end_planete = ".$planete->id_alliance.") AND (start_time + end_time) <= ".time()." AND last < ".(time()-10).";");
$bdd->deconnexion();
if (!empty($flottes))
{
foreach($flottes as $flotte)
{
$flotte = new Flotte($flotte['id']);
$flotte->check_mission();
}
if (!empty($flottes)) {
foreach ($flottes as $flotte) {
$flotte = new Flotte($flotte['id']);
$flotte->check_mission();
}
}
unset($flottes, $flotte);
?>