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 Aktivitaet extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Aktivitaet extends APIv1_Controller
|
||||
{
|
||||
$aktivitaet_kurzbz = $this->get('aktivitaet_kurzbz');
|
||||
|
||||
if(isset($aktivitaet_kurzbz))
|
||||
if (isset($aktivitaet_kurzbz))
|
||||
{
|
||||
$result = $this->AktivitaetModel->load($aktivitaet_kurzbz);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Aktivitaet extends APIv1_Controller
|
||||
*/
|
||||
public function postAktivitaet()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aktivitaet_kurzbz']))
|
||||
if (isset($this->post()['aktivitaet_kurzbz']))
|
||||
{
|
||||
$result = $this->AktivitaetModel->update($this->post()['aktivitaet_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 Aufwandstyp extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Aufwandstyp extends APIv1_Controller
|
||||
{
|
||||
$aufwandstyp_kurzbz = $this->get('aufwandstyp_kurzbz');
|
||||
|
||||
if(isset($aufwandstyp_kurzbz))
|
||||
if (isset($aufwandstyp_kurzbz))
|
||||
{
|
||||
$result = $this->AufwandstypModel->load($aufwandstyp_kurzbz);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Aufwandstyp extends APIv1_Controller
|
||||
*/
|
||||
public function postAufwandstyp()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['aufwandstyp_kurzbz']))
|
||||
if (isset($this->post()['aufwandstyp_kurzbz']))
|
||||
{
|
||||
$result = $this->AufwandstypModel->update($this->post()['aufwandstyp_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 Projekt extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Projekt extends APIv1_Controller
|
||||
{
|
||||
$projekt_kurzbz = $this->get('projekt_kurzbz');
|
||||
|
||||
if(isset($projekt_kurzbz))
|
||||
if (isset($projekt_kurzbz))
|
||||
{
|
||||
$result = $this->ProjektModel->load($projekt_kurzbz);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Projekt extends APIv1_Controller
|
||||
*/
|
||||
public function postProjekt()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['projekt_kurzbz']))
|
||||
if (isset($this->post()['projekt_kurzbz']))
|
||||
{
|
||||
$result = $this->ProjektModel->update($this->post()['projekt_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 Projekt_ressource extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Projekt_ressource extends APIv1_Controller
|
||||
{
|
||||
$projekt_ressourceID = $this->get('projekt_ressource_id');
|
||||
|
||||
if(isset($projekt_ressourceID))
|
||||
if (isset($projekt_ressourceID))
|
||||
{
|
||||
$result = $this->Projekt_ressourceModel->load($projekt_ressourceID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Projekt_ressource extends APIv1_Controller
|
||||
*/
|
||||
public function postProjekt_ressource()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['projekt_ressource_id']))
|
||||
if (isset($this->post()['projekt_ressource_id']))
|
||||
{
|
||||
$result = $this->Projekt_ressourceModel->update($this->post()['projekt_ressource_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 Projektphase extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Projektphase extends APIv1_Controller
|
||||
{
|
||||
$projektphaseID = $this->get('projektphase_id');
|
||||
|
||||
if(isset($projektphaseID))
|
||||
if (isset($projektphaseID))
|
||||
{
|
||||
$result = $this->ProjektphaseModel->load($projektphaseID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Projektphase extends APIv1_Controller
|
||||
*/
|
||||
public function postProjektphase()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['projektphase_id']))
|
||||
if (isset($this->post()['projektphase_id']))
|
||||
{
|
||||
$result = $this->ProjektphaseModel->update($this->post()['projektphase_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 Projekttask extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Projekttask extends APIv1_Controller
|
||||
{
|
||||
$projekttaskID = $this->get('projekttask_id');
|
||||
|
||||
if(isset($projekttaskID))
|
||||
if (isset($projekttaskID))
|
||||
{
|
||||
$result = $this->ProjekttaskModel->load($projekttaskID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Projekttask extends APIv1_Controller
|
||||
*/
|
||||
public function postProjekttask()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['projekttask_id']))
|
||||
if (isset($this->post()['projekttask_id']))
|
||||
{
|
||||
$result = $this->ProjekttaskModel->update($this->post()['projekttask_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 Ressource extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Ressource extends APIv1_Controller
|
||||
{
|
||||
$ressourceID = $this->get('ressource_id');
|
||||
|
||||
if(isset($ressourceID))
|
||||
if (isset($ressourceID))
|
||||
{
|
||||
$result = $this->RessourceModel->load($ressourceID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Ressource extends APIv1_Controller
|
||||
*/
|
||||
public function postRessource()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['ressource_id']))
|
||||
if (isset($this->post()['ressource_id']))
|
||||
{
|
||||
$result = $this->RessourceModel->update($this->post()['ressource_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 Scrumsprint extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Scrumsprint extends APIv1_Controller
|
||||
{
|
||||
$scrumsprintID = $this->get('scrumsprint_id');
|
||||
|
||||
if(isset($scrumsprintID))
|
||||
if (isset($scrumsprintID))
|
||||
{
|
||||
$result = $this->ScrumsprintModel->load($scrumsprintID);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Scrumsprint extends APIv1_Controller
|
||||
*/
|
||||
public function postScrumsprint()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['scrumsprint_id']))
|
||||
if (isset($this->post()['scrumsprint_id']))
|
||||
{
|
||||
$result = $this->ScrumsprintModel->update($this->post()['scrumsprint_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 Scrumteam extends APIv1_Controller
|
||||
{
|
||||
@@ -35,7 +35,7 @@ class Scrumteam extends APIv1_Controller
|
||||
{
|
||||
$scrumteam_kurzbz = $this->get('scrumteam_kurzbz');
|
||||
|
||||
if(isset($scrumteam_kurzbz))
|
||||
if (isset($scrumteam_kurzbz))
|
||||
{
|
||||
$result = $this->ScrumteamModel->load($scrumteam_kurzbz);
|
||||
|
||||
@@ -52,9 +52,9 @@ class Scrumteam extends APIv1_Controller
|
||||
*/
|
||||
public function postScrumteam()
|
||||
{
|
||||
if($this->_validate($this->post()))
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if(isset($this->post()['scrumteam_kurzbz']))
|
||||
if (isset($this->post()['scrumteam_kurzbz']))
|
||||
{
|
||||
$result = $this->ScrumteamModel->update($this->post()['scrumteam_kurzbz'], $this->post());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user