@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Local config file path. |
| 37 | 37 | */ |
| 38 | - private const CONFIG_PATH = __DIR__.'/../config/amocrm-api.php'; |
|
| 38 | + private const CONFIG_PATH = __DIR__ . '/../config/amocrm-api.php'; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @var array List of services |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | private function registerRequestHandler() |
| 96 | 96 | { |
| 97 | - $this->app->singleton(RequestHandler::class, function ($app) { |
|
| 97 | + $this->app->singleton(RequestHandler::class, function($app) { |
|
| 98 | 98 | $request = new \linkprofit\AmoCRM\RequestHandler(); |
| 99 | 99 | $request->setSubdomain(config('amocrm-api.domain')); |
| 100 | 100 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | private function registerAuthorizationService() |
| 109 | 109 | { |
| 110 | - $this->app->singleton(AuthorizationService::class, function ($app) { |
|
| 110 | + $this->app->singleton(AuthorizationService::class, function($app) { |
|
| 111 | 111 | $request = $app->make(RequestHandler::class); |
| 112 | 112 | $connection = new \linkprofit\AmoCRM\entities\Authorization( |
| 113 | 113 | config('amocrm-api.login'), |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | private function registerServices() |
| 130 | 130 | { |
| 131 | 131 | foreach ($this->services as $service) { |
| 132 | - $this->app->bind($service, function ($app) use ($service) { |
|
| 132 | + $this->app->bind($service, function($app) use ($service) { |
|
| 133 | 133 | $request = $app->make(\linkprofit\AmoCRM\RequestHandler::class); |
| 134 | 134 | $authorization = $app->make(AuthorizationService::class); |
| 135 | 135 | $service = new $service($request); |
@@ -146,6 +146,6 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | public function provides() |
| 148 | 148 | { |
| 149 | - return [RequestHandler::class]; |
|
| 149 | + return [ RequestHandler::class ]; |
|
| 150 | 150 | } |
| 151 | 151 | } |