@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function insert($feature) |
44 | 44 | { |
45 | - if (! $this->feature_id) { |
|
45 | + if (!$this->feature_id) { |
|
46 | 46 | throw new RunTimeException('Feature ID required'); |
47 | 47 | } |
48 | 48 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function get() |
62 | 62 | { |
63 | - if (! $this->feature_id) { |
|
63 | + if (!$this->feature_id) { |
|
64 | 64 | throw new RunTimeException('Feature ID required'); |
65 | 65 | } |
66 | 66 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function delete() |
80 | 80 | { |
81 | - if (! $this->feature_id) { |
|
81 | + if (!$this->feature_id) { |
|
82 | 82 | throw new RunTimeException('Feature ID required'); |
83 | 83 | } |
84 | 84 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $segments[] = $id; |
26 | 26 | } |
27 | 27 | |
28 | - if (! empty($options)) { |
|
28 | + if (!empty($options)) { |
|
29 | 29 | $segments = array_merge($segments, $options); |
30 | 30 | } |
31 | 31 |
@@ -9,15 +9,15 @@ |
||
9 | 9 | public function boot() |
10 | 10 | { |
11 | 11 | $this->publishes([ |
12 | - __DIR__.'/../config/laravel-mapbox.php' => config_path('laravel-mapbox.php'), |
|
12 | + __DIR__ . '/../config/laravel-mapbox.php' => config_path('laravel-mapbox.php'), |
|
13 | 13 | ]); |
14 | 14 | } |
15 | 15 | |
16 | 16 | public function register() |
17 | 17 | { |
18 | - $this->mergeConfigFrom(__DIR__.'/../config/laravel-mapbox.php', 'laravel-mapbox'); |
|
18 | + $this->mergeConfigFrom(__DIR__ . '/../config/laravel-mapbox.php', 'laravel-mapbox'); |
|
19 | 19 | |
20 | - $this->app->singleton(Mapbox::class, function () { |
|
20 | + $this->app->singleton(Mapbox::class, function() { |
|
21 | 21 | return new Mapbox(config('laravel-mapbox')); |
22 | 22 | }); |
23 | 23 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function get() |
51 | 51 | { |
52 | - if (! $this->dataset_id) { |
|
52 | + if (!$this->dataset_id) { |
|
53 | 53 | throw new RunTimeException('Dataset ID required'); |
54 | 54 | } |
55 | 55 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function update(array $data) |
67 | 67 | { |
68 | - if (! $this->dataset_id) { |
|
68 | + if (!$this->dataset_id) { |
|
69 | 69 | throw new RunTimeException('Dataset ID required'); |
70 | 70 | } |
71 | 71 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function delete() |
82 | 82 | { |
83 | - if (! $this->dataset_id) { |
|
83 | + if (!$this->dataset_id) { |
|
84 | 84 | throw new RunTimeException('Dataset ID required'); |
85 | 85 | } |
86 | 86 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function features(string $feature_id = null) |
97 | 97 | { |
98 | - if (! $this->dataset_id) { |
|
98 | + if (!$this->dataset_id) { |
|
99 | 99 | throw new RunTimeException('Dataset ID required'); |
100 | 100 | } |
101 | 101 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function delete() |
39 | 39 | { |
40 | - if (! $this->tileset) { |
|
40 | + if (!$this->tileset) { |
|
41 | 41 | throw new RunTimeException('Tileset name required'); |
42 | 42 | } |
43 | 43 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function features(string $dataset_id, string $feature_id = null) |
49 | 49 | { |
50 | - if (! $dataset_id) { |
|
50 | + if (!$dataset_id) { |
|
51 | 51 | throw new RunTimeException('Dataset ID required'); |
52 | 52 | } |
53 | 53 |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function create(array $data = []) |
51 | 51 | { |
52 | - if (! isset($data['tileset'])) { |
|
52 | + if (!isset($data['tileset'])) { |
|
53 | 53 | throw new RunTimeException('Tileset required'); |
54 | 54 | } |
55 | 55 | |
56 | - if (! isset($data['url']) && ! isset($data['dataset'])) { |
|
56 | + if (!isset($data['url']) && !isset($data['dataset'])) { |
|
57 | 57 | throw new RunTimeException('Dataset or URL required'); |
58 | 58 | } |
59 | 59 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function get() |
81 | 81 | { |
82 | - if (! $this->upload_id) { |
|
82 | + if (!$this->upload_id) { |
|
83 | 83 | throw new RunTimeException('Upload ID required'); |
84 | 84 | } |
85 | 85 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function delete() |
96 | 96 | { |
97 | - if (! $this->upload_id) { |
|
97 | + if (!$this->upload_id) { |
|
98 | 98 | throw new RunTimeException('Upload ID required'); |
99 | 99 | } |
100 | 100 |