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
@@ -130,7 +130,7 @@ public function testContains()
130130
131131 $ connectionResult = collect ()
132132 ->times (5 , function (int $ id ) {
133- return ['id ' => $ id, ];
133+ return ['id ' => $ id ];
134134 });
135135
136136 $ this ->connection
@@ -146,7 +146,7 @@ public function testGet()
146146 ->times (5 , function (int $ id ) {
147147 return [
148148 'id ' => $ id ,
149- 'floatAttribute ' => (string )$ this ->faker ()->randomFloat (2 ),
149+ 'floatAttribute ' => (string ) $ this ->faker ()->randomFloat (2 ),
150150 ];
151151 });
152152
@@ -181,9 +181,9 @@ public function findDataProvider()
181181 [
182182 tap (new EloquentModelCastingTest , function (EloquentModelCastingTest $ model ) {
183183 $ model ->id = 5 ;
184- })
184+ }),
185185 ],
186- [1 , 5 ,]
186+ [1 , 5 ],
187187 ];
188188 }
189189}
0 commit comments