@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace PragmaRX\Countries\Package\Services; |
| 4 | 4 | |
| 5 | -use PragmaRX\Countries\Update\Updater; |
|
| 6 | 5 | use IlluminateAgnostic\Str\Support\Str; |
| 7 | -use PragmaRX\Countries\Package\Support\Base; |
|
| 8 | 6 | use PragmaRX\Coollection\Package\Coollection; |
| 9 | 7 | use PragmaRX\Countries\Package\Data\Repository; |
| 10 | 8 | use PragmaRX\Countries\Package\Services\Cache\Service as Cache; |
| 9 | +use PragmaRX\Countries\Package\Support\Base; |
|
| 10 | +use PragmaRX\Countries\Update\Updater; |
|
| 11 | 11 | |
| 12 | 12 | class Countries extends Base |
| 13 | 13 | { |
@@ -106,14 +106,14 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $instance = $this; |
| 108 | 108 | |
| 109 | - Coollection::macro('hydrate', function ($elements = null) use ($instance) { |
|
| 109 | + Coollection::macro('hydrate', function($elements = null) use ($instance) { |
|
| 110 | 110 | return $instance->hydrate($this, $elements); |
| 111 | 111 | }); |
| 112 | 112 | |
| 113 | 113 | foreach (Hydrator::HYDRATORS as $hydrator) { |
| 114 | 114 | $hydrator = 'hydrate'.Str::studly($hydrator); |
| 115 | 115 | |
| 116 | - Coollection::macro($hydrator, function () use ($hydrator, $instance) { |
|
| 116 | + Coollection::macro($hydrator, function() use ($hydrator, $instance) { |
|
| 117 | 117 | return $instance->getRepository()->getHydrator()->{$hydrator}($this); |
| 118 | 118 | }); |
| 119 | 119 | } |
@@ -179,8 +179,8 @@ discard block |
||
| 179 | 179 | */ |
| 180 | 180 | protected function instantiateCache(Cache $cache = null) |
| 181 | 181 | { |
| 182 | - if (\is_null($this->cache) || ! \is_null($cache)) { |
|
| 183 | - $this->cache = ! \is_null($cache) |
|
| 182 | + if (\is_null($this->cache) || !\is_null($cache)) { |
|
| 183 | + $this->cache = !\is_null($cache) |
|
| 184 | 184 | ? $cache |
| 185 | 185 | : new Cache($this->config); |
| 186 | 186 | } |
@@ -196,8 +196,8 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | protected function instantiateConfig($config = null) |
| 198 | 198 | { |
| 199 | - if (\is_null($this->config) || ! \is_null($config)) { |
|
| 200 | - $this->config = ! \is_null($config) |
|
| 199 | + if (\is_null($this->config) || !\is_null($config)) { |
|
| 200 | + $this->config = !\is_null($config) |
|
| 201 | 201 | ? $config |
| 202 | 202 | : new Config($this->helper); |
| 203 | 203 | } |
@@ -228,8 +228,8 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | protected function instantiateHydrator(Hydrator $hydrator = null) |
| 230 | 230 | { |
| 231 | - if (\is_null($this->hydrator) || ! \is_null($hydrator)) { |
|
| 232 | - $this->hydrator = ! \is_null($hydrator) |
|
| 231 | + if (\is_null($this->hydrator) || !\is_null($hydrator)) { |
|
| 232 | + $this->hydrator = !\is_null($hydrator) |
|
| 233 | 233 | ? $hydrator |
| 234 | 234 | : new Hydrator($this->config); |
| 235 | 235 | } |