Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d2002c2

Browse files
ahinkleStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 73b5739 commit d2002c2

File tree

13 files changed

+39
-58
lines changed

13 files changed

+39
-58
lines changed

src/Api/AbstractApi.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ protected function constructRequest()
5050
/**
5151
* Send a GET request with query parameters.
5252
*
53-
* @param string $path
54-
* @param string $parameters
55-
*
53+
* @param string $path
54+
* @param string $parameters
5655
* @return \Illuminate\Http\Client\Response
5756
*/
5857
protected function get($path, $parameters = [])
@@ -64,9 +63,8 @@ protected function get($path, $parameters = [])
6463
/**
6564
* Send a POST request with query parameters.
6665
*
67-
* @param string $path
68-
* @param string $parameters
69-
*
66+
* @param string $path
67+
* @param string $parameters
7068
* @return \Illuminate\Http\Client\Response
7169
*/
7270
protected function post($path, $parameters = [])
@@ -79,8 +77,7 @@ protected function post($path, $parameters = [])
7977
* Send a PUT request.
8078
*
8179
* @param $path
82-
* @param array $parameters
83-
*
80+
* @param array $parameters
8481
* @return \Illuminate\Http\Client\Response|void
8582
*/
8683
protected function put($path, $parameters = [])
@@ -93,8 +90,7 @@ protected function put($path, $parameters = [])
9390
* Send a DELETE request.
9491
*
9592
* @param $path
96-
* @param array $parameters
97-
*
93+
* @param array $parameters
9894
* @return \Illuminate\Http\Client\Response|void
9995
*/
10096
protected function delete($path, $parameters = [])
@@ -106,8 +102,9 @@ protected function delete($path, $parameters = [])
106102
/**
107103
* Check for any type of invalid API Responses.
108104
*
109-
* @param \Illuminate\Http\Client\Response $response
105+
* @param \Illuminate\Http\Client\Response $response
110106
* @return void
107+
*
111108
* @throws \Exception
112109
*/
113110
protected function checkExceptions($response, $endpoint, $parameters)
@@ -129,6 +126,7 @@ protected function checkExceptions($response, $endpoint, $parameters)
129126
* Validates the usage of the store code as needed.
130127
*
131128
* @return void
129+
*
132130
* @throws \Exception
133131
*/
134132
protected function validateSingleStoreCode()

src/Api/CartItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function addItem($quoteId, $sku, $quantity)
4040
/**
4141
* Update the specified cart item.
4242
*
43-
* @param int $itemId
43+
* @param int $itemId
4444
* @param array $body
4545
* @return array
4646
*/

