Passed
Pull Request — master (#431)
by El
03:02
created
lib/Data/Database.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -461,8 +461,7 @@
 block discarded – undo
461 461
         $statement = self::$_db->prepare($sql);
462 462
         $statement->execute($params);
463 463
         $result = $firstOnly ?
464
-            $statement->fetch(PDO::FETCH_ASSOC) :
465
-            $statement->fetchAll(PDO::FETCH_ASSOC);
464
+            $statement->fetch(PDO::FETCH_ASSOC) : $statement->fetchAll(PDO::FETCH_ASSOC);
466 465
         $statement->closeCursor();
467 466
         return $result;
468 467
     }
Please login to merge, or discard this patch.
lib/Request.php 1 patch
Spacing   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,10 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         // parse parameters, depending on request type
107 107
         switch (array_key_exists('REQUEST_METHOD', $_SERVER) ? $_SERVER['REQUEST_METHOD'] : 'GET') {
108
-            case 'DELETE':
109
-            case 'PUT':
110
-            case 'POST':
111
-                $this->_params = Json::decode(
108
+            case 'DELETE' : case 'PUT' : case 'POST' : $this->_params = Json::decode(
112 109
                     file_get_contents(self::$_inputStream)
113 110
                 );
114 111
                 break;
@@ -175,7 +172,7 @@  discard block
 block discarded – undo
175 172
             $data[$key] = $this->getParam($key);
176 173
         }
177 174
         // forcing a cast to int or float
178
-        $data['v'] = $data['v'] + 0;
175
+        $data['v'] = $data['v']+0;
179 176
         return $data;
180 177
     }
181 178
 
Please login to merge, or discard this patch.
lib/Model/Paste.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 throw new Exception(Controller::GENERIC_ERROR, 63);
45 45
             }
46 46
             // We kindly provide the remaining time before expiration (in seconds)
47
-            $data['meta']['time_to_live'] = $data['meta']['expire_date'] - time();
47
+            $data['meta']['time_to_live'] = $data['meta']['expire_date']-time();
48 48
             unset($data['meta']['expire_date']);
49 49
         }
50 50
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $expire = $this->_conf->getKey($this->_conf->getKey('default', 'expire'), 'expire_options');
221 221
         }
222 222
         if ($expire > 0) {
223
-            $data['meta']['expire_date'] = time() + $expire;
223
+            $data['meta']['expire_date'] = time()+$expire;
224 224
         }
225 225
         return $data;
226 226
     }
Please login to merge, or discard this patch.