@@ -41,8 +41,8 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $errorDataProvider = new ApiErrorDataProvider(); |
| 43 | 43 | $errorDataProvider->setCode($exception->getCode()) |
| 44 | - ->setType($type) |
|
| 45 | - ->setMessage($exception->getMessage()); |
|
| 44 | + ->setType($type) |
|
| 45 | + ->setMessage($exception->getMessage()); |
|
| 46 | 46 | |
| 47 | 47 | if (method_exists($exception, 'getStatusCode')) { |
| 48 | 48 | $errorDataProvider->setStatusCode($exception->getStatusCode()); |
@@ -18,9 +18,9 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $errorDataProvider = new ApiErrorDataProvider(); |
| 20 | 20 | $errorDataProvider->setCode(2000) |
| 21 | - ->setType('Api') |
|
| 22 | - ->setMessage('Unauthorized') |
|
| 23 | - ->setStatusCode(401); |
|
| 21 | + ->setType('Api') |
|
| 22 | + ->setMessage('Unauthorized') |
|
| 23 | + ->setStatusCode(401); |
|
| 24 | 24 | |
| 25 | 25 | $this->setDataProvider($errorDataProvider); |
| 26 | 26 | } |
@@ -59,6 +59,6 @@ |
||
| 59 | 59 | |
| 60 | 60 | $credentials = new CredentialsDataProvider(); |
| 61 | 61 | return $credentials->setEmail($data[0]) |
| 62 | - ->setPassword($data[1]); |
|
| 62 | + ->setPassword($data[1]); |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | \ No newline at end of file |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | $dataProvider = new UserDataProvider(); |
| 19 | 19 | $dataProvider->setEmail('[email protected]') |
| 20 | - ->setPassword('password') |
|
| 21 | - ->setCompany('Company') |
|
| 22 | - ->setFirstname('Firstname') |
|
| 23 | - ->setLastname('Lastname'); |
|
| 20 | + ->setPassword('password') |
|
| 21 | + ->setCompany('Company') |
|
| 22 | + ->setFirstname('Firstname') |
|
| 23 | + ->setLastname('Lastname'); |
|
| 24 | 24 | |
| 25 | 25 | return $this->jsonResponse($dataProvider); |
| 26 | 26 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | $dataProvider = new CredentialsDataProvider(); |
| 34 | 34 | $dataProvider->setEmail('[email protected]') |
| 35 | - ->setPassword('password'); |
|
| 35 | + ->setPassword('password'); |
|
| 36 | 36 | |
| 37 | 37 | return $this->jsonResponse($dataProvider); |
| 38 | 38 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $dataProvider = new CredentialsDataProvider(); |
| 46 | 46 | $dataProvider->setEmail('[email protected]') |
| 47 | - ->setPassword('new-password'); |
|
| 47 | + ->setPassword('new-password'); |
|
| 48 | 48 | |
| 49 | 49 | return $this->jsonResponse($dataProvider); |
| 50 | 50 | } |