Completed
Push — master ( 58f032...7df38f )
by Andrew
03:15
created
src/Http/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             $this->params[strtoupper($name)] = $value;
36 36
         }
37 37
 
38
-        $this->stdin  = $stdin;
38
+        $this->stdin = $stdin;
39 39
 
40 40
         rewind($this->stdin);
41 41
     }
Please login to merge, or discard this patch.
src/DaemonTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
     {
66 66
         declare (ticks = 1);
67 67
 
68
-        pcntl_signal(SIGINT, function () {
68
+        pcntl_signal(SIGINT, function() {
69 69
             throw new ShutdownException('Daemon shutdown requested (received SIGINT)');
70 70
         });
71 71
 
72
-        pcntl_signal(SIGALRM, function () {
72
+        pcntl_signal(SIGALRM, function() {
73 73
             throw new TimeLimitException('Daemon time limit reached (received SIGALRM)');
74 74
         });
75 75
     }
Please login to merge, or discard this patch.
src/Command/DaemonRunCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,19 +39,19 @@  discard block
 block discarded – undo
39 39
         $this->kernel          = $kernel;
40 40
         $this->driverContainer = $driverContainer;
41 41
 
42
-        $name        = $name        ?: self::DEFAULT_NAME;
42
+        $name        = $name ?: self::DEFAULT_NAME;
43 43
         $description = $description ?: self::DEFAULT_DESCRIPTION;
44 44
 
45 45
         parent::__construct($name);
46 46
 
47 47
         $this
48 48
             ->setDescription($description)
49
-            ->addOption('port',          null, InputOption::VALUE_OPTIONAL, 'TCP port to listen on (if not present, daemon will listen on FCGI_LISTENSOCK_FILENO)')
50
-            ->addOption('host',          null, InputOption::VALUE_OPTIONAL, 'TCP host to listen on')
49
+            ->addOption('port', null, InputOption::VALUE_OPTIONAL, 'TCP port to listen on (if not present, daemon will listen on FCGI_LISTENSOCK_FILENO)')
50
+            ->addOption('host', null, InputOption::VALUE_OPTIONAL, 'TCP host to listen on')
51 51
             ->addOption('request-limit', null, InputOption::VALUE_OPTIONAL, 'The maximum number of requests to handle before shutting down')
52
-            ->addOption('memory-limit',  null, InputOption::VALUE_OPTIONAL, 'The memory limit on the daemon instance before shutting down')
53
-            ->addOption('time-limit',    null, InputOption::VALUE_OPTIONAL, 'The time limit on the daemon in seconds before shutting down')
54
-            ->addOption('driver',        null, InputOption::VALUE_OPTIONAL, 'The implementation of the FastCGI protocol to use', 'userland');
52
+            ->addOption('memory-limit', null, InputOption::VALUE_OPTIONAL, 'The memory limit on the daemon instance before shutting down')
53
+            ->addOption('time-limit', null, InputOption::VALUE_OPTIONAL, 'The time limit on the daemon in seconds before shutting down')
54
+            ->addOption('driver', null, InputOption::VALUE_OPTIONAL, 'The implementation of the FastCGI protocol to use', 'userland');
55 55
     }
56 56
 
57 57
     /**
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
         $logger = new ConsoleLogger($output);
69 69
 
70 70
         $requestLimit = $input->getOption('request-limit') ?: DaemonOptions::NO_LIMIT;
71
-        $memoryLimit  = $input->getOption('memory-limit')  ?: DaemonOptions::NO_LIMIT;
72
-        $timeLimit    = $input->getOption('time-limit')    ?: DaemonOptions::NO_LIMIT;
71
+        $memoryLimit  = $input->getOption('memory-limit') ?: DaemonOptions::NO_LIMIT;
72
+        $timeLimit    = $input->getOption('time-limit') ?: DaemonOptions::NO_LIMIT;
73 73
 
74 74
         return new DaemonOptions([
75 75
             DaemonOptions::LOGGER        => $logger,
Please login to merge, or discard this patch.