mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
style validation fix
This commit is contained in:
parent
f1d47a25ed
commit
017c7fee53
42 changed files with 526 additions and 497 deletions
|
@ -85,12 +85,12 @@ namespace controllers\publics;
|
|||
|
||||
return $this->redirect(\descartes\Router::url('Contact', 'list'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function will delete a list of contacts depending on a condition
|
||||
* This function will delete a list of contacts depending on a condition.
|
||||
*
|
||||
* @param string $_POST['condition'] : Condition to use to delete contacts
|
||||
* @param mixed $csrf
|
||||
* @param mixed $csrf
|
||||
*
|
||||
* @return boolean;
|
||||
*/
|
||||
|
@ -338,11 +338,11 @@ namespace controllers\publics;
|
|||
break;
|
||||
|
||||
default:
|
||||
if ($read_file['extension'] === 'csv')
|
||||
if ('csv' === $read_file['extension'])
|
||||
{
|
||||
$result = $this->internal_contact->import_csv($id_user, $read_file['content']);
|
||||
}
|
||||
elseif ($read_file['extension'] === 'json')
|
||||
elseif ('json' === $read_file['extension'])
|
||||
{
|
||||
$result = $this->internal_contact->import_json($id_user, $read_file['content']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue