44
55namespace Esazykin \LaravelClickHouse \Tests \Unit \Database \Eloquent ;
66
7- use Carbon \Carbon ;
87use Mockery \Mock ;
8+ use Carbon \Carbon ;
99use PHPUnit \Framework \TestCase ;
1010use Illuminate \Database \DatabaseManager ;
1111use Esazykin \LaravelClickHouse \Tests \Helpers ;
@@ -42,7 +42,7 @@ public function testMapModelToModel()
4242 {
4343 $ connectionResult = collect ()
4444 ->times (5 , function (int $ id ) {
45- return ['id ' => $ id, ];
45+ return ['id ' => $ id ];
4646 });
4747
4848 $ this ->connection
@@ -72,7 +72,7 @@ public function testMapModelToArray()
7272 {
7373 $ connectionResult = collect ()
7474 ->times (5 , function (int $ id ) {
75- return ['id ' => $ id, ];
75+ return ['id ' => $ id ];
7676 });
7777
7878 $ this ->connection
@@ -107,7 +107,7 @@ public function testFind($key)
107107 {
108108 $ connectionResult = collect ()
109109 ->times (5 , function (int $ id ) {
110- return ['id ' => $ id, ];
110+ return ['id ' => $ id ];
111111 });
112112
113113 $ this ->connection
@@ -135,7 +135,7 @@ public function testContains(bool $expected, $key, $operator = null, $value = nu
135135 {
136136 $ connectionResult = collect ()
137137 ->times (5 , function (int $ id ) {
138- return ['id ' => $ id, ];
138+ return ['id ' => $ id ];
139139 });
140140
141141 $ this ->connection
@@ -157,7 +157,7 @@ public function testGet()
157157 ->times (5 , function (int $ id ) {
158158 return [
159159 'id ' => $ id ,
160- 'floatAttribute ' => (string )$ this ->faker ()->randomFloat (2 ),
160+ 'floatAttribute ' => (string ) $ this ->faker ()->randomFloat (2 ),
161161 ];
162162 });
163163
@@ -192,9 +192,9 @@ public function findDataProvider(): array
192192 [
193193 tap (new EloquentModelCastingTest , function (EloquentModelCastingTest $ model ) {
194194 $ model ->id = 5 ;
195- })
195+ }),
196196 ],
197- [1 , 5 ,]
197+ [1 , 5 ],
198198 ];
199199 }
200200
0 commit comments