Completed
Push — master ( aa44e9...fa84e5 )
by Ralf
90:14 queued 73:21
created
api/src/Exception/NoPermission/Record.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Exception/WrongUserinput.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,4 +17,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Exception/WrongParameter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Exception/AssertionFailed.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,4 +20,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Exception/NoPermission.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,10 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
api/src/Db/Exception/NotUnique.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Db/Exception/InvalidSql.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Db/Exception/Setup.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.
api/src/Db/Exception/Support.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,6 @@
 block discarded – undo
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
+}
Please login to merge, or discard this patch.