From 25981afeef68686bcfcdd0a5d61d5a22ecb6b8ab Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Fri, 9 Oct 2015 18:55:15 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- src/Aviat/AnimeClient/MenuGenerator.php | 6 +++--- src/Aviat/AnimeClient/RoutingBase.php | 2 +- src/Aviat/Ion/Type/ArrayType.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Aviat/AnimeClient/MenuGenerator.php b/src/Aviat/AnimeClient/MenuGenerator.php index 8268c766..cbe2426a 100644 --- a/src/Aviat/AnimeClient/MenuGenerator.php +++ b/src/Aviat/AnimeClient/MenuGenerator.php @@ -70,8 +70,8 @@ class MenuGenerator extends UrlGenerator { $parsed[$name] = []; foreach ($menu['items'] as $path_name => $partial_path) { - $title = (string) $this->string($path_name)->humanize()->titleize(); - $parsed[$name][$title] = (string) $this->string($menu['route_prefix'])->append($partial_path); + $title = (string)$this->string($path_name)->humanize()->titleize(); + $parsed[$name][$title] = (string)$this->string($menu['route_prefix'])->append($partial_path); } } @@ -96,7 +96,7 @@ class MenuGenerator extends UrlGenerator { $menu_config = $parsed_config[$menu]; - foreach($menu_config as $title => $path) + foreach ($menu_config as $title => $path) { $selected = $this->string($path)->contains($this->path()); $link = $this->helper->a($this->url($path), $title); diff --git a/src/Aviat/AnimeClient/RoutingBase.php b/src/Aviat/AnimeClient/RoutingBase.php index 7a5742c5..e3cc2a07 100644 --- a/src/Aviat/AnimeClient/RoutingBase.php +++ b/src/Aviat/AnimeClient/RoutingBase.php @@ -74,7 +74,7 @@ class RoutingBase { ->trimRight('/') ->ensureLeft('/'); - return (string) $cleaned_path; + return (string)$cleaned_path; } /** diff --git a/src/Aviat/Ion/Type/ArrayType.php b/src/Aviat/Ion/Type/ArrayType.php index 09bfd4c7..f918b6bd 100644 --- a/src/Aviat/Ion/Type/ArrayType.php +++ b/src/Aviat/Ion/Type/ArrayType.php @@ -93,6 +93,7 @@ class ArrayType { /** * Does the passed key exist in the current array? * + * @param string $key * @return bool */ public function has_key($key)