Passed
Push — master ( f8cb44...13b119 )
by Luis
04:20 queued 01:13
created
src/exceptions/generator/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 plStructureGeneratorNotFoundException extends Exception
4 4
 {
5
-    public function __construct( $generator ) 
5
+    public function __construct($generator) 
6 6
     {
7
-        parent::__construct( 'The needed generator class "' . $generator . '" could not be found.' );
7
+        parent::__construct('The needed generator class "' . $generator . '" could not be found.');
8 8
     }
9 9
 }
10 10
 
Please login to merge, or discard this patch.
src/exceptions/processor/graphviz/style/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 plGraphvizProcessorStyleNotFoundException extends Exception
4 4
 {
5
-    public function __construct( $style ) 
5
+    public function __construct($style) 
6 6
     {
7
-        parent::__construct( 'The needed dot style "' . $style . '" could not be found.' );
7
+        parent::__construct('The needed dot style "' . $style . '" could not be found.');
8 8
     }
9 9
 }
10 10
 
Please login to merge, or discard this patch.
src/exceptions/processor/externalExecution.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 {
5 5
     public function __construct( $output ) 
6 6
     {
7
-    	// Convert array to string if is_array
8
-    	if(is_array($output)) {
9
-    		$output = var_export($output, true);
10
-    	}
7
+        // Convert array to string if is_array
8
+        if(is_array($output)) {
9
+            $output = var_export($output, true);
10
+        }
11 11
         parent::__construct( 'Execution of external program failed:' . "\n" . $output );
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 class plProcessorExternalExecutionException extends Exception 
4 4
 {
5
-    public function __construct( $output ) 
5
+    public function __construct($output) 
6 6
     {
7 7
     	// Convert array to string if is_array
8
-    	if(is_array($output)) {
8
+    	if (is_array($output)) {
9 9
     		$output = var_export($output, true);
10 10
     	}
11
-        parent::__construct( 'Execution of external program failed:' . "\n" . $output );
11
+        parent::__construct('Execution of external program failed:' . "\n" . $output);
12 12
     }
13 13
 }
14 14
 
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/interfaces/processor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  discard block
 block discarded – undo
2 2
 
3 3
 abstract class plProcessor
4 4
 {
5
-    public static function factory( $processor )
5
+    public static function factory($processor)
6 6
     {
7
-        $classname = 'pl' . ucfirst( $processor ) . 'Processor';
8
-        if ( class_exists( $classname ) === false )
7
+        $classname = 'pl' . ucfirst($processor) . 'Processor';
8
+        if (class_exists($classname) === false)
9 9
         {
10
-            throw new plProcessorNotFoundException( $processor );
10
+            throw new plProcessorNotFoundException($processor);
11 11
         }
12 12
         return new $classname();
13 13
     }
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
         return $processors;
24 24
     }
25 25
 
26
-    public function writeToDisk( $input, $output )
26
+    public function writeToDisk($input, $output)
27 27
     {
28
-        file_put_contents( $output, $input );
28
+        file_put_contents($output, $input);
29 29
     }
30 30
 
31 31
     abstract public function getInputTypes();
32 32
     abstract public function getOutputType();
33
-    abstract public function process( $input, $type );
33
+    abstract public function process($input, $type);
34 34
 
35 35
 }
Please login to merge, or discard this patch.