Passed
Push — develop ( 73bc77...71bbc5 )
by nguereza
14:43 queued 18s
created
src/Input/Parameter.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class Parameter
55 55
  * @package Platine\Console\Input
56 56
  */
57
-abstract class Parameter
58
-{
57
+abstract class Parameter {
59 58
     /**
60 59
      * The name of the parameter
61 60
      * @var string
@@ -164,8 +163,7 @@  discard block
 block discarded – undo
164 163
      * Return the parameter default value
165 164
      * @return mixed
166 165
      */
167
-    public function getDefault()
168
-    {
166
+    public function getDefault() {
169 167
         if ($this->isVariadic()) {
170 168
             return (array) $this->default;
171 169
         }
@@ -206,8 +204,7 @@  discard block
 block discarded – undo
206 204
      * @param mixed $raw
207 205
      * @return mixed
208 206
      */
209
-    public function filter($raw)
210
-    {
207
+    public function filter($raw) {
211 208
         if ($this->filter !== null) {
212 209
             $callback = $this->filter;
213 210
 
Please login to merge, or discard this patch.
src/Command/Command.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
  * @class Command
65 65
  * @package Platine\Console\Command
66 66
  */
67
-class Command extends Parser
68
-{
67
+class Command extends Parser {
69 68
     /**
70 69
      * The command version
71 70
      * @var string
Please login to merge, or discard this patch.
src/Command/Shell.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class Shell
55 55
  * @package Platine\Console\Command
56 56
  */
57
-class Shell
58
-{
57
+class Shell {
59 58
     public const STDIN_DESCRIPTOR = 0;
60 59
     public const STDOUT_DESCRIPTOR = 1;
61 60
     public const STDERR_DESCRIPTOR = 2;
@@ -152,8 +151,7 @@  discard block
 block discarded – undo
152 151
     /**
153 152
      * Create new instance
154 153
      */
155
-    public function __construct()
156
-    {
154
+    public function __construct() {
157 155
         if (!function_exists('proc_open')) {
158 156
             throw new RuntimeException(
159 157
                 'The "proc_open" could not be found in your PHP setup'
Please login to merge, or discard this patch.
src/Exception/InvalidArgumentException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class InvalidArgumentException
39 39
  * @package Platine\Console\Exception
40 40
  */
41
-class InvalidArgumentException extends ConsoleException
42
-{
41
+class InvalidArgumentException extends ConsoleException {
43 42
 }
Please login to merge, or discard this patch.
src/Exception/ConsoleException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,6 +40,5 @@
 block discarded – undo
40 40
  * @class ConsoleException
41 41
  * @package Platine\Console\Exception
42 42
  */
43
-class ConsoleException extends Exception
44
-{
43
+class ConsoleException extends Exception {
45 44
 }
Please login to merge, or discard this patch.
src/Exception/RuntimeException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class RuntimeException
39 39
  * @package Platine\Console\Exception
40 40
  */
41
-class RuntimeException extends ConsoleException
42
-{
41
+class RuntimeException extends ConsoleException {
43 42
 }
Please login to merge, or discard this patch.
src/Exception/InvalidParameterException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class InvalidParameterException
39 39
  * @package Platine\Console\Exception
40 40
  */
41
-class InvalidParameterException extends ConsoleException
42
-{
41
+class InvalidParameterException extends ConsoleException {
43 42
 }
Please login to merge, or discard this patch.
src/Util/Helper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class Helper
56 56
  * @package Platine\Console\Util
57 57
  */
58
-class Helper
59
-{
58
+class Helper {
60 59
     /**
61 60
      * Convert the given string to camel case
62 61
      * @param string $str
Please login to merge, or discard this patch.
src/Util/OutputHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class OutputHelper
61 61
  * @package Platine\Console\Util
62 62
  */
63
-class OutputHelper
64
-{
63
+class OutputHelper {
65 64
     /**
66 65
      * The writer stream instance
67 66
      * @var Writer
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
      * Create new instance
79 78
      * @param Writer|null $writer
80 79
      */
81
-    public function __construct(?Writer $writer = null)
82
-    {
80
+    public function __construct(?Writer $writer = null) {
83 81
         $this->writer = $writer ?? new Writer();
84 82
     }
85 83
 
Please login to merge, or discard this patch.