77use Illuminate \Support \Str ;
88use Dingo \Api \Http \Response ;
99use Illuminate \Support \Collection ;
10- use Dingo \Api \Transformer \Factory as TransformerFactory ;
1110use Illuminate \Contracts \Pagination \Paginator ;
11+ use Dingo \Api \Transformer \Factory as TransformerFactory ;
1212use Symfony \Component \HttpKernel \Exception \HttpException ;
1313
1414class Factory
@@ -55,7 +55,7 @@ public function created($location = null, $content = null)
5555 * Respond with an accepted response and associate a location and/or content if provided.
5656 *
5757 * @param null|string $location
58- * @param mixed $content
58+ * @param mixed $content
5959 *
6060 * @return \Dingo\Api\Http\Response
6161 */
@@ -87,9 +87,9 @@ public function noContent()
8787 * Bind a collection to a transformer and start building a response.
8888 *
8989 * @param \Illuminate\Support\Collection $collection
90- * @param object $transformer
91- * @param array|\Closure $parameters
92- * @param \Closure|null $after
90+ * @param object $transformer
91+ * @param array|\Closure $parameters
92+ * @param \Closure|null $after
9393 *
9494 * @return \Dingo\Api\Http\Response
9595 */
@@ -114,9 +114,9 @@ public function collection(Collection $collection, $transformer, $parameters = [
114114 /**
115115 * Bind an item to a transformer and start building a response.
116116 *
117- * @param object $item
118- * @param object $transformer
119- * @param array $parameters
117+ * @param object $item
118+ * @param object $transformer
119+ * @param array $parameters
120120 * @param \Closure $after
121121 *
122122 * @return \Dingo\Api\Http\Response
@@ -139,9 +139,9 @@ public function item($item, $transformer, $parameters = [], Closure $after = nul
139139 * Bind a paginator to a transformer and start building a response.
140140 *
141141 * @param \Illuminate\Contracts\Pagination\Paginator $paginator
142- * @param object $transformer
143- * @param array $parameters
144- * @param \Closure $after
142+ * @param object $transformer
143+ * @param array $parameters
144+ * @param \Closure $after
145145 *
146146 * @return \Dingo\Api\Http\Response
147147 */
@@ -162,7 +162,7 @@ public function paginator(Paginator $paginator, $transformer, array $parameters
162162 * Return an error response.
163163 *
164164 * @param string $message
165- * @param int $statusCode
165+ * @param int $statusCode
166166 *
167167 * @throws \Symfony\Component\HttpKernel\Exception\HttpException
168168 *
@@ -261,7 +261,7 @@ public function errorMethodNotAllowed($message = 'Method Not Allowed')
261261 * Call magic methods beginning with "with".
262262 *
263263 * @param string $method
264- * @param array $parameters
264+ * @param array $parameters
265265 *
266266 * @throws \ErrorException
267267 *
@@ -272,9 +272,9 @@ public function __call($method, $parameters)
272272 if (Str::startsWith ($ method , 'with ' )) {
273273 return call_user_func_array ([$ this , Str::camel (substr ($ method , 4 ))], $ parameters );
274274
275- // Because PHP won't let us name the method "array" we'll simply watch for it
276- // in here and return the new binding. Gross. This is now DEPRECATED and
277- // should not be used. Just return an array or a new response instance.
275+ // Because PHP won't let us name the method "array" we'll simply watch for it
276+ // in here and return the new binding. Gross. This is now DEPRECATED and
277+ // should not be used. Just return an array or a new response instance.
278278 } elseif ($ method == 'array ' ) {
279279 return new Response ($ parameters [0 ]);
280280 }
0 commit comments