Passed
Push — master ( 60e75a...8e7e6d )
by Dispositif
02:35
created
src/Infrastructure/Monitor/Stats.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class Stats
20 20
 {
21
-    protected const DEFAULT_FILEPATH = __DIR__ . '/../../../log/stats.db';
21
+    protected const DEFAULT_FILEPATH = __DIR__.'/../../../log/stats.db';
22 22
     protected const MAX_TAG_LENGTH = 100;
23 23
 
24 24
     protected SQLite3 $db;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         // `num` default value is 1 so insert is enough to set num=1
49 49
         try {
50 50
             return $this->sqliteExecWriteOrWait(
51
-                'INSERT INTO ' . $table . ' (tag) VALUES("' . $tag . '") ON CONFLICT(tag) DO UPDATE SET num=num+1'
51
+                'INSERT INTO '.$table.' (tag) VALUES("'.$tag.'") ON CONFLICT(tag) DO UPDATE SET num=num+1'
52 52
             );
53 53
         } catch (Exception $e) {
54 54
             return false;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $tag = $this->formatTag($tag);
84 84
         try {
85 85
             return $this->sqliteExecWriteOrWait(
86
-                'INSERT OR REPLACE INTO tagnum (tag,num) VALUES("' . $tag . '", ' . $num . ')'
86
+                'INSERT OR REPLACE INTO tagnum (tag,num) VALUES("'.$tag.'", '.$num.')'
87 87
             );
88 88
         } catch (Exception $e) {
89 89
             return false;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $tag = $this->formatTag($tag);
96 96
         try {
97 97
             return $this->sqliteExecWriteOrWait(
98
-                'INSERT INTO tagnum (tag) VALUES("' . $tag . '") ON CONFLICT(tag) DO UPDATE SET num=num-1'
98
+                'INSERT INTO tagnum (tag) VALUES("'.$tag.'") ON CONFLICT(tag) DO UPDATE SET num=num-1'
99 99
             );
100 100
         } catch (Exception $e) {
101 101
             return false;
Please login to merge, or discard this patch.