Completed
Push — master ( 03f7a5...12ecd6 )
by Markus
02:37
created
selftest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@
 block discarded – undo
82 82
     if ($assertion === true) {
83 83
         // All OK
84 84
         echo('<div class="result ok"><span>✔</span></div>');
85
-        echo('</div>');  // close checkline
85
+        echo('</div>'); // close checkline
86 86
     } else {
87 87
         // Not OK
88 88
         echo('<div class="result error"><span>✖</span></div>');
89
-        echo('</div>');  // close checkline
89
+        echo('</div>'); // close checkline
90 90
         echo('<div class="errortext">' . $error_text . '</div>');
91 91
     }
92 92
     echo('</div>');
Please login to merge, or discard this patch.
lib/SSpkS/Device/DeviceList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 $idx++;
53 53
             }
54 54
         }
55
-        array_multisort($sortkey, SORT_NATURAL|SORT_FLAG_CASE, $this->devices);
55
+        array_multisort($sortkey, SORT_NATURAL | SORT_FLAG_CASE, $this->devices);
56 56
     }
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
lib/SSpkS/Handler/BrowserPackageListHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function handle()
13 13
     {
14 14
         // Architecture is set --> show packages for that arch
15
-        $arch     = trim($_GET['arch']);
15
+        $arch = trim($_GET['arch']);
16 16
 
17 17
         $output = new HtmlOutput($this->config);
18 18
         $output->setVariable('arch', $arch);
Please login to merge, or discard this patch.
lib/SSpkS/Output/JsonOutput.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * Checks if $obj contains $property and if not, returns $alternative.
31 31
      *
32
-     * @param object $obj Object to check
32
+     * @param \SSpkS\Package\Package $obj Object to check
33 33
      * @param string $property Property to check for
34 34
      * @param mixed $alternative Alternative to return if key not found
35 35
      * @return mixed Value from $obj->$property or $alternative
Please login to merge, or discard this patch.
lib/SSpkS/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         if (isset($_REQUEST['unique']) && substr($_REQUEST['unique'], 0, 8) == 'synology') {
28 28
             $handler = new SynologyHandler($this->config);
29 29
         } elseif (isset($this->config->site['redirectindex']) && !empty($this->config->site['redirectindex'])) {
30
-            header('Location: '.$this->config->site['redirectindex']);
30
+            header('Location: ' . $this->config->site['redirectindex']);
31 31
             die();
32 32
         } elseif ($_SERVER['REQUEST_METHOD'] == 'GET') {
33 33
             // GET-request, probably browser --> show HTML
Please login to merge, or discard this patch.
lib/SSpkS/Output/HtmlOutput.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -33,11 +33,17 @@
 block discarded – undo
33 33
         $this->setVariable('requestUri', $_SERVER['REQUEST_URI']);
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $name
38
+     */
36 39
     public function setVariable($name, $value)
37 40
     {
38 41
         $this->tplVars[$name] = $value;
39 42
     }
40 43
 
44
+    /**
45
+     * @param string $tplName
46
+     */
41 47
     public function setTemplate($tplName)
42 48
     {
43 49
         $this->template = $tplName;
Please login to merge, or discard this patch.