@@ -26,7 +26,7 @@ |
||
26 | 26 | public function transform(User $user) |
27 | 27 | { |
28 | 28 | |
29 | - $response = [ |
|
29 | + $response = [ |
|
30 | 30 | 'id' => $user->getHashedKey(), |
31 | 31 | 'name' => $user->name, |
32 | 32 | 'email' => $user->email, |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function apply($model, PrettusRepositoryInterface $repository) |
38 | 38 | { |
39 | - if(!$this->userId){ |
|
39 | + if (!$this->userId) { |
|
40 | 40 | $this->userId = Auth::user()->id; |
41 | 41 | } |
42 | 42 |
@@ -37,6 +37,6 @@ |
||
37 | 37 | */ |
38 | 38 | public function apply($model, PrettusRepositoryInterface $repository) |
39 | 39 | { |
40 | - return DB::table($model->getModel()->getTable())->select('*', DB::raw('count('.$this->field.') as total_count'))->groupBy($this->field); |
|
40 | + return DB::table($model->getModel()->getTable())->select('*', DB::raw('count(' . $this->field . ') as total_count'))->groupBy($this->field); |
|
41 | 41 | } |
42 | 42 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $this->baseUrl = env('API_FULL_URL'); // this reads the value from `phpunit.xml` during testing |
58 | 58 | |
59 | 59 | // override the default subDomain of the base URL when subDomain property is defined inside a test |
60 | - if(property_exists($this, 'subDomain')){ |
|
60 | + if (property_exists($this, 'subDomain')) { |
|
61 | 61 | $this->overrideSubDomain($this->subDomain); |
62 | 62 | } |
63 | 63 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Containers\Authorization\UI\API\Tests\Functional; |
4 | 4 | |
5 | -use App\Containers\Authorization\Models\User; |
|
6 | 5 | use App\Port\Test\PHPUnit\Abstracts\TestCase; |
7 | 6 | |
8 | 7 | /** |