@@ -28,7 +28,8 @@ abstract class ApiResource
2828
2929 /**
3030 * ApiResource constructor.
31- * @param MailchimpRequest $request
31+ *
32+ * @param MailchimpRequest $request
3233 * @param MailchimpSettings|null $settings
3334 */
3435 public function __construct (MailchimpRequest $ request , MailchimpSettings $ settings = null )
@@ -75,7 +76,9 @@ public function setSettings($settings)
7576
7677 /**
7778 * Makes a get request using the current request
79+ *
7880 * @param array $query_params an array of query parameters you want to send
81+ *
7982 * @return MailchimpResponse
8083 * @throws MailchimpException
8184 */
@@ -94,7 +97,9 @@ public function get($query_params = [])
9497
9598 /**
9699 * Makes a post request using the current request
100+ *
97101 * @param array $params the payload you want to send
102+ *
98103 * @return MailchimpResponse
99104 * @throws MailchimpException
100105 */
@@ -112,7 +117,9 @@ public function post($params = [])
112117
113118 /**
114119 * Makes a patch request using the current request
120+ *
115121 * @param array $params the payload you want to send
122+ *
116123 * @return MailchimpResponse
117124 * @throws MailchimpException
118125 */
@@ -130,7 +137,9 @@ public function patch($params = [])
130137
131138 /**
132139 * Makes a put request using the current request
140+ *
133141 * @param array $params the payload you want to send
142+ *
134143 * @return MailchimpResponse
135144 * @throws MailchimpException
136145 */
@@ -168,9 +177,12 @@ public function delete()
168177
169178 /**
170179 * Returns a new connection from a request and settings
171- * @param MailchimpRequest $request
180+ *
181+ * @param MailchimpRequest $request
172182 * @param MailchimpSettings $settings
183+ *
173184 * @return MailchimpConnection
185+ * @throws MailchimpException
174186 */
175187 protected function getConnection (MailchimpRequest $ request , MailchimpSettings $ settings )
176188 {
@@ -189,8 +201,10 @@ private function resetRequest()
189201
190202 /**
191203 * Throws an exception if $check evaluates false
192- * @param string $type the type of check
193- * @param mixed $check the variable under test
204+ *
205+ * @param string $type the type of check
206+ * @param mixed $check the variable under test
207+ *
194208 * @throws MailchimpException
195209 */
196210 protected function throwIfNot ($ type , $ check )
@@ -209,8 +223,10 @@ protected function throwIfNot($type, $check)
209223
210224 /**
211225 * Makes a post request to an action endpoint on an API resource
212- * @param $endpoint
226+ *
227+ * @param $endpoint
213228 * @param array $params
229+ *
214230 * @return MailchimpResponse
215231 * @throws MailchimpException
216232 */
0 commit comments