Completed
Push — master ( 1bc614...14e928 )
by Philip
02:00
created
src/PHPProm/Storage/DBAL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     protected $statementKeyUpdate;
27 27
 
28 28
     protected function buildStatements() {
29
-        $queryBuilder             = $this->connection->createQueryBuilder()
29
+        $queryBuilder = $this->connection->createQueryBuilder()
30 30
             ->select('COUNT(`key`) AS amount')
31 31
             ->from('`'.$this->table.'`')
32 32
             ->where('`key` = ?')
Please login to merge, or discard this patch.
src/PHPProm/Storage/AbstractStorage.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -19,6 +19,13 @@  discard block
 block discarded – undo
19 19
         $this->availableMetrics = [];
20 20
     }
21 21
 
22
+    /**
23
+     * @param string $storagePrefix
24
+     * @param string $metric
25
+     * @param string $label
26
+     * @param string $help
27
+     * @param string $type
28
+     */
22 29
     public function addAvailableMetric($storagePrefix, $metric, $label, $help, $type, $defaultValue) {
23 30
         $this->availableMetrics[] = [
24 31
             'storagePrefix' => $storagePrefix,
@@ -36,6 +43,9 @@  discard block
 block discarded – undo
36 43
 
37 44
     abstract public function storeMeasurement($prefix, $key, $value);
38 45
 
46
+    /**
47
+     * @param string $prefix
48
+     */
39 49
     abstract public function incrementMeasurement($prefix, $key);
40 50
 
41 51
     abstract public function getMeasurements($prefix, array $keys, $defaultValue = 'Nan');
Please login to merge, or discard this patch.