Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot
2019-10-08 21:16:47 +00:00
committed by StyleCI Bot
parent 901f153ea3
commit 7d94de8b16
7 changed files with 62 additions and 58 deletions

View File

@@ -3,7 +3,6 @@
namespace Mpociot\ApiDoc\Tests\Fixtures;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Http\Resources\Json\ResourceCollection;
class TestUserApiResource extends JsonResource
{
@@ -11,13 +10,14 @@ class TestUserApiResource extends JsonResource
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
*
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'name' => $this->first_name." ".$this->last_name,
'name' => $this->first_name.' '.$this->last_name,
'email' => $this->email,
];
}