Skip to content

Commit ec8f250

Browse files
authored
CS fixes (#23)
1 parent e8e4fce commit ec8f250

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/vendor/
22
/composer.lock
33
/.php_cs.cache
4-
/.phpunit.result.cache
4+
/.phpunit.result.cache

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
[![Latest Version](https://img.shields.io/github/release/happyr/json-api-response-factory.svg?style=flat-square)](https://github.com/happyr/json-api-response-factory/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![Build Status](https://img.shields.io/travis/happyr/json-api-response-factory.svg?style=flat-square)](https://travis-ci.org/happyr/json-api-response-factory)
6-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/happyr/json-api-response-factory.svg?style=flat-square)](https://scrutinizer-ci.com/g/happyr/json-api-response-factory)
7-
[![Quality Score](https://img.shields.io/scrutinizer/g/happyr/json-api-response-factory.svg?style=flat-square)](https://scrutinizer-ci.com/g/happyr/json-api-response-factory)
85
[![Total Downloads](https://img.shields.io/packagist/dt/happyr/json-api-response-factory.svg?style=flat-square)](https://packagist.org/packages/happyr/json-api-response-factory)
96

10-
A small wrapper around `league/fractal` to support JsonApi error AND success responses.
7+
A small wrapper around `league/fractal` to support JsonApi error AND success responses.
118

129
## Install
1310

@@ -48,7 +45,7 @@ final class FooTransformer extends AbstractTransformer
4845
$item = new Foo('bar');
4946
$response = $responseFactory->createWithItem($item, new FooTransformer());
5047
```
51-
Response will look like this:
48+
Response will look like this:
5249
```json
5350
{
5451
"data": {
@@ -69,7 +66,7 @@ $items = [
6966
];
7067
$response = $responseFactory->createWithCollection($items, new FooTransformer());
7168
```
72-
Response will look like this:
69+
Response will look like this:
7370
```json
7471
{
7572
"data": [
@@ -104,7 +101,7 @@ final class InvalidRequestResponseModel implements ResponseModelInterface
104101
{
105102
return 400;
106103
}
107-
104+
108105
public function getPayload() : array
109106
{
110107
return [
@@ -137,7 +134,7 @@ Example response for message:
137134
}
138135
```
139136

140-
Example response for validation failed:
137+
Example response for validation failed:
141138
```json
142139
{
143140
"errors": [

0 commit comments

Comments
 (0)