| @@ -17,7 +17,7 @@ discard block | ||
| 17 | 17 | /** | 
| 18 | 18 | * @var array | 
| 19 | 19 | */ | 
| 20 | - private $exceptions = []; | |
| 20 | + private $exceptions = [ ]; | |
| 21 | 21 | |
| 22 | 22 | /** | 
| 23 | 23 | * ChainNoResult constructor. | 
| @@ -25,7 +25,7 @@ discard block | ||
| 25 | 25 | * @param string $message | 
| 26 | 26 | * @param array $exceptions Array of Exception instances. | 
| 27 | 27 | */ | 
| 28 | - public function __construct($message, array $exceptions = []) | |
| 28 | + public function __construct($message, array $exceptions = [ ]) | |
| 29 | 29 |      { | 
| 30 | 30 | $this->exceptions = $exceptions; | 
| 31 | 31 | |
| @@ -23,14 +23,14 @@ discard block | ||
| 23 | 23 | /** | 
| 24 | 24 | * @var Provider[] | 
| 25 | 25 | */ | 
| 26 | - private $providers = []; | |
| 26 | + private $providers = [ ]; | |
| 27 | 27 | |
| 28 | 28 | /** | 
| 29 | 29 | * Chain constructor. | 
| 30 | 30 | * | 
| 31 | 31 | * @param array $providers | 
| 32 | 32 | */ | 
| 33 | - public function __construct(array $providers = []) | |
| 33 | + public function __construct(array $providers = [ ]) | |
| 34 | 34 |      { | 
| 35 | 35 | $this->providers = $providers; | 
| 36 | 36 | } | 
| @@ -56,19 +56,19 @@ discard block | ||
| 56 | 56 | */ | 
| 57 | 57 | public function find($lat, $lng, $timestamp = null) | 
| 58 | 58 |      { | 
| 59 | - $exceptions = []; | |
| 59 | + $exceptions = [ ]; | |
| 60 | 60 | |
| 61 | 61 | /** @var Provider $provider */ | 
| 62 | 62 |          foreach ($this->providers as $provider) { | 
| 63 | 63 |              try { | 
| 64 | 64 | return $provider->find($lat, $lng, $timestamp); | 
| 65 | 65 |              } catch (RuntimeException $ex) { | 
| 66 | - $exceptions[] = $ex; | |
| 66 | + $exceptions[ ] = $ex; | |
| 67 | 67 | } | 
| 68 | 68 | } | 
| 69 | 69 | |
| 70 | 70 | throw new ChainNoResult( | 
| 71 | -            sprintf('No provider could find %f,%f%s', $lat, $lng, $timestamp ? ' @'.$timestamp : ''), | |
| 71 | +            sprintf('No provider could find %f,%f%s', $lat, $lng, $timestamp ? ' @' . $timestamp : ''), | |
| 72 | 72 | $exceptions | 
| 73 | 73 | ); | 
| 74 | 74 | } |