Test Setup Failed
Push — symfony-console-application ( 3187e2 )
by Luis
14:36
created
src/classes/processor/options.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@  discard block
 block discarded – undo
8 8
 
9 9
     protected $properties = array();    
10 10
 
11
-    public function __get( $key )
11
+    public function __get($key)
12 12
     {
13
-        if ( !array_key_exists( $key, $this->properties ) )
13
+        if (!array_key_exists($key, $this->properties))
14 14
         {
15
-            throw new plProcessorOptionException( $key, plProcessorOptionException::READ );
15
+            throw new plProcessorOptionException($key, plProcessorOptionException::READ);
16 16
         }
17 17
         return $this->properties[$key]['data'];
18 18
     }
19 19
 
20
-    public function __set( $key, $val )
20
+    public function __set($key, $val)
21 21
     {
22
-        if ( !array_key_exists( $key, $this->properties ) )
22
+        if (!array_key_exists($key, $this->properties))
23 23
         {
24
-            throw new plProcessorOptionException( $key, plProcessorOptionException::WRITE );
24
+            throw new plProcessorOptionException($key, plProcessorOptionException::WRITE);
25 25
         }
26 26
         $this->properties[$key]['data'] = $val;            
27 27
     }
@@ -29,27 +29,27 @@  discard block
 block discarded – undo
29 29
     public function getOptions() 
30 30
     {
31 31
         $options = array();
32
-        foreach( $this->properties as $key => $property ) 
32
+        foreach ($this->properties as $key => $property) 
33 33
         {
34 34
             $options[] = $key;
35 35
         }
36 36
         return $options;
37 37
     }
38 38
 
39
-    public function getOptionDescription( $option ) 
39
+    public function getOptionDescription($option) 
40 40
     {
41
-        if ( !array_key_exists( $option, $this->properties ) ) 
41
+        if (!array_key_exists($option, $this->properties)) 
42 42
         {
43
-            throw new plProcessorOptionException( $option, plProcessorOptionException::UNKNOWN );
43
+            throw new plProcessorOptionException($option, plProcessorOptionException::UNKNOWN);
44 44
         }
45 45
         return $this->properties[$option]['description'];
46 46
     }
47 47
 
48
-    public function getOptionType( $option ) 
48
+    public function getOptionType($option) 
49 49
     {
50
-        if ( !array_key_exists( $option, $this->properties ) ) 
50
+        if (!array_key_exists($option, $this->properties)) 
51 51
         {
52
-            throw new plProcessorOptionException( $option, plProcessorOptionException::UNKNOWN );
52
+            throw new plProcessorOptionException($option, plProcessorOptionException::UNKNOWN);
53 53
         }
54 54
         return $this->properties[$option]['type'];
55 55
     }
Please login to merge, or discard this patch.
src/exceptions/base/property.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
     const READ = 1;
6 6
     const WRITE = 2;
7 7
     
8
-    public function __construct( $key, $type ) 
8
+    public function __construct($key, $type) 
9 9
     {
10
-        parent::__construct( 'Invalid property access. The property "' . $key . '" is not '. ( $type === self::READ ? 'readable' : 'writable' ) . '.'  );
10
+        parent::__construct('Invalid property access. The property "' . $key . '" is not ' . ($type === self::READ ? 'readable' : 'writable') . '.');
11 11
     }
12 12
 }
13 13
 
Please login to merge, or discard this patch.
src/exceptions/processor/option.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
               : ( ( $type === self::UNKNOWN )
18 18
                 ? ( 'existent' )
19 19
                 : ( 'writable')
20
-              ) 
20
+                ) 
21 21
             . ' in this context.'
22 22
         );
23 23
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
     const WRITE = 2;
7 7
     const UNKNOWN = 3;
8 8
     
9
-    public function __construct( $key, $type ) 
9
+    public function __construct($key, $type) 
10 10
     {
11 11
         parent::__construct( 
12 12
             'The option "' 
13 13
             . $key 
14 14
             . '" is not '
15
-            . ( $type === self::READ ) 
16
-              ? ( 'readable' )
17
-              : ( ( $type === self::UNKNOWN )
18
-                ? ( 'existent' )
19
-                : ( 'writable')
15
+            . ($type === self::READ) 
16
+              ? ('readable')
17
+              : (($type === self::UNKNOWN)
18
+                ? ('existent')
19
+                : ('writable')
20 20
               ) 
21 21
             . ' in this context.'
22 22
         );
Please login to merge, or discard this patch.
src/exceptions/processor/notFound.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 class plProcessorNotFoundException extends Exception
4 4
 {
5
-    public function __construct( $processor ) 
5
+    public function __construct($processor) 
6 6
     {
7
-        parent::__construct( 'The needed processor class "' . $processor . '" could not be found.' );
7
+        parent::__construct('The needed processor class "' . $processor . '" could not be found.');
8 8
     }
9 9
 }
10 10
 
Please login to merge, or discard this patch.
src/Graphviz/Digraph.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     private function elementsToDotLanguage(): string
64 64
     {
65
-        $dotFormat = array_map(function (HasDotRepresentation $element) {
65
+        $dotFormat = array_map(function(HasDotRepresentation $element) {
66 66
             return $element->toDotLanguage();
67 67
         }, $this->dotElements);
68 68
 
Please login to merge, or discard this patch.
src/Code/ClassDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function hasConstructor(): bool
47 47
     {
48
-        return \count(array_filter($this->functions, function (Method $function) {
48
+        return \count(array_filter($this->functions, function(Method $function) {
49 49
             return $function->isConstructor();
50 50
         })) === 1;
51 51
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return [];
58 58
         }
59 59
 
60
-        $constructors = array_filter($this->functions, function (Method $function) {
60
+        $constructors = array_filter($this->functions, function(Method $function) {
61 61
             return $function->isConstructor();
62 62
         });
63 63
 
Please login to merge, or discard this patch.