From fe7bbf727834a748b04fcf5145b1137dd45ac4b7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 7 Dec 2016 09:28:47 -0600 Subject: [PATCH] change method name --- src/Illuminate/Translation/ArrayLoader.php | 20 +++++++++---------- src/Illuminate/Translation/FileLoader.php | 4 ++-- .../Translation/LoaderInterface.php | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Illuminate/Translation/ArrayLoader.php b/src/Illuminate/Translation/ArrayLoader.php index bcb665b08868..5e0b2d077b64 100644 --- a/src/Illuminate/Translation/ArrayLoader.php +++ b/src/Illuminate/Translation/ArrayLoader.php @@ -42,16 +42,6 @@ public function addNamespace($namespace, $hint) // } - /** - * Get array of all hints. - * - * @return array - */ - public function getHints() - { - return []; - } - /** * Add messages to the loader. * @@ -69,4 +59,14 @@ public function addMessages($locale, $group, array $messages, $namespace = null) return $this; } + + /** + * Get an array of all the registered namespaces. + * + * @return array + */ + public function namespaces() + { + return []; + } } diff --git a/src/Illuminate/Translation/FileLoader.php b/src/Illuminate/Translation/FileLoader.php index 7a8b3cc1a5fc..9d45c06a0508 100755 --- a/src/Illuminate/Translation/FileLoader.php +++ b/src/Illuminate/Translation/FileLoader.php @@ -146,11 +146,11 @@ public function addNamespace($namespace, $hint) } /** - * Get array of all hints. + * Get an array of all the registered namespaces. * * @return array */ - public function getHints() + public function namespaces() { return $this->hints; } diff --git a/src/Illuminate/Translation/LoaderInterface.php b/src/Illuminate/Translation/LoaderInterface.php index fff5a188e9dc..cbebebfc68e9 100755 --- a/src/Illuminate/Translation/LoaderInterface.php +++ b/src/Illuminate/Translation/LoaderInterface.php @@ -24,9 +24,9 @@ public function load($locale, $group, $namespace = null); public function addNamespace($namespace, $hint); /** - * Get array of all hints. + * Get an array of all the registered namespaces. * * @return array */ - public function getHints(); + public function namespaces(); }