Passed
Pull Request — develop (#28)
by Michiel
06:41
created
library/tiqr/Tiqr/StateStorage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *                       options per type.
44 44
      * @throws Exception If an unknown type is requested.
45 45
      */
46
-    public static function getStorage($type="file", $options=array())
46
+    public static function getStorage($type = "file", $options = array())
47 47
     {
48 48
         switch ($type) {
49 49
             case "file":
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     }
70 70
                 }
71 71
 
72
-                $pdoInstance = new PDO($options['dsn'],$options['username'],$options['password']);
72
+                $pdoInstance = new PDO($options['dsn'], $options['username'], $options['password']);
73 73
                 // Set a hard-coded default for the probability the expired state is removed
74 74
                 // 0.1 translates to a 10% chance the garbage collection is executed
75 75
                 $cleanupProbability = 0.1;
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
                 if (!isset($type)) {
85 85
                     throw new Exception('Class name not set');
86 86
                 } elseif (!class_exists($type)) {
87
-                    throw new Exception('Class not found: ' . var_export($type, TRUE));
87
+                    throw new Exception('Class not found: '.var_export($type, TRUE));
88 88
                 } elseif (!is_subclass_of($type, 'Tiqr_StateStorage_Abstract')) {
89
-                    throw new Exception('Class ' . $type . ' not subclass of Tiqr_StateStorage_Abstract');
89
+                    throw new Exception('Class '.$type.' not subclass of Tiqr_StateStorage_Abstract');
90 90
                 }
91 91
                 $instance = new $type($options);
92 92
         }
Please login to merge, or discard this patch.