Skip to content

Commit

Permalink
Fix Code Style
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed Nov 5, 2024
1 parent f6299ae commit 6f10b1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,26 @@
class Configuration
{
protected string $base;

protected string $uri;

protected string $apiKey;

protected string $keyName;

protected array $headers;

protected bool $verify;

/**
* Constructor to initialize the configuration.
*
* @param string $base Base URL for Kong Admin
* @param string $uri URI for Kong Admin API
* @param string $apiKey API key for authentication
* @param string $keyName API key name for authentication
* @param array $headers Headers for requests
* @param bool $verify Whether to verify SSL certificates
* @param string $base Base URL for Kong Admin
* @param string $uri URI for Kong Admin API
* @param string $apiKey API key for authentication
* @param string $keyName API key name for authentication
* @param array $headers Headers for requests
* @param bool $verify Whether to verify SSL certificates
*/
public function __construct(
string $base,
Expand Down
2 changes: 1 addition & 1 deletion tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
});

it('throws an error when required parameters are missing', function () {
new Configuration();
new Configuration;
})->throws(TypeError::class);

0 comments on commit 6f10b1b

Please sign in to comment.