diff --git a/src/Illuminate/Translation/FileLoader.php b/src/Illuminate/Translation/FileLoader.php index dd7b4856cb50..062796ef976c 100755 --- a/src/Illuminate/Translation/FileLoader.php +++ b/src/Illuminate/Translation/FileLoader.php @@ -22,7 +22,7 @@ class FileLoader implements Loader protected $path; /** - * All of the paths of JSON files. + * All of the registered paths to JSON translation files. * * @var string */ @@ -155,23 +155,23 @@ public function addNamespace($namespace, $hint) } /** - * Get an array of all the registered namespaces. + * Add a new JSON path to the loader. * - * @return array + * @param string $path + * @return void */ - public function namespaces() + public function addJsonPath($path) { - return $this->hints; + $this->jsonPaths[] = $path; } /** - * Add a new JSON path to the loader. + * Get an array of all the registered namespaces. * - * @param string $path - * @return void + * @return array */ - public function addJsonPath($path) + public function namespaces() { - $this->jsonPaths[] = $path; + return $this->hints; } }