PHP Code Sniffer fixes

This commit is contained in:
Jens Schuppe 2024-03-25 15:49:01 +01:00
parent 4e072b416a
commit 53745a3e07
4 changed files with 53 additions and 1 deletions

View file

@ -653,7 +653,8 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
elseif ($this->_op == 'delete') { elseif ($this->_op == 'delete') {
$this->profile->deleteProfile(); $this->profile->deleteProfile();
} }
} catch (ProfileException $e) { }
catch (ProfileException $e) {
Civi::log()->error($e->getLogMessage()); Civi::log()->error($e->getLogMessage());
CRM_Core_Session::setStatus( CRM_Core_Session::setStatus(
E::ts('Error'), E::ts('Error'),

View file

@ -1,4 +1,21 @@
<?php <?php
/*
* Copyright (C) 2024 SYSTOPIA GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation in version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types = 1);
namespace Civi\Twingle\Exceptions; namespace Civi\Twingle\Exceptions;

View file

@ -1,4 +1,21 @@
<?php <?php
/*
* Copyright (C) 2024 SYSTOPIA GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation in version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types = 1);
namespace Civi\Twingle\Exceptions; namespace Civi\Twingle\Exceptions;

View file

@ -1,4 +1,21 @@
<?php <?php
/*
* Copyright (C) 2024 SYSTOPIA GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation in version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types = 1);
namespace Civi\Twingle\Exceptions; namespace Civi\Twingle\Exceptions;