Skip to content

Commit c2d810c

Browse files
stephangroenStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 41163ee commit c2d810c

21 files changed

+171
-174
lines changed

example/example.php

+12-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
/**
1515
* Function to retrieve persisted data for the example.
16-
* @param string $key
16+
*
17+
* @param string $key
1718
* @return null|string
1819
*/
1920
function getValue($key)
@@ -28,8 +29,9 @@ function getValue($key)
2829

2930
/**
3031
* Function to persist some data for the example.
31-
* @param string $key
32-
* @param string $value
32+
*
33+
* @param string $key
34+
* @param string $value
3335
*/
3436
function setValue($key, $value)
3537
{
@@ -42,9 +44,9 @@ function setValue($key, $value)
4244
* Function to authorize with Moneybird, this redirects to Moneybird login promt and retrieves authorization code
4345
* to set up requests for oAuth tokens.
4446
*
45-
* @param string $redirectUrl
46-
* @param string $clientId
47-
* @param string $clientSecret
47+
* @param string $redirectUrl
48+
* @param string $clientId
49+
* @param string $clientSecret
4850
*/
4951
function authorize($redirectUrl, $clientId, $clientSecret)
5052
{
@@ -58,11 +60,11 @@ function authorize($redirectUrl, $clientId, $clientSecret)
5860
/**
5961
* Function to connect to Moneybird, this creates the client and automatically retrieves oAuth tokens if needed.
6062
*
61-
* @param string $redirectUrl
62-
* @param string $clientId
63-
* @param string $clientSecret
64-
*
63+
* @param string $redirectUrl
64+
* @param string $clientId
65+
* @param string $clientSecret
6566
* @return \Picqer\Financials\Moneybird\Connection
67+
*
6668
* @throws Exception
6769
*/
6870
function connect($redirectUrl, $clientId, $clientSecret)

src/Picqer/Financials/Moneybird/Actions/Attachment.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ trait Attachment
1818
*
1919
* You can use fopen('/path/to/file', 'r') in $resource.
2020
*
21-
* @param string $filename The filename of the attachment
22-
* @param resource $contents A StreamInterface/resource/string, @see http://docs.guzzlephp.org/en/stable/request-options.html?highlight=multipart#multipart
23-
*
21+
* @param string $filename The filename of the attachment
22+
* @param resource $contents A StreamInterface/resource/string, @see http://docs.guzzlephp.org/en/stable/request-options.html?highlight=multipart#multipart
2423
* @return void
2524
*
2625
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException

src/Picqer/Financials/Moneybird/Actions/BaseTrait.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ abstract protected function connection();
1919
abstract protected function getEndpoint();
2020

2121
/**
22-
* @param array $result
23-
*
22+
* @param array $result
2423
* @return array
2524
*
2625
* @see \Picqer\Financials\Moneybird\Model::collectionFromResult()
@@ -31,7 +30,6 @@ abstract protected function collectionFromResult(array $result);
3130
* Create a new object with the response from the API.
3231
*
3332
* @param $response
34-
*
3533
* @return static
3634
*
3735
* @see \Picqer\Financials\Moneybird\Model::makeFromResponse()

src/Picqer/Financials/Moneybird/Actions/Filterable.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ trait Filterable
1010
use BaseTrait;
1111

1212
/**
13-
* @param array $filters
13+
* @param array $filters
1414
* @return mixed
15+
*
1516
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
1617
*/
1718
public function filter(array $filters)
@@ -27,7 +28,7 @@ public function filter(array $filters)
2728
}
2829

2930
/**
30-
* @param array $filters
31+
* @param array $filters
3132
* @return mixed
3233
*
3334
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException

src/Picqer/Financials/Moneybird/Actions/FindAll.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ trait FindAll
1010
use BaseTrait;
1111

1212
/**
13-
* @param array $params
14-
*
13+
* @param array $params
1514
* @return mixed
1615
*
1716
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
@@ -24,8 +23,7 @@ public function get($params = [])
2423
}
2524

2625
/**
27-
* @param array $params
28-
*
26+
* @param array $params
2927
* @return mixed
3028
*
3129
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException

src/Picqer/Financials/Moneybird/Actions/FindOne.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ trait FindOne
1010
use BaseTrait;
1111

1212
/**
13-
* @param string|int $id
14-
*
13+
* @param string|int $id
1514
* @return mixed
1615
*
1716
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException

src/Picqer/Financials/Moneybird/Actions/Noteable.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ trait Noteable
1515
/**
1616
* Add a note to the current object.
1717
*
18-
* @param Note $note
18+
* @param Note $note
1919
* @return $this
20+
*
2021
* @throws ApiException
2122
*/
2223
public function addNote(Note $note)

src/Picqer/Financials/Moneybird/Actions/Synchronizable.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ trait Synchronizable
1010
use BaseTrait;
1111

1212
/**
13-
* @param array $filters
14-
*
13+
* @param array $filters
1514
* @return mixed
1615
*
1716
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException
@@ -35,7 +34,7 @@ public function listVersions(array $filters = [])
3534
}
3635

3736
/**
38-
* @param array $ids
37+
* @param array $ids
3938
* @return mixed
4039
*
4140
* @throws \Picqer\Financials\Moneybird\Exceptions\ApiException

0 commit comments

Comments
 (0)