mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
Codesniffer compliant: if, for and while
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
require_once FCPATH.'include/authentication.class.php';
|
||||
require_once FCPATH.'include/AddonAuthentication.php';
|
||||
|
||||
@@ -38,7 +38,7 @@ class FHC_Auth
|
||||
public function basicAuthentication($username, $password)
|
||||
{
|
||||
$auth = new authentication();
|
||||
if($auth->checkpassword($username, $password))
|
||||
if ($auth->checkpassword($username, $password))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* FHC-Seed Library
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Format class
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* CodeIgniter Rest Controller
|
||||
@@ -1299,7 +1299,7 @@ abstract class REST_Controller extends CI_Controller {
|
||||
if (!empty($auth_override_class_method_http))
|
||||
{
|
||||
// check for wildcard flag for rules for classes
|
||||
if(!empty($auth_override_class_method_http[$this->router->class]['*'][$this->request->method]))
|
||||
if (!empty($auth_override_class_method_http[$this->router->class]['*'][$this->request->method]))
|
||||
{
|
||||
// None auth override found, prepare nothing but send back a TRUE override flag
|
||||
if ($auth_override_class_method_http[$this->router->class]['*'][$this->request->method] === 'none')
|
||||
@@ -1341,7 +1341,7 @@ abstract class REST_Controller extends CI_Controller {
|
||||
}
|
||||
|
||||
// Check to see if there's an override value set for the current class/method/HTTP-method being called
|
||||
if(!empty($auth_override_class_method_http[$this->router->class][$this->router->method][$this->request->method]))
|
||||
if (!empty($auth_override_class_method_http[$this->router->class][$this->router->method][$this->request->method]))
|
||||
{
|
||||
// None auth override found, prepare nothing but send back a TRUE override flag
|
||||
if ($auth_override_class_method_http[$this->router->class][$this->router->method][$this->request->method] === 'none')
|
||||
@@ -1911,7 +1911,7 @@ abstract class REST_Controller extends CI_Controller {
|
||||
*/
|
||||
private function _setUID($username)
|
||||
{
|
||||
if(!isset($this->_uid) && isset($username))
|
||||
if (!isset($this->_uid) && isset($username))
|
||||
{
|
||||
$this->_uid = $username;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ class Template
|
||||
}
|
||||
|
||||
// new widget
|
||||
if(!class_exists($class)) {
|
||||
if (!class_exists($class)) {
|
||||
// try both lowercase and capitalized versions
|
||||
foreach (array(ucfirst($class), strtolower($class)) as $class) {
|
||||
if (file_exists($path . $class . '.php')) {
|
||||
|
||||
Reference in New Issue
Block a user