Passed
Push — master ( 51b57c...68917c )
by Eric
01:45
created
src/LibrariesIO.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
         // Attempt the request
193 193
         try {
194 194
             return match($method) {
195
-                'get'    => $this->client->get($endpoint),    /** @phpstan-ignore-line **/
196
-                'post'   => $this->client->post($endpoint),   /** @phpstan-ignore-line **/
197
-                'put'    => $this->client->put($endpoint),    /** @phpstan-ignore-line **/
195
+                'get'    => $this->client->get($endpoint), /** @phpstan-ignore-line **/
196
+                'post'   => $this->client->post($endpoint), /** @phpstan-ignore-line **/
197
+                'put'    => $this->client->put($endpoint), /** @phpstan-ignore-line **/
198 198
                 'delete' => $this->client->delete($endpoint), /** @phpstan-ignore-line **/
199 199
                 default  => $this->client->get($endpoint)     /** @phpstan-ignore-line **/
200 200
             };
@@ -429,29 +429,29 @@  discard block
 block discarded – undo
429 429
     protected function endpointParameters(string $endpoint, string $subset): array
430 430
     {
431 431
         static $projectParameters = [
432
-            'contributors'           => ['format' => ':platform/:name/contributors'          , 'options' => ['platform', 'name']],
433
-            'dependencies'           => ['format' => ':platform/:name/:version/dependencies' , 'options' => ['platform', 'name', 'version']],
432
+            'contributors'           => ['format' => ':platform/:name/contributors', 'options' => ['platform', 'name']],
433
+            'dependencies'           => ['format' => ':platform/:name/:version/dependencies', 'options' => ['platform', 'name', 'version']],
434 434
             'dependent_repositories' => ['format' => ':platform/:name/dependent_repositories', 'options' => ['platform', 'name']],
435
-            'dependents'             => ['format' => ':platform/:name/dependents'            , 'options' => ['platform', 'name']],
436
-            'search'                 => ['format' => 'search'                                , 'options' => ['query', 'sort']],
437
-            'sourcerank'             => ['format' => ':platform/:name/sourcerank'            , 'options' => ['platform', 'name']],
438
-            'project'                => ['format' => ':platform/:name'                       , 'options' => ['platform', 'name']]
435
+            'dependents'             => ['format' => ':platform/:name/dependents', 'options' => ['platform', 'name']],
436
+            'search'                 => ['format' => 'search', 'options' => ['query', 'sort']],
437
+            'sourcerank'             => ['format' => ':platform/:name/sourcerank', 'options' => ['platform', 'name']],
438
+            'project'                => ['format' => ':platform/:name', 'options' => ['platform', 'name']]
439 439
         ];
440 440
 
441 441
         static $repositoryParameters = [
442 442
             'dependencies' => ['format' => 'github/:owner/:name/dependencies', 'options' => ['owner', 'name']],
443
-            'projects'     => ['format' => 'github/:owner/:name/projects'    , 'options' => ['owner', 'name']],
444
-            'repository'   => ['format' => 'github/:owner/:name'             , 'options' => ['owner', 'name']]
443
+            'projects'     => ['format' => 'github/:owner/:name/projects', 'options' => ['owner', 'name']],
444
+            'repository'   => ['format' => 'github/:owner/:name', 'options' => ['owner', 'name']]
445 445
         ];
446 446
 
447 447
         static $userParameters = [
448
-            'dependencies'             => ['format' => 'github/:login/dependencies'            , 'options' => ['login']],
449
-            'package_contributions'    => ['format' => 'github/:login/project-contributions'   , 'options' => ['login']],
450
-            'packages'                 => ['format' => 'github/:login/projects'                , 'options' => ['login']],
451
-            'repositories'             => ['format' => 'github/:login/repositories'            , 'options' => ['login']],
448
+            'dependencies'             => ['format' => 'github/:login/dependencies', 'options' => ['login']],
449
+            'package_contributions'    => ['format' => 'github/:login/project-contributions', 'options' => ['login']],
450
+            'packages'                 => ['format' => 'github/:login/projects', 'options' => ['login']],
451
+            'repositories'             => ['format' => 'github/:login/repositories', 'options' => ['login']],
452 452
             'repository_contributions' => ['format' => 'github/:login/repository-contributions', 'options' => ['login']],
453
-            'subscriptions'            => ['format' => 'subscriptions'                         , 'options' => []],
454
-            'user'                     => ['format' => 'github/:login'                         , 'options' => ['login']]
453
+            'subscriptions'            => ['format' => 'subscriptions', 'options' => []],
454
+            'user'                     => ['format' => 'github/:login', 'options' => ['login']]
455 455
         ];
456 456
 
457 457
         static $subscriptionParameters = [
Please login to merge, or discard this patch.