src/Api/Categories.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ class Categories extends AbstractApi
77
/**
88
* The list of categories.
99
*
10-
* @param int $pageSize
11-
* @param int $currentPage
12-
*
13-
* @return array
10+
* @param int $pageSize
11+
* @param int $currentPage
12+
* @return array
1413
*/
1514
public function all($pageSize = 50, $currentPage = 1)
1615
{
@@ -23,8 +22,7 @@ public function all($pageSize = 50, $currentPage = 1)
2322
/**
2423
* Get products assigned to category.
2524
*
26-
* @param int $categoryId
27-
*
25+
* @param int $categoryId
2826
* @return array
2927
*/
3028
public function products($categoryId)

src/Api/Custom.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Custom extends AbstractApi
1616
/**
1717
* Custom constructor.
1818
*
19-
* @param string $endpoint
19+
* @param string $endpoint
2020
*/
2121
public function __construct(string $endpoint, Magento $magento)
2222
{
@@ -28,8 +28,8 @@ public function __construct(string $endpoint, Magento $magento)
2828
/**
2929
* Dynamic call to passthrough.
3030
*
31-
* @param string $method
32-
* @param array $args
31+
* @param string $method
32+
* @param array $args
3333
* @return mixed
3434
*/
3535
public function __call($method, $args)

src/Api/CustomerGroups.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public function createGroup($customerGroupRepositoryV1SavePostBody = [])
5555
* @param int $pageSize
5656
* @param int $currentPage
5757
* @param array $filters
58-
*
5958
* @return array
6059
*/
6160
public function search($pageSize = 50, $currentPage = 1, $filters = [])

src/Api/Customers.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ class Customers extends AbstractApi
1010
* @param int $pageSize
1111
* @param int $currentPage
1212
* @param array $filters
13-
*
14-
* @return array
13+
* @return array
1514
*/
1615
public function all($pageSize = 50, $currentPage = 1, $filters = [])
1716
{
@@ -35,9 +34,9 @@ public function create($body)
3534
/**
3635
* Send an email to the customer with a password reset link.
3736
*
38-
* @param string $email
39-
* @param string $template
40-
* @param id $websiteId
37+
* @param string $email
38+
* @param string $template
39+
* @param id $websiteId
4140
* @return array
4241
*/
4342
public function password($email, $template, $websiteId)

src/Api/GuestCarts.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function addItem($cartId, $sku, $quantity)
5757
* Add/update the specified cart item.
5858
*
5959
* @param string $cartId
60-
* @param int $itemId
61-
* @param array $body
60+
* @param int $itemId
61+
* @param array $body
6262
* @return array
6363
*/
6464
public function editItem($cartId, $itemId, $body = [])
@@ -79,7 +79,7 @@ public function totals($cartId)
7979
/**
8080
* Estimate shipping by address and return list of available shipping methods.
8181
*
82-
* @param string $cartId
82+
* @param string $cartId
8383
* @param array $body
8484
* @return array
8585
*/
@@ -91,7 +91,7 @@ public function estimateShippingMethods($cartId, $body = [])
9191
/**
9292
* Calculate quote totals based on address and shipping method.
9393
*
94-
* @param string $cartId
94+
* @param string $cartId
9595
* @param array $body
9696
* @return array
9797
*/
@@ -103,7 +103,7 @@ public function totalsInformation($cartId, $body = [])
103103
/**
104104
* Save the total shipping information.
105105
*
106-
* @param string $cartId
106+
* @param string $cartId
107107
* @param array $body
108108
* @return array
109109
*/
@@ -115,7 +115,7 @@ public function shippingInformation($cartId, $body = [])
115115
/**
116116
* List available payment methods for a specified shopping cart. This call returns an array of objects, but detailed information about each object’s attributes might not be included.
117117
*
118-
* @param string $cartId
118+
* @param string $cartId
119119
* @return array
120120
*/
121121
public function paymentMethods($cartId)
@@ -126,7 +126,7 @@ public function paymentMethods($cartId)
126126
/**
127127
* Set payment information and place order for a specified cart.
128128
*
129-
* @param string $cartId
129+
* @param string $cartId
130130
* @param array $body
131131
* @return array
132132
*/
@@ -172,7 +172,7 @@ public function removeCoupons($cartId)
172172
/**
173173
* Assign a specified customer to a specified shopping cart.
174174
*
175-
* @param string $cartId
175+
* @param string $cartId
176176
* @param int $customerId
177177
* @param int $storeId
178178
* @return array

src/Api/ProductAttributes.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ public function show($attribute)
1818
/**
1919
* The list of Product Attributes.
2020
*
21-
* @param int $pageSize
22-
* @param int $currentPage
23-
*
24-
* @return array
21+
* @param int $pageSize
22+
* @param int $currentPage
23+
* @return array
2524
*/
2625
public function all($pageSize = 50, $currentPage = 1)
2726
{

src/Api/Products.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ class Products extends AbstractApi
77
/**
88
* The list of Products.
99
*
10-
* @param int $pageSize
11-
* @param int $currentPage
12-
*
13-
* @return array
10+
* @param int $pageSize
11+
* @param int $currentPage
12+
* @return array
1413
*/
1514
public function all($pageSize = 50, $currentPage = 1, $filters = [])
1615
{
@@ -23,8 +22,7 @@ public function all($pageSize = 50, $currentPage = 1, $filters = [])
2322
/**
2423
* Get info about product by product SKU.
2524
*
26-
* @param string $sku
27-
*
25+
* @param string $sku
2826
* @return array
2927
*/
3028
public function show($sku)

src/Api/SourceItems.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class SourceItems extends AbstractApi
1111
* @param int $pageSize
1212
* @param int $currentPage
1313
* @param array $filters
14-
*
1514
* @return array
1615
*/
1716
public function all($pageSize = 50, $currentPage = 1, $filters = [])

0 commit comments

Comments
 (0)