| @@ -44,11 +44,11 @@ | ||
| 44 | 44 | public function getIp(string $url) | 
| 45 | 45 |      { | 
| 46 | 46 | $domain = parse_url($url); | 
| 47 | -        if (empty($domain['host'])) { | |
| 47 | +        if (empty($domain[ 'host' ])) { | |
| 48 | 48 | return; | 
| 49 | 49 | } | 
| 50 | 50 | |
| 51 | - $ip = gethostbyname($domain['host']); | |
| 51 | + $ip = gethostbyname($domain[ 'host' ]); | |
| 52 | 52 | |
| 53 | 53 | return filter_var($ip, FILTER_VALIDATE_IP) ? $ip : null; | 
| 54 | 54 | } | 
| @@ -75,8 +75,7 @@ | ||
| 75 | 75 | $status = $dataObject->getHttpStatus(); | 
| 76 | 76 | |
| 77 | 77 | $response = $dataObject->error_code != 0 ? | 
| 78 | - ['message' => $dataObject->error_message] : | |
| 79 | - json_decode($dataObject->response, true); | |
| 78 | + [ 'message' => $dataObject->error_message ] : json_decode($dataObject->response, true); | |
| 80 | 79 | |
| 81 | 80 | $data = [ | 
| 82 | 81 | 'status' => $status, | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | $this->app->alias(Shodan::class, 'shodan'); | 
| 37 | 37 | |
| 38 | 38 | $this->app->bind( | 
| 39 | -            'shodan', function () { | |
| 39 | +            'shodan', function() { | |
| 40 | 40 | return new Shodan(); | 
| 41 | 41 | } | 
| 42 | 42 | ); | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | */ | 
| 50 | 50 | public function provides() | 
| 51 | 51 |      { | 
| 52 | - return ['shodan']; | |
| 52 | + return [ 'shodan' ]; | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 | /** | 
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | ); | 
| 68 | 68 | |
| 69 | 69 | // Registering package commands. | 
| 70 | - $this->commands(['shodan']); | |
| 70 | + $this->commands([ 'shodan' ]); | |
| 71 | 71 | } | 
| 72 | 72 | |
| 73 | 73 | /** | 
| @@ -80,8 +80,8 @@ discard block | ||
| 80 | 80 | */ | 
| 81 | 81 | protected function mergeConfigFrom($path, $key) | 
| 82 | 82 |      { | 
| 83 | - $config = $this->app['config']->get($key, []); | |
| 84 | - $this->app['config']->set($key, $this->mergeConfig($config, include $path)); | |
| 83 | + $config = $this->app[ 'config' ]->get($key, [ ]); | |
| 84 | + $this->app[ 'config' ]->set($key, $this->mergeConfig($config, include $path)); | |
| 85 | 85 | } | 
| 86 | 86 | |
| 87 | 87 | /** | 
| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 |              if (is_numeric($key)) { | 
| 106 | 106 | continue; | 
| 107 | 107 | } | 
| 108 | - $array[$key] = $this->mergeConfig($value, $merging[$key]); | |
| 108 | + $array[ $key ] = $this->mergeConfig($value, $merging[ $key ]); | |
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | 111 | return $array; |