Completed
Push — master ( 74f9b3...d87fb7 )
by Ma
02:30
created
src/Api/Config/ConfigJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         if (json_last_error() !== JSON_ERROR_NONE) {
45 45
             throw new \Exception('Can\'t parse config');
46 46
         }
47
-        return (array) $decodedData;
47
+        return (array)$decodedData;
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/Api/Format/Xml.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * Get Header
26 26
      *
27 27
      * @return string
28
-    */
28
+     */
29 29
     public function getHeader()
30 30
     {
31 31
         return 'Content-Type: application/xml';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         foreach ($array as $key => $value) {
37 37
             if (is_numeric($key)) {
38
-                $key = 'item' . $key;
38
+                $key = 'item'.$key;
39 39
             }
40 40
 
41 41
             if (is_array($value)) {
Please login to merge, or discard this patch.
src/Api/Module/Abstr/Memcached.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function returnData()
31 31
     {
32 32
         $memcachedStats = $this->memcached->getstats();
33
-        $statsArr = $memcachedStats[$this->ip . ":" . $this->port];
33
+        $statsArr = $memcachedStats[$this->ip.":".$this->port];
34 34
         return array(
35 35
             'memcache_get'       => $statsArr['cmd_get'],
36 36
             'memcache_hits'      => $statsArr['get_hits'],
Please login to merge, or discard this patch.
src/Api/Module/Windows/System.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $process = @popen('wmic cpu get NumberOfCores', 'rb');
32 32
         if (false !== $process) {
33 33
             fgets($process);
34
-            $cores= intval(fgets($process));
34
+            $cores = intval(fgets($process));
35 35
             pclose($process);
36 36
             return $cores;
37 37
         }
Please login to merge, or discard this patch.
src/Api/Route/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     
26 26
     private function prepareRouteInfo($routeInfo)
27 27
     {
28
-        isset($routeInfo[1]['method']) || $routeInfo[1]['method']  = null;
28
+        isset($routeInfo[1]['method']) || $routeInfo[1]['method'] = null;
29 29
         isset($routeInfo[1]['controller']) || $routeInfo[1]['controller'] = null;
30 30
         isset($routeInfo[2]) || $routeInfo[2] = [];
31 31
         isset($routeInfo[2]['format']) || $routeInfo[2]['format'] = 'json';
Please login to merge, or discard this patch.
src/public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 require_once  __DIR__.("/../../vendor/autoload.php");
6 6
 
7 7
 $dispatcher = FastRoute\simpleDispatcher(
8
-    function (FastRoute\RouteCollector $r) {
8
+    function(FastRoute\RouteCollector $r) {
9 9
         $r->addRoute(
10 10
             'GET',
11 11
             '/serverinfo/{format}[/{pingHostname:[[:alnum:].]+}]',
Please login to merge, or discard this patch.
src/Api/Format/Json.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * Get Header
26 26
      *
27 27
      * @return string
28
-    */
28
+     */
29 29
     public function getHeader()
30 30
     {
31 31
         return 'Content-Type: application/xml';
Please login to merge, or discard this patch.
src/Api/Format/Processor.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * Get Header
26 26
      *
27 27
      * @return string
28
-    */
28
+     */
29 29
     public function getHeader()
30 30
     {
31 31
         return 'Content-Type: application/xml';
Please login to merge, or discard this patch.
src/Api/Controller/ServerInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     private function canUserPassWhiteList($clientIp, Config $config)
30 30
     {
31 31
         if ($config->whitelistEnabled) {
32
-            if (! in_array($clientIp, $config->whitelist)) {
32
+            if (!in_array($clientIp, $config->whitelist)) {
33 33
                 return false;
34 34
             }
35 35
         }
Please login to merge, or discard this patch.