Add space between catch and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 12:57:42 +01:00
committed by M. Shull
parent a8972ca281
commit 9e9561e576
50 changed files with 115 additions and 115 deletions

View File

@ -197,9 +197,9 @@ class Model extends \Sudzy\ValidModel {
$this->_new_record = $this->isNew();
try {
parent::save();
} catch(\Sudzy\ValidationException $e) {
} catch (\Sudzy\ValidationException $e) {
$this->setError($e->getValidationErrors());
} catch(\PDOException $e) {
} catch (\PDOException $e) {
switch ($e->getCode()) {
case 23000:
preg_match("/for key \'(.*?)\'/i", $e->getMessage(), $matches);
@ -330,7 +330,7 @@ class Model extends \Sudzy\ValidModel {
public static function __callStatic($method, $parameters) {
try {
return parent::__callStatic($method, $parameters);
} catch(\PDOException $e) {
} catch (\PDOException $e) {
throw new \Exception($e->getMessage());
}
}