Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 16, 2017
1 parent 9a2ec2d commit 573f85c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Illuminate/Translation/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 573f85c

Please sign in to comment.