Passed
Branch master (552254)
by Andrii
02:04
created
Category
src/Services/LayerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
     {
176 176
         $propName = lcfirst($serviceName);
177 177
         if (empty($this->$propName)) {
178
-            $service = $this->container->make('Aosmak\Laravel\Layer\Sdk\Services\Subservices\\'. $serviceName);
178
+            $service = $this->container->make('Aosmak\Laravel\Layer\Sdk\Services\Subservices\\' . $serviceName);
179 179
             $service->setRequestService($this->requestService);
180 180
             $service->setConfig($this->config);
181 181
             $service->setClient($this->client);
Please login to merge, or discard this patch.
src/Models/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function isSuccessful(): bool
84 84
     {
85
-        return ($this->statusCode >= 200 && $this->statusCode <= 299)? true : false;
85
+        return ($this->statusCode >= 200 && $this->statusCode <= 299) ? true : false;
86 86
     }
87 87
 
88 88
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     private function obtainResponseContent(string $contents): array
110 110
     {
111 111
         if (strlen($contents) > 1) {
112
-            return is_array(json_decode($contents, 1))? json_decode($contents, 1): [];
112
+            return is_array(json_decode($contents, 1)) ? json_decode($contents, 1) : [];
113 113
         }
114 114
 
115 115
         return [];
Please login to merge, or discard this patch.
src/LayerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             __DIR__ . '/../config/layer.php' => config_path('layer.php')
22 22
         ], 'config');
23 23
 
24
-        $this->app->bind('Aosmak\Laravel\Layer\Sdk\Services\LayerServiceInterface', function ($app) {
24
+        $this->app->bind('Aosmak\Laravel\Layer\Sdk\Services\LayerServiceInterface', function($app) {
25 25
             $service = $app->make('Aosmak\Laravel\Layer\Sdk\Services\LayerService');
26 26
             $service->setConfig($app['config']['layer']);
27 27
 
Please login to merge, or discard this patch.