Completed
Push — 0.2 ( f8cb44 )
by Luis
09:01 queued 03:35
created
src/exceptions/phuml/invalidProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 {
5 5
     public function __construct() 
6 6
     {
7
-        parent::__construct( 'The supplied processor is invalid.' );
7
+        parent::__construct('The supplied processor is invalid.');
8 8
     }
9 9
 }
10 10
 
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/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.