Completed
Push — master ( 1302b1...1561fa )
by Pavel
155:40 queued 94:52
created
src/ScayTrase/Api/Rpc/Tests/DecoratorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
         static $items = [];
68 68
         $cache = $this->prophesize(CacheItemPoolInterface::class);
69 69
         $that  = $this;
70
-        $cache->getItem(Argument::type('string'))->will(function ($args) use (&$items, $that) {
70
+        $cache->getItem(Argument::type('string'))->will(function($args) use (&$items, $that) {
71 71
             $key = $args[0];
72 72
             if (!array_key_exists($key, $items)) {
73 73
                 $item = $that->prophesize(CacheItemInterface::class);
74 74
 
75 75
                 $item->getKey()->willReturn($key);
76 76
                 $item->isHit()->willReturn(false);
77
-                $item->set(Argument::any())->will(function ($args) use ($item) {
77
+                $item->set(Argument::any())->will(function($args) use ($item) {
78 78
                     $item->get()->willReturn($args[0]);
79 79
                 });
80 80
                 $item->expiresAfter(Argument::type('int'))->willReturn($item);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
             return $items[$key]->reveal();
88 88
         });
89
-        $cache->save(Argument::type(CacheItemInterface::class))->will(function ($args) use (&$items) {
89
+        $cache->save(Argument::type(CacheItemInterface::class))->will(function($args) use (&$items) {
90 90
             $item = $args[0];
91 91
             $items[$item->getKey()]->isHit()->willReturn(true);
92 92
         });
Please login to merge, or discard this patch.