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