Skip to content

Commit

Permalink
StyleCI patch
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhenry committed Aug 3, 2015
1 parent 27febf0 commit 0032c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions api/app/Http/Controllers/ApiController.php
Expand Up @@ -75,7 +75,6 @@ public function getOne($id)

try {
$model = $this->getRepository()->find($id);

} catch (ModelNotFoundException $e) {
$this->notFound();
}
Expand All @@ -84,7 +83,6 @@ public function getOne($id)
->transformer($this->transformer)
->item($model)
;

}

/**
Expand Down
8 changes: 2 additions & 6 deletions api/src/Responder/Response/ApiResponse.php
Expand Up @@ -14,7 +14,6 @@

class ApiResponse extends Response
{

/** @var TransformerInterface */
protected $transformer = null;

Expand All @@ -36,7 +35,6 @@ public function transformer(TransformerInterface $transformer)
*/
public function created($location = null)
{

if (! is_null($location)) {
$this->header('Location', $location);
}
Expand Down Expand Up @@ -71,8 +69,7 @@ public function noContent($code = self::HTTP_NO_CONTENT)
*/
public function item($item, $statusCode = self::HTTP_OK)
{

if ($this->transformer){
if ($this->transformer) {
$item = $this->transformer->transformItem($item);
}

Expand Down Expand Up @@ -102,8 +99,7 @@ public function createdItem($item)
*/
public function collection($items, $statusCode = Response::HTTP_OK)
{

if ($this->transformer){
if ($this->transformer) {
$items = $this->transformer->transformCollection($items);
}

Expand Down

0 comments on commit 0032c19

Please sign in to comment.