Completed
Push — master ( d079a5...e6b0f2 )
by Sébastien
03:21
created
src/PjbServer/Tools/Network/PortTester.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             }
74 74
         }
75 75
         if (!in_array($this->options['backend'], $this->supportedBackends)) {
76
-            throw new \InvalidArgumentException("Unsupported backend '" . $this->options['backend'] . "'");
76
+            throw new \InvalidArgumentException("Unsupported backend '".$this->options['backend']."'");
77 77
         }
78 78
     }
79 79
 
Please login to merge, or discard this patch.
src/PjbServer/Tools/StandaloneServer/Config.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,6 @@
 block discarded – undo
57 57
      *
58 58
      * @throws Exception\InvalidArgumentException
59 59
      * @param array $config
60
-     * @param LoggerInterface $logger
61 60
      *
62 61
      */
63 62
     public function __construct(array $config)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function getDefaultConfig($port)
146 146
     {
147
-        $base_dir = realpath(__DIR__ . '/../../../../');
147
+        $base_dir = realpath(__DIR__.'/../../../../');
148 148
         $config = [];
149 149
         foreach ($this->default_config as $key => $value) {
150 150
             $tmp = str_replace('{base_dir}', $base_dir, $value);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         // Step 2: server_jar file must exists
173 173
         if (!is_file($config['server_jar']) || !is_readable($config['server_jar'])) {
174
-            throw new Exception\InvalidArgumentException("Server jar file not exists or unreadable. server-jar: '" . $config['server_jar'] ."'");
174
+            throw new Exception\InvalidArgumentException("Server jar file not exists or unreadable. server-jar: '".$config['server_jar']."'");
175 175
         }
176 176
 
177 177
         // Step 3: log and pid file should be creatable
Please login to merge, or discard this patch.
src/PjbServer/Tools/StandaloneServer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @param LoggerInterface $logger
62 62
      *
63 63
      */
64
-    public function __construct(StandaloneServer\Config $config, LoggerInterface $logger=null)
64
+    public function __construct(StandaloneServer\Config $config, LoggerInterface $logger = null)
65 65
     {
66 66
         $this->config = $config;
67 67
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $pid_file = $this->config->getPidFile();
174 174
         try {
175 175
             $pid = $this->getPid();
176
-            $running = $this->isProcessRunning($throws_exception=true);
176
+            $running = $this->isProcessRunning($throws_exception = true);
177 177
             if (!$running) {
178 178
                 if ($throws_exception) {
179 179
                     $msg = "Cannot stop: pid exists ($pid) but server process is not running";
@@ -247,12 +247,12 @@  discard block
 block discarded – undo
247 247
             $jars[] = $file;
248 248
         }
249 249
 */
250
-        $jars =[];
250
+        $jars = [];
251 251
         $jars[] = "/web/www/pjbserver-tools/resources/autoload/*.jar";
252 252
         $jars[] = $this->config->getServerJar();
253 253
         $classpath = implode(':', $jars);
254 254
 
255
-        $directives = ' -D' . implode(' -D', [
255
+        $directives = ' -D'.implode(' -D', [
256 256
                     'php.java.bridge.daemon="false"',
257 257
                     'php.java.bridge.threads=30'
258 258
         ]);
Please login to merge, or discard this patch.