@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * Obtain multiple cache items by their unique keys |
109 | 109 | * |
110 | - * @param array|Traversable $keys A list of keys that can obtained in a single operation. |
|
110 | + * @param string[] $keys A list of keys that can obtained in a single operation. |
|
111 | 111 | * |
112 | 112 | * @return array An array of key => value pairs. Cache keys that do not exist or are stale will have a value of null. |
113 | 113 | */ |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * Delete multiple cache items in a single operation |
141 | 141 | * |
142 | - * @param array|Traversable $keys The array of string-based keys to be deleted |
|
142 | + * @param string[] $keys The array of string-based keys to be deleted |
|
143 | 143 | * |
144 | 144 | * @return bool True on success and false on failure |
145 | 145 | */ |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Composer\Autoload\ClassLoader; |
5 | 5 | |
6 | -require_once dirname(__DIR__) . '/vendor/autoload.php'; |
|
6 | +require_once dirname(__DIR__).'/vendor/autoload.php'; |
|
7 | 7 | $loader = new ClassLoader(); |
8 | 8 | $loader->add('tests', dirname(__DIR__)); |
9 | 9 | $loader->register(); |
@@ -21,10 +21,10 @@ discard block |
||
21 | 21 | |
22 | 22 | public function testSetGetDeleteItem() |
23 | 23 | { |
24 | - $ins1 = $this->client->set('test1','value1'); |
|
24 | + $ins1 = $this->client->set('test1', 'value1'); |
|
25 | 25 | $this->assertTrue($ins1); |
26 | 26 | $value1 = $this->client->get('test1'); |
27 | - $this->assertEquals('value1',$value1); |
|
27 | + $this->assertEquals('value1', $value1); |
|
28 | 28 | $delete = $this->client->delete('test1'); |
29 | 29 | $this->assertTrue($delete); |
30 | 30 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->assertEquals(0, $counter_d_0); |
70 | 70 | } |
71 | 71 | |
72 | - public function testClear(){ |
|
72 | + public function testClear() { |
|
73 | 73 | $clear = $this->client->clear(); |
74 | 74 | $this->assertTrue($clear); |
75 | 75 | } |