File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Cache \Tests \Adapter ;
13
13
14
14
use Symfony \Component \Cache \Adapter \SimpleCacheAdapter ;
15
- use Symfony \Component \Cache \Simple \FilesystemCache ;
16
15
use Symfony \Component \Cache \Simple \ArrayCache ;
16
+ use Symfony \Component \Cache \Simple \FilesystemCache ;
17
17
18
18
/**
19
19
* @group time-sensitive
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public function testFind()
240
240
$ stmt = $ this ->getStatementMock ([
241
241
'id ' => $ id ,
242
242
'body ' => '{"message":"Hi"} ' ,
243
- 'headers ' => \ json_encode (['type ' => DummyMessage::class]),
243
+ 'headers ' => json_encode (['type ' => DummyMessage::class]),
244
244
]);
245
245
246
246
$ driverConnection
@@ -274,12 +274,12 @@ public function testFindAll()
274
274
$ message1 = [
275
275
'id ' => 1 ,
276
276
'body ' => '{"message":"Hi"} ' ,
277
- 'headers ' => \ json_encode (['type ' => DummyMessage::class]),
277
+ 'headers ' => json_encode (['type ' => DummyMessage::class]),
278
278
];
279
279
$ message2 = [
280
280
'id ' => 2 ,
281
281
'body ' => '{"message":"Hi again"} ' ,
282
- 'headers ' => \ json_encode (['type ' => DummyMessage::class]),
282
+ 'headers ' => json_encode (['type ' => DummyMessage::class]),
283
283
];
284
284
285
285
$ stmt = $ this ->getMockBuilder (Statement::class)
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public function findAll(int $limit = null): array
240
240
241
241
$ data = $ this ->executeQuery ($ queryBuilder ->getSQL (), $ queryBuilder ->getParameters ())->fetchAll ();
242
242
243
- return \ array_map (function ($ doctrineEnvelope ) {
243
+ return array_map (function ($ doctrineEnvelope ) {
244
244
return $ this ->decodeEnvelopeHeaders ($ doctrineEnvelope );
245
245
}, $ data );
246
246
}
@@ -339,7 +339,7 @@ public static function formatDateTime(\DateTimeInterface $dateTime)
339
339
340
340
private function decodeEnvelopeHeaders (array $ doctrineEnvelope ): array
341
341
{
342
- $ doctrineEnvelope ['headers ' ] = \ json_decode ($ doctrineEnvelope ['headers ' ], true );
342
+ $ doctrineEnvelope ['headers ' ] = json_decode ($ doctrineEnvelope ['headers ' ], true );
343
343
344
344
return $ doctrineEnvelope ;
345
345
}
You can’t perform that action at this time.
0 commit comments