mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Codesniffer compliant: if, for and while
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Ablauf extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Ablauf extends APIv1_Controller
|
||||
{
|
||||
$ablaufID = $this->get('ablauf_id');
|
||||
|
||||
if(isset($ablaufID))
|
||||
if (isset($ablaufID))
|
||||
{
|
||||
$result = $this->AblaufModel->load($ablaufID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Ablauf extends APIv1_Controller
|
||||
*/
|
||||
public function postAblauf()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['ablauf_id']))
|
||||
if (isset($this->post()['ablauf_id']))
|
||||
{
|
||||
$result = $this->AblaufModel->update($this->post()['ablauf_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Antwort extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Antwort extends APIv1_Controller
|
||||
{
|
||||
$antwortID = $this->get('antwort_id');
|
||||
|
||||
if(isset($antwortID))
|
||||
if (isset($antwortID))
|
||||
{
|
||||
$result = $this->AntwortModel->load($antwortID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Antwort extends APIv1_Controller
|
||||
*/
|
||||
public function postAntwort()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['antwort_id']))
|
||||
if (isset($this->post()['antwort_id']))
|
||||
{
|
||||
$result = $this->AntwortModel->update($this->post()['antwort_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Frage extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Frage extends APIv1_Controller
|
||||
{
|
||||
$frageID = $this->get('frage_id');
|
||||
|
||||
if(isset($frageID))
|
||||
if (isset($frageID))
|
||||
{
|
||||
$result = $this->FrageModel->load($frageID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Frage extends APIv1_Controller
|
||||
*/
|
||||
public function postFrage()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['frage_id']))
|
||||
if (isset($this->post()['frage_id']))
|
||||
{
|
||||
$result = $this->FrageModel->update($this->post()['frage_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Gebiet extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Gebiet extends APIv1_Controller
|
||||
{
|
||||
$gebietID = $this->get('gebiet_id');
|
||||
|
||||
if(isset($gebietID))
|
||||
if (isset($gebietID))
|
||||
{
|
||||
$result = $this->GebietModel->load($gebietID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Gebiet extends APIv1_Controller
|
||||
*/
|
||||
public function postGebiet()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['gebiet_id']))
|
||||
if (isset($this->post()['gebiet_id']))
|
||||
{
|
||||
$result = $this->GebietModel->update($this->post()['gebiet_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Kategorie extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Kategorie extends APIv1_Controller
|
||||
{
|
||||
$kategorie_kurzbz = $this->get('kategorie_kurzbz');
|
||||
|
||||
if(isset($kategorie_kurzbz))
|
||||
if (isset($kategorie_kurzbz))
|
||||
{
|
||||
$result = $this->KategorieModel->load($kategorie_kurzbz);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Kategorie extends APIv1_Controller
|
||||
*/
|
||||
public function postKategorie()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['kategorie_kurzbz']))
|
||||
if (isset($this->post()['kategorie_kurzbz']))
|
||||
{
|
||||
$result = $this->KategorieModel->update($this->post()['kategorie_kurzbz'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Kriterien extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Kriterien extends APIv1_Controller
|
||||
{
|
||||
$kriterienID = $this->get('kriterien_id');
|
||||
|
||||
if(isset($kriterienID))
|
||||
if (isset($kriterienID))
|
||||
{
|
||||
$result = $this->KriterienModel->load($kriterienID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Kriterien extends APIv1_Controller
|
||||
*/
|
||||
public function postKriterien()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['kriterien_id']))
|
||||
if (isset($this->post()['kriterien_id']))
|
||||
{
|
||||
$result = $this->KriterienModel->update($this->post()['kriterien_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Pruefling extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Pruefling extends APIv1_Controller
|
||||
{
|
||||
$prueflingID = $this->get('pruefling_id');
|
||||
|
||||
if(isset($prueflingID))
|
||||
if (isset($prueflingID))
|
||||
{
|
||||
$result = $this->PrueflingModel->load($prueflingID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Pruefling extends APIv1_Controller
|
||||
*/
|
||||
public function postPruefling()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['pruefling_id']))
|
||||
if (isset($this->post()['pruefling_id']))
|
||||
{
|
||||
$result = $this->PrueflingModel->update($this->post()['pruefling_id'], $this->post());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Vorschlag extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Vorschlag extends APIv1_Controller
|
||||
{
|
||||
$vorschlagID = $this->get('vorschlag_id');
|
||||
|
||||
if(isset($vorschlagID))
|
||||
if (isset($vorschlagID))
|
||||
{
|
||||
$result = $this->VorschlagModel->load($vorschlagID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Vorschlag extends APIv1_Controller
|
||||
*/
|
||||
public function postVorschlag()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['vorschlag_id']))
|
||||
if (isset($this->post()['vorschlag_id']))
|
||||
{
|
||||
$result = $this->VorschlagModel->update($this->post()['vorschlag_id'], $this->post());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user