Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk authored and github-actions[bot] committed Aug 2, 2024
1 parent 2f9a1ba commit 3ee7588
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Actions/ManagesSites.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function createSiteDeployKey($serverId, $siteId)
/**
* Destroy the deploy key on the site.
*
* @param mixed $serverId
* @param mixed $siteId
* @param mixed $serverId
* @param mixed $siteId
* @return void
*/
public function destroySiteDeployKey($serverId, $siteId)
Expand Down
5 changes: 1 addition & 4 deletions src/ForgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ class ForgeManager
* Create a new Forge manager instance.
*
* @param string $token
* @param \GuzzleHttp\Client|null $guzzle
*/
public function __construct($token, HttpClient $guzzle = null)
public function __construct($token, ?HttpClient $guzzle = null)
{
$this->forge = new Forge($token, $guzzle);
}

/**
* Dynamically pass methods to the Forge instance.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call(string $method, array $parameters)
Expand Down
2 changes: 1 addition & 1 deletion src/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function handleRequestError(ResponseInterface $response)
}

if ($response->getStatusCode() == 404) {
throw new NotFoundException();
throw new NotFoundException;
}

if ($response->getStatusCode() == 400) {
Expand Down
10 changes: 5 additions & 5 deletions tests/ForgeSDKTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function test_handling_failed_action_errors()

public function testRetryHandlesFalseResultFromClosure()
{
$requestMaker = new class()
$requestMaker = new class
{
use MakesHttpRequests;
};
Expand All @@ -110,7 +110,7 @@ public function testRetryHandlesFalseResultFromClosure()

public function testRetryHandlesNullResultFromClosure()
{
$requestMaker = new class()
$requestMaker = new class
{
use MakesHttpRequests;
};
Expand All @@ -127,7 +127,7 @@ public function testRetryHandlesNullResultFromClosure()

public function testRetryHandlesFalseyStringResultFromClosure()
{
$requestMaker = new class()
$requestMaker = new class
{
use MakesHttpRequests;
};
Expand All @@ -144,7 +144,7 @@ public function testRetryHandlesFalseyStringResultFromClosure()

public function testRetryHandlesFalseyNumerResultFromClosure()
{
$requestMaker = new class()
$requestMaker = new class
{
use MakesHttpRequests;
};
Expand All @@ -161,7 +161,7 @@ public function testRetryHandlesFalseyNumerResultFromClosure()

public function testRetryHandlesFalseyArrayResultFromClosure()
{
$requestMaker = new class()
$requestMaker = new class
{
use MakesHttpRequests;
};
Expand Down

0 comments on commit 3ee7588

Please sign in to comment.