@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function boot() { |
| 31 | 31 | $this->publishes([ |
| 32 | - __DIR__ . '/../config/geoip.php' => config_path('geoip.php'), |
|
| 32 | + __DIR__.'/../config/geoip.php' => config_path('geoip.php'), |
|
| 33 | 33 | ]); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | private function setVendorConfig() { |
| 57 | 57 | $config_key = 'geoip'; |
| 58 | - $path = __DIR__ . '/../config/' . $config_key . '.php'; |
|
| 58 | + $path = __DIR__.'/../config/'.$config_key.'.php'; |
|
| 59 | 59 | |
| 60 | 60 | $vendor_config = require $path; |
| 61 | 61 | $config = $this->app['config']->get($config_key); |
@@ -86,11 +86,15 @@ discard block |
||
| 86 | 86 | $arrays = func_get_args(); |
| 87 | 87 | $base = array_shift($arrays); |
| 88 | 88 | |
| 89 | - if (!is_array($base)) $base = empty($base) ? array() : array($base); |
|
| 89 | + if (!is_array($base)) { |
|
| 90 | + $base = empty($base) ? array() : array($base); |
|
| 91 | + } |
|
| 90 | 92 | |
| 91 | 93 | foreach ($arrays as $append) { |
| 92 | 94 | |
| 93 | - if (!is_array($append)) $append = array($append); |
|
| 95 | + if (!is_array($append)) { |
|
| 96 | + $append = array($append); |
|
| 97 | + } |
|
| 94 | 98 | |
| 95 | 99 | foreach ($append as $key => $value) { |
| 96 | 100 | |
@@ -102,7 +106,9 @@ discard block |
||
| 102 | 106 | if (is_array($value) or is_array($base[$key])) { |
| 103 | 107 | $base[$key] = $this->array_merge_recursive_distinct($base[$key], $append[$key]); |
| 104 | 108 | } else if (is_numeric($key)) { |
| 105 | - if (!in_array($value, $base)) $base[] = $value; |
|
| 109 | + if (!in_array($value, $base)) { |
|
| 110 | + $base[] = $value; |
|
| 111 | + } |
|
| 106 | 112 | } else { |
| 107 | 113 | $base[$key] = $value; |
| 108 | 114 | } |