Test Failed
Push — master ( af1a14...381874 )
by Dan
02:05
created
Src/Cache/MemcacheStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
      * @param string $key
32 32
      * @return bool
33 33
      */
34
-    public function has($key){
35
-        if (!empty($this->mmc->get($key))){
34
+    public function has($key) {
35
+        if (!empty($this->mmc->get($key))) {
36 36
             return true;
37 37
         }
38 38
         return false;
Please login to merge, or discard this patch.
Src/Cache/NullStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * @param string $key
34 34
      * @return bool
35 35
      */
36
-    public function has($key){
36
+    public function has($key) {
37 37
         return false;
38 38
     }
39 39
 
Please login to merge, or discard this patch.
Tests/Cache/NullStorageTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@
 block discarded – undo
14 14
         $this->cacheStorage = new NullStorage();
15 15
     }
16 16
 
17
-    public function testHas(){
17
+    public function testHas() {
18 18
         $this->assertEquals($this->cacheStorage->has('key', 'value'), null);
19 19
     }
20 20
 
21
-    public function testSet(){
21
+    public function testSet() {
22 22
         $this->assertEquals($this->cacheStorage->set('key', 'value', 10), null);
23 23
     }
24 24
 
25
-    public function testGet(){
25
+    public function testGet() {
26 26
         $this->assertEquals($this->cacheStorage->get('key'), null);
27 27
     }
28 28
 
29
-    public function testDelete(){
29
+    public function testDelete() {
30 30
         $this->assertEquals($this->cacheStorage->delete('key'), null);
31 31
     }
32 32
     
Please login to merge, or discard this patch.
Tests/Cache/MemcacheStorageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $this->memcacheMock = $this->getMockBuilder('Memcached')->getMock();
25 25
 
26
-        $this->memcacheStorage = new MemcacheStorage($this->memcacheMock,'localhost',11211);
26
+        $this->memcacheStorage = new MemcacheStorage($this->memcacheMock, 'localhost', 11211);
27 27
     }
28 28
 
29 29
     public function testAddServer()
Please login to merge, or discard this patch.
Src/Cache/ApcStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @param string $key
20 20
      * @return bool
21 21
      */
22
-    public function has($key){
22
+    public function has($key) {
23 23
         return \apc_exists($key);
24 24
     }
25 25
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function delete($key)
51 51
     {
52
-        if (\apc_exists($key)){
52
+        if (\apc_exists($key)) {
53 53
             \apc_delete($key);
54 54
         }
55 55
     }
Please login to merge, or discard this patch.
Tests/Cache/CacheTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * Test that NullStorage Adaptor is called by default.
36 36
      */
37
-    public function testConstructDefaultNullStorage(){
37
+    public function testConstructDefaultNullStorage() {
38 38
         $cache = new Cache();
39 39
         $storage = $cache->getCacheStorage();
40
-        $this->assertInstanceOf('\Rs\Cache\NullStorage',$storage);
40
+        $this->assertInstanceOf('\Rs\Cache\NullStorage', $storage);
41 41
     }
42 42
 
43 43
     /**
44 44
      * Test that getCacheStorage returns storageMock.
45 45
      */
46
-    public function testGetCacheStorage(){
46
+    public function testGetCacheStorage() {
47 47
         $storage = $this->cache->getCacheStorage();
48 48
         $this->assertSame($this->storageMock, $storage);
49 49
     }
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * Test CacheStorage is updated from construct.
53 53
      */
54
-    public function testWithCacheStorage(){
54
+    public function testWithCacheStorage() {
55 55
         $newStorage = new NullStorage();
56 56
         $cache = $this->cache->withCacheStorage($newStorage);
57 57
         $storage = $cache->getCacheStorage();
58 58
         $this->assertSame($newStorage, $storage);
59
-        $this->assertNotSame($this->storageMock,$storage);
59
+        $this->assertNotSame($this->storageMock, $storage);
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.