@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Temitope Olotin <[email protected]> |
|
| 4 | - * @license <https://opensource.org/license/MIT> MIT |
|
| 5 | - */ |
|
| 3 | + * @author Temitope Olotin <[email protected]> |
|
| 4 | + * @license <https://opensource.org/license/MIT> MIT |
|
| 5 | + */ |
|
| 6 | 6 | namespace Laztopaz\EmojiRestfulAPI; |
| 7 | 7 | |
| 8 | 8 | use Dotenv\Dotenv; |
@@ -48,15 +48,15 @@ discard block |
||
| 48 | 48 | $this->capsule->bootEloquent(); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * Load Dotenv to grant getenv() access to |
|
| 53 | - * environment variables in .env file. |
|
| 54 | - */ |
|
| 55 | - public static function loadEnv() |
|
| 56 | - { |
|
| 57 | - if (! getenv('APP_ENV')) { |
|
| 58 | - $dotenv = new Dotenv(__DIR__.'/../../'); |
|
| 59 | - $dotenv->load(); |
|
| 60 | - } |
|
| 61 | - } |
|
| 51 | + /** |
|
| 52 | + * Load Dotenv to grant getenv() access to |
|
| 53 | + * environment variables in .env file. |
|
| 54 | + */ |
|
| 55 | + public static function loadEnv() |
|
| 56 | + { |
|
| 57 | + if (! getenv('APP_ENV')) { |
|
| 58 | + $dotenv = new Dotenv(__DIR__.'/../../'); |
|
| 59 | + $dotenv->load(); |
|
| 60 | + } |
|
| 61 | + } |
|
| 62 | 62 | } |
@@ -108,8 +108,8 @@ discard block |
||
| 108 | 108 | * This method creates emoji and keywords associated with it. |
| 109 | 109 | * |
| 110 | 110 | * @param $emoji |
| 111 | - * @param $request |
|
| 112 | - * @param $response |
|
| 111 | + * @param Request $request |
|
| 112 | + * @param Response $response |
|
| 113 | 113 | * @param $requestParams |
| 114 | 114 | * |
| 115 | 115 | * @return json response |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * This method updates an emoji. |
| 173 | 173 | * |
| 174 | 174 | * @param $emoji |
| 175 | - * @param $response |
|
| 175 | + * @param Response $response |
|
| 176 | 176 | * @param $updateParams |
| 177 | 177 | * |
| 178 | 178 | * @return json $response |
@@ -363,6 +363,8 @@ discard block |
||
| 363 | 363 | |
| 364 | 364 | /** |
| 365 | 365 | * This method solves for rightful of a record |
| 366 | + * @param Request $request |
|
| 367 | + * @param Response $response |
|
| 366 | 368 | */ |
| 367 | 369 | public function findTheOwner($args, $request, $response) |
| 368 | 370 | { |