Completed
Push — master ( a7c9d2...2e8aa2 )
by joseph
9s
created
src/MockServerConfig.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public const IP_LOCALHOST            = '0.0.0.0';
18 18
     public const IP_CALCULATE_NETWORK_IP = 'calculate';
19 19
     public const IP_CALCULATE_CMD        = 'ip route get 8.8.8.8 | '
20
-                                           . 'awk \'{ for (nn=1;nn<=NF;nn++) if ($nn~"src") print $(nn+1) }\' ';
20
+                                            . 'awk \'{ for (nn=1;nn<=NF;nn++) if ($nn~"src") print $(nn+1) }\' ';
21 21
     public const DEFAULT_IP              = self::IP_LOCALHOST;
22 22
 
23 23
     public const KEY_PORT     = 'MockServer_Port';
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public const DEFAULT_HTDOCS_PATH = '/tests/MockServer/htdocs';
31 31
 
32 32
     public const KEY_LOGS_PATH     = 'MockServer_LogsPath';
33
-    public const DEFAULT_LOGS_PATH = __DIR__ . '/../var/logs/';
33
+    public const DEFAULT_LOGS_PATH = __DIR__.'/../var/logs/';
34 34
 
35 35
 
36 36
     /**
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         );
57 57
         if (0 !== $exitCode) {
58 58
             throw new MockServerException(
59
-                'Failed getting mock server IP, got exit code ' . $exitCode . ' and output: '
60
-                . "\n" . implode("\n", $output)
59
+                'Failed getting mock server IP, got exit code '.$exitCode.' and output: '
60
+                . "\n".implode("\n", $output)
61 61
             );
62 62
         }
63 63
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public static function getRouterPath(): string
73 73
     {
74
-        return $_SERVER[self::KEY_ROUTER_PATH] ?? self::getPathToProjectRoot() . '/' . self::DEFAULT_ROUTER_PATH;
74
+        return $_SERVER[self::KEY_ROUTER_PATH] ?? self::getPathToProjectRoot().'/'.self::DEFAULT_ROUTER_PATH;
75 75
     }
76 76
 
77 77
     /**
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
85 85
 
86 86
             return \dirname($reflection->getFileName(), 3);
87 87
         } catch (\Exception $e) {
88
-            throw new MockServerException('Exception in ' . __METHOD__, $e->getCode(), $e);
88
+            throw new MockServerException('Exception in '.__METHOD__, $e->getCode(), $e);
89 89
         }
90 90
     }
91 91
 
92 92
     public static function getHtdocsPath(): string
93 93
     {
94
-        return $_SERVER[self::KEY_HTDOCS_PATH] ?? self::getPathToProjectRoot() . '/' . self::DEFAULT_HTDOCS_PATH;
94
+        return $_SERVER[self::KEY_HTDOCS_PATH] ?? self::getPathToProjectRoot().'/'.self::DEFAULT_HTDOCS_PATH;
95 95
     }
96 96
 
97 97
     public static function getLogsPath(): string
Please login to merge, or discard this patch.