| @@ -3,10 +3,10 @@ discard block | ||
| 3 | 3 | use Illuminate\Support\Facades\Route; | 
| 4 | 4 | |
| 5 | 5 |  if (config('electrum.web_interface.enabled', false)) { | 
| 6 | -    Route::prefix(config('electrum.web_interface.prefix', 'electrum'))->group(function () { | |
| 6 | +    Route::prefix(config('electrum.web_interface.prefix', 'electrum'))->group(function() { | |
| 7 | 7 |          Route::get('/', 'AraneaDev\Electrum\App\IndexController'); | 
| 8 | 8 | |
| 9 | -        Route::prefix('api')->group(function () { | |
| 9 | +        Route::prefix('api')->group(function() { | |
| 10 | 10 |              Route::get('status', 'AraneaDev\Electrum\App\Api\StatusController'); | 
| 11 | 11 | |
| 12 | 12 |              Route::get('history', 'AraneaDev\Electrum\App\Api\HistoryController@index'); | 
| @@ -21,7 +21,7 @@ discard block | ||
| 21 | 21 |              Route::get('addresses/{address}', 'AraneaDev\Electrum\App\Api\AddressController@check') | 
| 22 | 22 |                  ->where('address', '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$'); | 
| 23 | 23 | |
| 24 | -            Route::prefix('requests')->group(function () { | |
| 24 | +            Route::prefix('requests')->group(function() { | |
| 25 | 25 |                  Route::get('/', 'AraneaDev\Electrum\App\Api\RequestsController@index'); | 
| 26 | 26 |                  Route::get('{address}', 'AraneaDev\Electrum\App\Api\RequestsController@show') | 
| 27 | 27 |                      ->where('address', '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$'); | 
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 |          $this->app->make('AraneaDev\Electrum\App\IndexController'); | 
| 50 | 50 | |
| 51 | 51 | // Make the package's custom task scheduling kernel | 
| 52 | -        $this->app->singleton('araneadev.electrum.app.console.kernel', function ($app) { | |
| 52 | +        $this->app->singleton('araneadev.electrum.app.console.kernel', function($app) { | |
| 53 | 53 | $dispatcher = $app->make(Dispatcher::class); | 
| 54 | 54 | |
| 55 | 55 | return new Kernel($app, $dispatcher); | 
| @@ -48,7 +48,7 @@ | ||
| 48 | 48 |      { | 
| 49 | 49 |          $method = $this->argument('method'); | 
| 50 | 50 | |
| 51 | -        if (! method_exists($this, $method)) { | |
| 51 | +        if (!method_exists($this, $method)) { | |
| 52 | 52 | $this->info(json_encode($this->electrum->sendRequest($method, $this->get_params()))); | 
| 53 | 53 |          } else { | 
| 54 | 54 | $this->$method(); | 
| @@ -113,7 +113,9 @@ | ||
| 113 | 113 |      { | 
| 114 | 114 |          $response = $this->sendRequest('history'); | 
| 115 | 115 | $result = json_decode($response); | 
| 116 | - if (json_last_error() === 0) return $result; | |
| 116 | +        if (json_last_error() === 0) { | |
| 117 | + return $result; | |
| 118 | + } | |
| 117 | 119 | return $response; | 
| 118 | 120 | } | 
| 119 | 121 | |