From 30b6afb601bb12b8c35d41f1dcb10ba14fdc78c8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 9 Dec 2015 14:54:11 -0500 Subject: [PATCH] Some more minor code-style fixes --- build/update_header_comments.php | 20 +++++++++---------- .../AnimeClient/Controller/Collection.php | 8 ++++---- src/Aviat/Ion/Di/Container.php | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build/update_header_comments.php b/build/update_header_comments.php index 967e881a..1c3dba4b 100644 --- a/build/update_header_comments.php +++ b/build/update_header_comments.php @@ -13,19 +13,19 @@ $ion_file_patterns = [ if ( ! function_exists('glob_recursive')) { - // Does not support flag GLOB_BRACE + // Does not support flag GLOB_BRACE - function glob_recursive($pattern, $flags = 0) - { - $files = glob($pattern, $flags); + function glob_recursive($pattern, $flags = 0) + { + $files = glob($pattern, $flags); - foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) - { - $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags)); - } + foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) + { + $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags)); + } - return $files; - } + return $files; + } } function get_text_to_replace($tokens) diff --git a/src/Aviat/AnimeClient/Controller/Collection.php b/src/Aviat/AnimeClient/Controller/Collection.php index 1ed3e51e..efb5c67b 100644 --- a/src/Aviat/AnimeClient/Controller/Collection.php +++ b/src/Aviat/AnimeClient/Controller/Collection.php @@ -126,12 +126,12 @@ class Collection extends BaseController { $data = $this->request->post->get(); if ( ! array_key_exists('hummingbird_id', $data)) { - $this->redirect("collection/view", 303, "anime"); + $this->redirect("collection/view", 303); } $this->anime_collection_model->update($data); - $this->redirect("collection/view", 303, "anime"); + $this->redirect("collection/view", 303); } /** @@ -144,12 +144,12 @@ class Collection extends BaseController { $data = $this->request->post->get(); if ( ! array_key_exists('id', $data)) { - $this->redirect("collection/view", 303, "anime"); + $this->redirect("collection/view", 303); } $this->anime_collection_model->add($data); - $this->redirect("collection/view", 303, "anime"); + $this->redirect("collection/view", 303); } } // End of CollectionController.php \ No newline at end of file diff --git a/src/Aviat/Ion/Di/Container.php b/src/Aviat/Ion/Di/Container.php index 68a4c1e8..547288d8 100644 --- a/src/Aviat/Ion/Di/Container.php +++ b/src/Aviat/Ion/Di/Container.php @@ -22,14 +22,14 @@ class Container implements ContainerInterface { /** * Array with class instances * - * @var ArrayObject + * @var array */ protected $container = []; /** * Map of logger instances * - * @var ArrayObject + * @var array */ protected $loggers = [];