Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
3 changed files with 11 additions and 11 deletions
Showing only changes of commit 95ecc9e9b8 - Show all commits

View File

@ -80,7 +80,7 @@ class Config {
{ {
$this->map->set_deep_key($key, $value); $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); $this->map->set($key, $value);
} }

View File

@ -4,10 +4,10 @@
*/ */
namespace Aviat\AnimeClient; namespace Aviat\AnimeClient;
use \Aviat\Ion\Di\ContainerInterface; use Aviat\Ion\Di\ContainerInterface;
use \Aviat\Ion\View\HttpView; use Aviat\Ion\View\HttpView;
use \Aviat\Ion\View\HtmlView; use Aviat\Ion\View\HtmlView;
use \Aviat\Ion\View\JsonView; use Aviat\Ion\View\JsonView;
/** /**
* Controller base, defines output methods * Controller base, defines output methods
@ -202,7 +202,7 @@ class Controller {
{ {
$message = ""; $message = "";
/*if ($status != "") if ($status != "")
{ {
$message = $this->show_message('error', $status); $message = $this->show_message('error', $status);
} }
@ -210,7 +210,7 @@ class Controller {
$this->outputHTML('login', [ $this->outputHTML('login', [
'title' => 'Api login', 'title' => 'Api login',
'message' => $message 'message' => $message
]);*/ ]);
} }
/** /**

View File

@ -138,7 +138,7 @@ class ArrayType {
* @param bool $strict * @param bool $strict
* @return false|integer|string * @return false|integer|string
*/ */
public function search($value, $strict=FALSE) public function search($value, $strict = FALSE)
{ {
return array_search($value, $this->arr, $strict); return array_search($value, $this->arr, $strict);
} }
@ -150,7 +150,7 @@ class ArrayType {
* @param bool $strict * @param bool $strict
* @return bool * @return bool
*/ */
public function has($value, $strict=FALSE) public function has($value, $strict = FALSE)
{ {
return in_array($value, $this->arr, $strict); return in_array($value, $this->arr, $strict);
} }
@ -201,7 +201,7 @@ class ArrayType {
{ {
$pos =& $this->arr; $pos =& $this->arr;
foreach($key as $level) foreach ($key as $level)
{ {
if (empty($pos) || ! is_array($pos)) if (empty($pos) || ! is_array($pos))
{ {
@ -228,7 +228,7 @@ class ArrayType {
// Iterate through the levels of the array, // Iterate through the levels of the array,
// create the levels if they don't exist // create the levels if they don't exist
foreach($key as $level) foreach ($key as $level)
{ {
if ( ! is_array($pos) && empty($pos)) if ( ! is_array($pos) && empty($pos))
{ {