Completed
Push — master ( 04bcb8...6a26ee )
by Sébastien
09:59
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.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@
 block discarded – undo
279 279
         $classpath = implode(':', $jars);
280 280
         $threads = $this->config->getThreads();
281 281
 
282
-        $directives = ' -D' . implode(' -D', [
282
+        $directives = ' -D'.implode(' -D', [
283 283
                     'php.java.bridge.daemon="false"',
284 284
                     "php.java.bridge.threads=$threads"
285 285
         ]);
Please login to merge, or discard this patch.
src/PjbServer/Tools/StandaloneServer/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         // Four levels back.
225 225
         $ds = DIRECTORY_SEPARATOR;
226
-        $dir = __DIR__ . "$ds..$ds..$ds..$ds..$ds";
226
+        $dir = __DIR__."$ds..$ds..$ds..$ds..$ds";
227 227
         $base_dir = realpath($dir);
228 228
         if (!$base_dir) {
229 229
             $message = 'Cannot resolve project base directory.';
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
         // Step 2: server_jar file must exists
254 254
         if (!is_file($config['server_jar']) || !is_readable($config['server_jar'])) {
255
-            throw new Exception\InvalidArgumentException("Server jar file not exists or unreadable. server-jar: '" . $config['server_jar'] . "'");
255
+            throw new Exception\InvalidArgumentException("Server jar file not exists or unreadable. server-jar: '".$config['server_jar']."'");
256 256
         }
257 257
 
258 258
         // Step 3: log and pid file should be creatable
Please login to merge, or discard this patch.
src/PjbServer/Tools/Console/Command/PjbServerRestartCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $this->server = new StandaloneServer($config, $logger);
59 59
         $this->server->restart();
60 60
 
61
-        $logger->debug("Server output: \n" . $this->server->getOutput());
61
+        $logger->debug("Server output: \n".$this->server->getOutput());
62 62
 
63 63
         $output->writeln("Server successfully restarted on port $port");
64 64
 
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,16 +25,16 @@
 block discarded – undo
25 25
     protected function configure()
26 26
     {
27 27
         $this->setName('pjbserver:restart')
28
-             ->setDescription(
29
-                 'Restart the standalone pjb server (java)'
30
-               )
31
-             ->addArgument(
32
-                 'config-file',
33
-                 InputArgument::REQUIRED,
34
-                 'Configuration file, see ./dist/pjbserver.config.php.dist'
35
-               )
36
-             ->setHelp(
37
-                 <<<'EOT'
28
+                ->setDescription(
29
+                    'Restart the standalone pjb server (java)'
30
+                )
31
+                ->addArgument(
32
+                    'config-file',
33
+                    InputArgument::REQUIRED,
34
+                    'Configuration file, see ./dist/pjbserver.config.php.dist'
35
+                )
36
+                ->setHelp(
37
+                    <<<'EOT'
38 38
 Start the php java bridge server in the background.
39 39
 EOT
40 40
         );
Please login to merge, or discard this patch.
src/PjbServer/Tools/Console/Command/PjbServerStopCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@
 block discarded – undo
23 23
     protected function configure()
24 24
     {
25 25
         $this->setName('pjbserver:stop')
26
-             ->setDescription(
27
-                 'Stop the standalone pjb server (java)'
28
-               )
26
+                ->setDescription(
27
+                    'Stop the standalone pjb server (java)'
28
+                )
29 29
             ->addArgument(
30 30
                 'config-file',
31 31
                 InputArgument::REQUIRED,
32 32
                 'Configuration file, see ./dist/pjbserver.config.php.dist'
33 33
             )
34
-             ->setHelp(
35
-                 <<<'EOT'
34
+                ->setHelp(
35
+                    <<<'EOT'
36 36
 Stop the standalone php java bridge server (running in the background).
37 37
 EOT
38 38
         );
Please login to merge, or discard this patch.
src/PjbServer/Tools/Console/Command/PjbServerStatusCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@
 block discarded – undo
24 24
     protected function configure()
25 25
     {
26 26
         $this->setName('pjbserver:status')
27
-             ->setDescription(
28
-                 'Get the status of the standalone pjb server (java)'
29
-               )
27
+                ->setDescription(
28
+                    'Get the status of the standalone pjb server (java)'
29
+                )
30 30
             ->addArgument(
31 31
                 'config-file',
32 32
                 InputArgument::REQUIRED,
33 33
                 'Configuration file, see ./dist/pjbserver.config.php.dist'
34 34
             )
35 35
 
36
-             ->setHelp(
37
-                 <<<'EOT'
36
+                ->setHelp(
37
+                    <<<'EOT'
38 38
 Get the status of the php java bridge server in the background.
39 39
 EOT
40 40
         );
Please login to merge, or discard this patch.
src/PjbServer/Tools/Console/Command/PjbServerStartCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
     protected function configure()
24 24
     {
25 25
         $this->setName('pjbserver:start')
26
-             ->setDescription(
27
-                 'Start the standalone pjb server (java)'
28
-               )
26
+                ->setDescription(
27
+                    'Start the standalone pjb server (java)'
28
+                )
29 29
             ->addArgument(
30 30
                 'config-file',
31 31
                 InputArgument::REQUIRED,
32 32
                 'Configuration file, see ./dist/pjbserver.config.php.dist'
33 33
             )
34 34
 
35
-             ->setHelp(
36
-                 <<<'EOT'
35
+                ->setHelp(
36
+                    <<<'EOT'
37 37
 Start the php java bridge server in the background.
38 38
 EOT
39 39
         );
Please login to merge, or discard this patch.
src/PjbServer/Tools/Console/Command/PjbServerRevealCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
     protected function configure()
24 24
     {
25 25
         $this->setName('pjbserver:reveal')
26
-             ->setDescription(
27
-                 'Print the underlying java cli command'
28
-               )
26
+                ->setDescription(
27
+                    'Print the underlying java cli command'
28
+                )
29 29
             ->addArgument(
30 30
                 'config-file',
31 31
                 InputArgument::REQUIRED,
32 32
                 'Configuration file, see ./dist/pjbserver.config.php.dist'
33 33
             )
34 34
 
35
-             ->setHelp(
36
-                 <<<'EOT'
35
+                ->setHelp(
36
+                    <<<'EOT'
37 37
 Echo the underlying cli command (call to java) that will be called.
38 38
 EOT
39 39
         );
Please login to merge, or discard this patch.
src/PjbServer/Tools/System/Process.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
                 $process = new Linux\LinuxProcess($logger);
53 53
                 break;
54 54
             default:
55
-                $msg = "System style '" . $style . "' is not supported";
55
+                $msg = "System style '".$style."' is not supported";
56 56
                 throw new UnsupportedSystemException($msg);
57 57
         }
58 58
 
Please login to merge, or discard this patch.