mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-10 22:42:08 +08:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
901f153ea3
commit
7d94de8b16
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user