From 5f5bf66c755ed7e61894026523109e992217302b Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Mon, 19 Oct 2015 13:26:50 -0400 Subject: [PATCH] Fix spacing style --- src/Aviat/AnimeClient/Config.php | 2 +- src/Aviat/AnimeClient/Controller.php | 12 ++++++------ src/Aviat/Ion/Type/ArrayType.php | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Aviat/AnimeClient/Config.php b/src/Aviat/AnimeClient/Config.php index 1c12c96e..1429660f 100644 --- a/src/Aviat/AnimeClient/Config.php +++ b/src/Aviat/AnimeClient/Config.php @@ -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); } diff --git a/src/Aviat/AnimeClient/Controller.php b/src/Aviat/AnimeClient/Controller.php index a4419e8d..6d81afcd 100644 --- a/src/Aviat/AnimeClient/Controller.php +++ b/src/Aviat/AnimeClient/Controller.php @@ -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 - ]);*/ + ]); } /** diff --git a/src/Aviat/Ion/Type/ArrayType.php b/src/Aviat/Ion/Type/ArrayType.php index 35a1fe8b..71dadabf 100644 --- a/src/Aviat/Ion/Type/ArrayType.php +++ b/src/Aviat/Ion/Type/ArrayType.php @@ -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)) {