Passed
Push — master ( 411303...7119c4 )
by
unknown
14:45 queued 11:45
created
FileHandler.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
   // Shortcuts for combinations of controls.
26 26
   public const CURSOR = 15; // UP | DOWN | LEFT | RIGHT
27
-  public const ZOOM = 48;   // ZOOMIN | ZOOMOUT
27
+  public const ZOOM = 48; // ZOOMIN | ZOOMOUT
28 28
   public const ALL = 2047;
29 29
 
30 30
   // up down left right zoomin zoomout home end prior next download
Please login to merge, or discard this patch.
db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
   $oldJSON = $_REQUEST['json'];
23 23
   $oldJSONarr = json_decode($oldJSON, true);
24 24
   if ($oldJSONarr != null) {
25
-    array_walk_recursive($oldJSONarr, function (&$value, $key) {
25
+    array_walk_recursive($oldJSONarr, function(&$value, $key) {
26 26
       if (is_string($value) && preg_match('/^http/', $value)) {
27 27
         $value = rawurlencode($value);
28 28
       }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
   $database['window'] = $data;
75 75
 
76 76
   //~ $newJSON = json_encode($database, JSON_PRETTY_PRINT);
77
-  array_walk_recursive($database, function (&$value, $key) {
77
+  array_walk_recursive($database, function(&$value, $key) {
78 78
     if (is_string($value) && preg_match('/^http/', $value)) {
79 79
       $value = rawurlencode($value);
80 80
     }
Please login to merge, or discard this patch.
DBConnector.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     if (count($next_ids) > 0) {
107 107
       $next = $next_ids[0];
108 108
     } else {
109
-      $next = $this->querySingle('SELECT MAX(id) FROM window') + 1;
109
+      $next = $this->querySingle('SELECT MAX(id) FROM window')+1;
110 110
     }
111 111
     return $next;
112 112
   }
Please login to merge, or discard this patch.
globals.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
       $section = intval($w['section']);
384 384
       if ($section >= 1 && $section <= $maxSection && $enabled) {
385 385
         // Show window, set size and position.
386
-        $wi = $section - 1;
386
+        $wi = $section-1;
387 387
         $dx = $screenWidth / $dim[$wi][2];
388 388
         $dy = $screenHeight / $dim[$wi][3];
389 389
         $x = $dim[$wi][0] * $dx;
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
     if ($windownumber != 'vncwin') {
584 584
       // This is the normal case.
585 585
       // Special handling is needed when called with window=vncwin, see below.
586
-      $window = intval($windownumber) - 1;
586
+      $window = intval($windownumber)-1;
587 587
 
588 588
       $win_id = $db->getWindowIDBySection($windownumber);
589 589
       $windowlist = windowList();
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
       if ($delete == "VNC") {
646 646
         trace("processRequests: delete vnc window");
647 647
         // call via daemon: ?window=vncwin&delete=VNC&vncid=123
648
-        $win_id = escapeshellcmd($_REQUEST['vncid']);   // = hexWindow in database, but not on screen
648
+        $win_id = escapeshellcmd($_REQUEST['vncid']); // = hexWindow in database, but not on screen
649 649
         trace("VNC via Daemon ... id=$win_id");
650 650
       } elseif (strstr($delete, "http")) {
651 651
         trace("processRequests: delete browser window");
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
         $delete = str_replace(" ", "\ ", $delete);
662 662
         trace("processRequests: file in db: $file_in_db");
663 663
         if ($file_in_db) {
664
-          if(file_exists($delete)) {
664
+          if (file_exists($delete)) {
665 665
             trace("processRequests: delete file $delete");
666 666
             unlink($delete);
667 667
           }
Please login to merge, or discard this patch.
upload.php 1 patch
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -55,18 +55,18 @@
 block discarded – undo
55 55
   $f = fopen($targetFile, 'w');
56 56
   if ($f) {
57 57
     switch ($error) {
58
-      case UPLOAD_ERR_INI_SIZE:
59
-        $message = addslashes(__("This file is too large."));
60
-        break;
61
-      case UPLOAD_ERR_FORM_SIZE:
62
-        $message = addslashes(__("Large files are not supported."));
63
-        break;
64
-      case UPLOAD_ERR_PARTIAL:
65
-        $message = addslashes(__("File was only partially uploaded."));
66
-        break;
67
-      default:
68
-        $message = sprintf(addslashes(__("Error code %s.")), $error);
69
-        break;
58
+    case UPLOAD_ERR_INI_SIZE:
59
+      $message = addslashes(__("This file is too large."));
60
+      break;
61
+    case UPLOAD_ERR_FORM_SIZE:
62
+      $message = addslashes(__("Large files are not supported."));
63
+      break;
64
+    case UPLOAD_ERR_PARTIAL:
65
+      $message = addslashes(__("File was only partially uploaded."));
66
+      break;
67
+    default:
68
+      $message = sprintf(addslashes(__("Error code %s.")), $error);
69
+      break;
70 70
     }
71 71
     fprintf($f, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"");
72 72
     fprintf($f, "\"http://www.w3.org/TR/html4/strict.dtd\">");
Please login to merge, or discard this patch.
SSVNCDaemon.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     if (count($this->VNC_CLIENTS) == 0) {
184 184
       $id = 1;
185 185
     } else {
186
-      $id = count($this->VNC_CLIENTS) + 1;
186
+      $id = count($this->VNC_CLIENTS)+1;
187 187
     }
188 188
 
189 189
     $this->VNC_CLIENTS[$id] = $vncclient;
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     debug("SSVNCDaemon::addClient: CLIENT OBJECT with ID " . $id . " CREATED : "
192 192
         . $vncclient["ip"] . " | " . $vncclient["hostname"] . " | "
193 193
         . $vncclient["active"] . " | " . $vncclient["exit"]);
194
-    debug("SSVNCDaemon::addClient: " . ($this->CONNECTIONS + 1) . " CLIENT(S) CONNECTED ...");
194
+    debug("SSVNCDaemon::addClient: " . ($this->CONNECTIONS+1) . " CLIENT(S) CONNECTED ...");
195 195
 
196 196
     $this->sendVncWindowToNuc($id, $vncclient);
197 197
 
Please login to merge, or discard this patch.