Skip to content

Commit e5f3af3

Browse files
ankitpokhrelthilanga
authored andcommitted
Typos and doc block fixes (dingo#1341)
* typos and doc block fixes * StyleCI fixes
1 parent 0002209 commit e5f3af3

File tree

10 files changed

+14
-10
lines changed

10 files changed

+14
-10
lines changed

src/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ public function setDefaultDomain($domain)
734734
}
735735

736736
/**
737-
* Set the defult format.
737+
* Set the default format.
738738
*
739739
* @param string $format
740740
*

src/Exception/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function setReplacements(array $replacements)
247247
}
248248

249249
/**
250-
* Recursirvely remove any empty replacement values in the response array.
250+
* Recursively remove any empty replacement values in the response array.
251251
*
252252
* @param array $input
253253
*

src/Http/Middleware/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ protected function gatherRouteMiddlewares($request)
206206
/**
207207
* Set the middlewares.
208208
*
209-
* @param array $middlewares
209+
* @param array $middleware
210210
*
211211
* @return void
212212
*/

src/Http/Response/Format/Jsonp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Jsonp extends Json
66
{
77
/**
8-
* Name of JSONP callback paramater.
8+
* Name of JSONP callback parameter.
99
*
1010
* @var string
1111
*/

src/Http/Validation/Accept.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(AcceptParser $accept, $strict = false)
4545
*
4646
* @param \Illuminate\Http\Request $request
4747
*
48-
* @throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
48+
* @throws \Exception|\Symfony\Component\HttpKernel\Exception\BadRequestHttpException
4949
*
5050
* @return bool
5151
*/

src/Provider/LaravelServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function addRequestMiddlewareToBeginning(Kernel $kernel)
119119
}
120120

121121
/**
122-
* Register a short-hand name for a middleware. For Compatability
122+
* Register a short-hand name for a middleware. For compatibility
123123
* with Laravel < 5.4 check if aliasMiddleware exists since this
124124
* method has been renamed.
125125
*

src/Provider/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class ServiceProvider extends IlluminateServiceProvider
1818
/**
1919
* Retrieve and instantiate a config value if it exists and is a class.
2020
*
21-
* @param string $key
21+
* @param string $item
2222
* @param bool $instantiate
2323
*
2424
* @return mixed

src/Routing/Route.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ public function __construct(Adapter $adapter, Container $container, Request $req
146146

147147
/**
148148
* Setup the route properties.
149+
*
150+
* @param Request $request
151+
* @param $route
152+
*
153+
* @return void
149154
*/
150155
protected function setupRouteProperties(Request $request, $route)
151156
{

src/Routing/Router.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ class Router
9393
* Create a new router instance.
9494
*
9595
* @param \Dingo\Api\Contract\Routing\Adapter $adapter
96-
* @param \Dingo\Api\Http\Parser\Accept $accept
9796
* @param \Dingo\Api\Contract\Debug\ExceptionHandler $exception
9897
* @param \Illuminate\Container\Container $container
9998
* @param string $domain
@@ -116,7 +115,7 @@ public function __construct(Adapter $adapter, ExceptionHandler $exception, Conta
116115
* attributes and a required callback.
117116
*
118117
* This method can be called without the third parameter, however,
119-
* the callback should always be the last paramter.
118+
* the callback should always be the last parameter.
120119
*
121120
* @param string $version
122121
* @param array|callable $second

src/Transformer/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function getRequest()
247247
* Pass unknown method calls through to the adapter.
248248
*
249249
* @param string $method
250-
* @Param array $parameters
250+
* @param array $parameters
251251
*
252252
* @return mixed
253253
*/

0 commit comments

Comments
 (0)