Completed
Push — master ( a93780...e00db1 )
by Dan
02:56
created
Tests/Cache/MemcacheStorageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->memcacheMock = $this->getMockBuilder('\Memcached')
23 23
             ->getMock();
24 24
 
25
-        $this->memcacheStorage = new MemcacheStorage($this->memcacheMock,'localhost',11211);
25
+        $this->memcacheStorage = new MemcacheStorage($this->memcacheMock, 'localhost', 11211);
26 26
     }
27 27
 
28 28
     public function testAddServer()
Please login to merge, or discard this patch.
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.
Src/Cache/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function set($key, $value, $expires = null)
50 50
     {
51
-        if ($expires === null){
51
+        if ($expires === null) {
52 52
             $expires = $this->expires;
53 53
         }
54 54
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param int $expires
60 60
      * @return Cache
61 61
      */
62
-    public function setExpires($expires){
62
+    public function setExpires($expires) {
63 63
         $this->expires = $expires;
64 64
         return $this;
65 65
     }
Please login to merge, or discard this patch.
autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 define("ROOT", __DIR__);
3
-define("SRC", __DIR__ . '/Src');
3
+define("SRC", __DIR__.'/Src');
4 4
 
5 5
 require_once './vendor/autoload.php';
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/CacheTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,19 +16,19 @@
 block discarded – undo
16 16
         $this->storageMock = $this->getMockBuilder('\Ds\Cache\Interfaces\CacheStorageInterface')
17 17
             ->getMock();
18 18
 
19
-        $this->cache = new Cache($this->storageMock,99);
19
+        $this->cache = new Cache($this->storageMock, 99);
20 20
     }
21 21
 
22
-    public function testConstructNullStorage(){
22
+    public function testConstructNullStorage() {
23 23
         $cache = new Cache();
24 24
         $storage = $cache->getCacheStorage();
25
-        $this->assertInstanceOf('\Ds\Cache\NullStorage',$storage);
25
+        $this->assertInstanceOf('\Ds\Cache\NullStorage', $storage);
26 26
     }
27 27
 
28
-    public function testConstructWithStorage(){
28
+    public function testConstructWithStorage() {
29 29
         $cache = new Cache($this->storageMock);
30 30
         $storage = $cache->getCacheStorage();
31
-        $this->assertSame($this->storageMock,$storage);
31
+        $this->assertSame($this->storageMock, $storage);
32 32
     }
33 33
 
34 34
     public function testHas()
Please login to merge, or discard this patch.