Passed
Push — master ( e7d1fa...8cfc98 )
by Gaetano
06:36
created
demo/server/discuss.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * It uses a Berkeley DB database for storage.
5 5
  */
6 6
 
7
-require_once __DIR__ . "/_prepend.php";
7
+require_once __DIR__."/_prepend.php";
8 8
 
9 9
 use PhpXmlRpc\Value;
10 10
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
             $count = 0;
36 36
         }
37 37
         // add the new comment in
38
-        dba_insert($msgID . "_comment_{$count}", $comment, $dbh);
39
-        dba_insert($msgID . "_name_{$count}", $name, $dbh);
38
+        dba_insert($msgID."_comment_{$count}", $comment, $dbh);
39
+        dba_insert($msgID."_name_{$count}", $name, $dbh);
40 40
         $count++;
41 41
         dba_replace($countID, $count, $dbh);
42 42
         dba_close($dbh);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $countID = "{$msgID}_count";
70 70
         if (dba_exists($countID, $dbh)) {
71 71
             $count = dba_fetch($countID, $dbh);
72
-            for ($i = 0; $i < $count; $i++) {
72
+            for ($i = 0; $i<$count; $i++) {
73 73
                 $name = dba_fetch("{$msgID}_name_{$i}", $dbh);
74 74
                 $comment = dba_fetch("{$msgID}_comment_{$i}", $dbh);
75 75
                 // push a new struct onto the return array
Please login to merge, or discard this patch.