@@ -4,7 +4,7 @@ |
||
| 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 | |
@@ -5,9 +5,9 @@ |
||
| 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 | |
@@ -2,9 +2,9 @@ |
||
| 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 | |
@@ -2,9 +2,9 @@ |
||
| 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 | |
@@ -2,13 +2,13 @@ |
||
| 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 | |
@@ -6,17 +6,17 @@ |
||
| 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 | ); |
@@ -2,9 +2,9 @@ |
||
| 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 | |