@@ -19,4 +19,6 @@ |
||
19 | 19 | * User lacks a record level permission, eg. he's not the owner and has no grant from the owner |
20 | 20 | * |
21 | 21 | */ |
22 | -class Record extends Exception\NoPermission { } |
|
22 | +class Record extends Exception\NoPermission |
|
23 | +{ |
|
24 | +} |
@@ -17,4 +17,6 @@ |
||
17 | 17 | * Wrong or missing required user input: message should be translated so it can be shown directly to the user |
18 | 18 | * |
19 | 19 | */ |
20 | -class WrongUserinput extends AssertionFailed { } |
|
20 | +class WrongUserinput extends AssertionFailed |
|
21 | +{ |
|
22 | +} |
@@ -18,4 +18,6 @@ |
||
18 | 18 | * |
19 | 19 | * As you get this only by an error in the code or during development, the message does not need to be translated |
20 | 20 | */ |
21 | -class WrongParameter extends AssertionFailed { } |
|
21 | +class WrongParameter extends AssertionFailed |
|
22 | +{ |
|
23 | +} |
@@ -20,4 +20,6 @@ |
||
20 | 20 | * |
21 | 21 | * As you get this only by an error in the code or during development, the message does not need to be translated |
22 | 22 | */ |
23 | -class AssertionFailed extends Api\Exception { } |
|
23 | +class AssertionFailed extends Api\Exception |
|
24 | +{ |
|
25 | +} |
@@ -27,10 +27,10 @@ |
||
27 | 27 | * @param string $msg =null message, default "Database error!" |
28 | 28 | * @param int $code =100 |
29 | 29 | */ |
30 | - function __construct($msg=null,$code=100) |
|
30 | + function __construct($msg = null, $code = 100) |
|
31 | 31 | { |
32 | 32 | if (is_null($msg)) $msg = lang('Database error!'); |
33 | 33 | |
34 | - parent::__construct($msg,$code); |
|
34 | + parent::__construct($msg, $code); |
|
35 | 35 | } |
36 | 36 | } |
@@ -29,7 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | function __construct($msg=null,$code=100) |
31 | 31 | { |
32 | - if (is_null($msg)) $msg = lang('Permisson denied!'); |
|
32 | + if (is_null($msg)) |
|
33 | + { |
|
34 | + $msg = lang('Permisson denied!'); |
|
35 | + } |
|
33 | 36 | |
34 | 37 | parent::__construct($msg,$code); |
35 | 38 | } |
@@ -18,4 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * Storing the row violates a unique key constrain |
20 | 20 | */ |
21 | -class NotUnique extends Db\Exception { } |
|
21 | +class NotUnique extends Db\Exception |
|
22 | +{ |
|
23 | +} |
@@ -19,4 +19,6 @@ |
||
19 | 19 | * New InvalidSql exception has to extend deprecated egw_exception_db_invalid_sql |
20 | 20 | * to allow legacy code to catch exceptions thrown by Api\Db! |
21 | 21 | */ |
22 | -class InvalidSql extends \egw_exception_db_invalid_sql {} |
|
22 | +class InvalidSql extends \egw_exception_db_invalid_sql |
|
23 | +{ |
|
24 | +} |
@@ -18,4 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * EGroupware not (fully) installed, visit setup |
20 | 20 | */ |
21 | -class Setup extends Db\Exception { } |
|
21 | +class Setup extends Db\Exception |
|
22 | +{ |
|
23 | +} |
@@ -18,4 +18,6 @@ |
||
18 | 18 | /** |
19 | 19 | * PHP lacks support for configured database type |
20 | 20 | */ |
21 | -class Support extends Db\Exception { } |
|
21 | +class Support extends Db\Exception |
|
22 | +{ |
|
23 | +} |