Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jun 3, 2024
1 parent e9e8548 commit 8d8185d
Show file tree
Hide file tree
Showing 21 changed files with 172 additions and 179 deletions.
22 changes: 12 additions & 10 deletions example/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

/**
* Function to retrieve persisted data for the example.
* @param string $key
*
* @param string $key
* @return null|string
*/
function getValue($key)
Expand All @@ -28,8 +29,9 @@ function getValue($key)

/**
* Function to persist some data for the example.
* @param string $key
* @param string $value
*
* @param string $key
* @param string $value
*/
function setValue($key, $value)
{
Expand All @@ -42,9 +44,9 @@ function setValue($key, $value)
* Function to authorize with Moneybird, this redirects to Moneybird login promt and retrieves authorization code
* to set up requests for oAuth tokens.
*
* @param string $redirectUrl
* @param string $clientId
* @param string $clientSecret
* @param string $redirectUrl
* @param string $clientId
* @param string $clientSecret
*/
function authorize($redirectUrl, $clientId, $clientSecret)
{
Expand All @@ -58,11 +60,11 @@ function authorize($redirectUrl, $clientId, $clientSecret)
/**
* Function to connect to Moneybird, this creates the client and automatically retrieves oAuth tokens if needed.
*
* @param string $redirectUrl
* @param string $clientId
* @param string $clientSecret
*
* @param string $redirectUrl
* @param string $clientId
* @param string $clientSecret
* @return \Picqer\Financials\Moneybird\Connection
*
* @throws Exception
*/
function connect($redirectUrl, $clientId, $clientSecret)
Expand Down
5 changes: 2 additions & 3 deletions src/Picqer/Financials/Moneybird/Actions/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ trait Attachment
*
* You can use fopen('/path/to/file', 'r') in $resource.
*
* @param string $filename The filename of the attachment
* @param resource $contents A StreamInterface/resource/string, @see http://docs.guzzlephp.org/en/stable/request-options.html?highlight=multipart#multipart
*
* @param string $filename The filename of the attachment
* @param resource $contents A StreamInterface/resource/string, @see http://docs.guzzlephp.org/en/stable/request-options.html?highlight=multipart#multipart
* @return void
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down
6 changes: 2 additions & 4 deletions src/Picqer/Financials/Moneybird/Actions/BaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ abstract protected function connection();
abstract protected function getEndpoint();

/**
* @param array $result
*
* @param array $result
* @return array
*
* @see \Picqer\Financials\Moneybird\Model::collectionFromResult()
Expand All @@ -30,8 +29,7 @@ abstract protected function collectionFromResult(array $result);
/**
* Create a new object with the response from the API.
*
* @param $response
*
* @param $response
* @return static
*
* @see \Picqer\Financials\Moneybird\Model::makeFromResponse()
Expand Down
5 changes: 3 additions & 2 deletions src/Picqer/Financials/Moneybird/Actions/Filterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ trait Filterable
use BaseTrait;

/**
* @param array $filters
* @param array $filters
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
*/
public function filter(array $filters)
Expand All @@ -27,7 +28,7 @@ public function filter(array $filters)
}

/**
* @param array $filters
* @param array $filters
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down
6 changes: 2 additions & 4 deletions src/Picqer/Financials/Moneybird/Actions/FindAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ trait FindAll
use BaseTrait;

/**
* @param array $params
*
* @param array $params
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand All @@ -24,8 +23,7 @@ public function get($params = [])
}

/**
* @param array $params
*
* @param array $params
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down
3 changes: 1 addition & 2 deletions src/Picqer/Financials/Moneybird/Actions/FindOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ trait FindOne
use BaseTrait;

/**
* @param string|int $id
*
* @param string|int $id
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down
3 changes: 2 additions & 1 deletion src/Picqer/Financials/Moneybird/Actions/Noteable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ trait Noteable
/**
* Add a note to the current object.
*
* @param Note $note
* @param Note $note
* @return $this
*
* @throws ApiException
*/
public function addNote(Note $note)
Expand Down
5 changes: 2 additions & 3 deletions src/Picqer/Financials/Moneybird/Actions/Synchronizable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ trait Synchronizable
use BaseTrait;

/**
* @param array $filters
*
* @param array $filters
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand All @@ -35,7 +34,7 @@ public function listVersions(array $filters = [])
}

/**
* @param array $ids
* @param array $ids
* @return mixed
*
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
Expand Down
Loading

0 comments on commit 8d8185d

Please sign in to comment.