Commit 678e4014 authored by okhin's avatar okhin 🚴

Linting

parent fb136c4c
......@@ -100,7 +100,8 @@ class Admin extends Controller
$f3->set('block_content', 'backend/dons.html');
}
public function validate($f3, $args) {
public function validate($f3, $args)
{
$id = '';
$error = '';
$db = $f3->get('DB');
......@@ -132,7 +133,8 @@ class Admin extends Controller
}
if ($error != '') {
} else {
$db->query("UPDATE dons
$db->query(
"UPDATE dons
SET status = $status
WHERE id = ".\Utils::asl($id)
);
......@@ -145,7 +147,8 @@ class Admin extends Controller
}
public function invalidate($f3, $args) {
public function invalidate($f3, $args)
{
$id = '';
$error = '';
$db = $f3->get('DB');
......@@ -180,7 +183,8 @@ class Admin extends Controller
}
if ($error != '') {
} else {
$db->query("UPDATE dons
$db->query(
"UPDATE dons
SET status = $status
WHERE id = ".\Utils::asl($id)
);
......@@ -703,7 +707,8 @@ class Admin extends Controller
$f3->set('block_content', 'backend/contrepartie.html');
}
public function adresse($f3, $args) {
public function adresse($f3, $args)
{
$id = '';
$form_name = '';
$user_id = '';
......@@ -720,7 +725,8 @@ class Admin extends Controller
WHERE user_id = $user_id");
$db->query("UPDATE contreparties SET adresse_id = NULL
WHERE user_id = $user_id");
$db->query("DELETE FROM adresses
$db->query(
"DELETE FROM adresses
WHERE id = $id"
);
} else {
......@@ -733,7 +739,8 @@ class Admin extends Controller
$codepostal = \Utils::asl($f3->get('POST.codepostal'));
$ville = \Utils::asl($f3->get('POST.ville'));
$pays = \Utils::asl($f3->get('POST.pays'));
$db->query("UPDATE adresses SET
$db->query(
"UPDATE adresses SET
nom = '".$nom."',
adresse = '".$adresse."',
adresse2 = '".$adresse2."',
......
......@@ -25,8 +25,10 @@ class CounterpartHandler
public function handleCounterpartDeleteCommand(CounterpartDeleteCommand $command)
{
$counterpartId = $command->getCounterpartId();
$this->connection->executeUpdate("DELETE FROM counterparts WHERE id = :id",
['id' => $counterpartId()]);
$this->connection->executeUpdate(
"DELETE FROM counterparts WHERE id = :id",
['id' => $counterpartId()]
);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment