Passed
Push — master ( d45b2a...c32bfc )
by Krisztián
02:16
created
src/Storage/Bucket.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         if (!array_key_exists($key, $this->entries) && !$this->existsInBackup($key)) {
24 24
             return false;
25 25
         }
26
-        if($this->existsInBackup($key)) {
26
+        if ($this->existsInBackup($key)) {
27 27
             $entry = unserialize($this->getFromBackup($key));
28 28
             return gzuncompress($entry['content']);
29 29
         }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     
33 33
     private function existsInBackup($key)
34 34
     {
35
-        if(file_exists($this->backupDir."/".$key.".dat")) {
35
+        if (file_exists($this->backupDir."/".$key.".dat")) {
36 36
             return true;
37 37
         }
38 38
         return false;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $contents = "";
44 44
         $handle = fopen($this->backupDir."/".$key.".dat", "r+");
45
-        while(!feof($handle)) {
45
+        while (!feof($handle)) {
46 46
             $contents .= fread($handle, 32);
47 47
         }
48 48
         return $contents;
Please login to merge, or discard this patch.