Version 5.1 - All the GraphQL #32
@ -80,7 +80,7 @@ class Config {
|
||||
{
|
||||
$this->map->set_deep_key($key, $value);
|
||||
}
|
||||
else if(is_scalar($key) && ! empty($key))
|
||||
else if (is_scalar($key) && ! empty($key))
|
||||
{
|
||||
$this->map->set($key, $value);
|
||||
}
|
||||
|
@ -4,10 +4,10 @@
|
||||
*/
|
||||
namespace Aviat\AnimeClient;
|
||||
|
||||
use \Aviat\Ion\Di\ContainerInterface;
|
||||
use \Aviat\Ion\View\HttpView;
|
||||
use \Aviat\Ion\View\HtmlView;
|
||||
use \Aviat\Ion\View\JsonView;
|
||||
use Aviat\Ion\Di\ContainerInterface;
|
||||
use Aviat\Ion\View\HttpView;
|
||||
use Aviat\Ion\View\HtmlView;
|
||||
use Aviat\Ion\View\JsonView;
|
||||
|
||||
/**
|
||||
* Controller base, defines output methods
|
||||
@ -202,7 +202,7 @@ class Controller {
|
||||
{
|
||||
$message = "";
|
||||
|
||||
/*if ($status != "")
|
||||
if ($status != "")
|
||||
{
|
||||
$message = $this->show_message('error', $status);
|
||||
}
|
||||
@ -210,7 +210,7 @@ class Controller {
|
||||
$this->outputHTML('login', [
|
||||
'title' => 'Api login',
|
||||
'message' => $message
|
||||
]);*/
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -138,7 +138,7 @@ class ArrayType {
|
||||
* @param bool $strict
|
||||
* @return false|integer|string
|
||||
*/
|
||||
public function search($value, $strict=FALSE)
|
||||
public function search($value, $strict = FALSE)
|
||||
{
|
||||
return array_search($value, $this->arr, $strict);
|
||||
}
|
||||
@ -150,7 +150,7 @@ class ArrayType {
|
||||
* @param bool $strict
|
||||
* @return bool
|
||||
*/
|
||||
public function has($value, $strict=FALSE)
|
||||
public function has($value, $strict = FALSE)
|
||||
{
|
||||
return in_array($value, $this->arr, $strict);
|
||||
}
|
||||
@ -201,7 +201,7 @@ class ArrayType {
|
||||
{
|
||||
$pos =& $this->arr;
|
||||
|
||||
foreach($key as $level)
|
||||
foreach ($key as $level)
|
||||
{
|
||||
if (empty($pos) || ! is_array($pos))
|
||||
{
|
||||
@ -228,7 +228,7 @@ class ArrayType {
|
||||
|
||||
// Iterate through the levels of the array,
|
||||
// create the levels if they don't exist
|
||||
foreach($key as $level)
|
||||
foreach ($key as $level)
|
||||
{
|
||||
if ( ! is_array($pos) && empty($pos))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user