Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidDumperException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Geocoder\Laravel\Exceptions;

use Geocoder\Exception\Exception;
use Exception as BaseException;
use Geocoder\Exception\Exception;

/**
* Exception to indicate an invalidly specified dumper identifier when calling
Expand Down
8 changes: 4 additions & 4 deletions src/Facades/Geocoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
class Geocoder extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'geocoder';
Expand Down
11 changes: 6 additions & 5 deletions src/ProviderAndDumperAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* @license MIT License
*/

use Geocoder\ProviderAggregator;
use Geocoder\Geocoder;
use Geocoder\Dumper\GeoJson;
use Geocoder\Dumper\Gpx;
use Geocoder\Dumper\Kml;
use Geocoder\Dumper\Wkb;
use Geocoder\Dumper\Wkt;
use Geocoder\Dumper\GeoJson;
use Geocoder\Geocoder;
use Geocoder\Laravel\Exceptions\InvalidDumperException;
use Geocoder\ProviderAggregator;
use Illuminate\Support\Collection;

/**
Expand All @@ -37,8 +37,9 @@ public function all()
}

/**
* @param string
* @param $dumper
* @return Collection
* @throws InvalidDumperException
*/
public function dump($dumper)
{
Expand All @@ -50,7 +51,7 @@ public function dump($dumper)
'wkt' => Wkt::class,
]);

if (! $dumperClasses->has($dumper)) {
if (!$dumperClasses->has($dumper)) {
$errorMessage = implode('', [
"The dumper specified ('{$dumper}') is invalid. Valid dumpers ",
"are: geojson, gpx, kml, wkb, wkt.",
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/GeocoderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
use Geocoder\Laravel\Facades\Geocoder;
use Geocoder\Laravel\ProviderAndDumperAggregator;
use Geocoder\Provider\Chain;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\Collection;
use Illuminate\Support\ServiceProvider;
use Illuminate\Foundation\AliasLoader;
use ReflectionClass;

/**
Expand Down Expand Up @@ -60,7 +60,7 @@ public function register()
/**
* Instantiate the configured Providers, as well as the Chain Provider.
*
* @param Collection
* @param Collection $providers
* @return array
*/
private function getProviders(Collection $providers)
Expand All @@ -85,7 +85,7 @@ private function getProviders(Collection $providers)
*
* @param array
* @param string
* @return string
* @return array
*/
private function getArguments(array $arguments, $provider)
{
Expand Down