Test Failed
Pull Request — develop (#35)
by Michiel
03:39
created
library/tiqr/Tiqr/StateStorage/StateStorageInterface.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
      * @param mixed $value The data to store in state storage
24 24
      * @param int $expire The expiration (in seconds) of the data
25 25
      */
26
-    public function setValue($key, $value, $expire=0);
26
+    public function setValue($key, $value, $expire = 0);
27 27
 
28 28
     /**
29 29
      * Remove a value from the state storage
Please login to merge, or discard this patch.
library/tiqr/Tiqr/StateStorage/File.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
     public function setValue($key, $value, $expire=0)
52 52
     {   
53 53
         $envelope = array("expire"=>$expire,
54
-                          "createdAt"=>time(),
55
-                          "value"=>$value);
54
+                            "createdAt"=>time(),
55
+                            "value"=>$value);
56 56
         $filename = $this->getFilenameByKey($key);
57 57
         
58 58
         if (!file_put_contents($filename, serialize($envelope))) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * (non-PHPdoc)
49 49
      * @see library/tiqr/Tiqr/StateStorage/Tiqr_StateStorage_Abstract::setValue()
50 50
      */
51
-    public function setValue($key, $value, $expire=0)
51
+    public function setValue($key, $value, $expire = 0)
52 52
     {   
53 53
         $envelope = array("expire"=>$expire,
54 54
                           "createdAt"=>time(),
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
 
100 100
     private function getPath(): string
101 101
     {
102
-        if (substr($this->path, -1)!=="/") {
103
-            return $this->path . "/";
102
+        if (substr($this->path, -1) !== "/") {
103
+            return $this->path."/";
104 104
         }
105 105
         return $this->path;
106 106
     }
Please login to merge, or discard this patch.
library/tiqr/Tiqr/StateStorage/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * a state storage instance of a certain type.
61 61
      * @param array $options An array of options for the state storage
62 62
      */
63
-    public function __construct($options=array(), LoggerInterface $logger)
63
+    public function __construct($options = array(), LoggerInterface $logger)
64 64
     {
65 65
         $this->logger = $logger;
66 66
         $this->_options = $options;
Please login to merge, or discard this patch.