Skip to content

Commit

Permalink
Merge pull request #2602 from phili67/phili67-php-code-cleanup
Browse files Browse the repository at this point in the history
php code cleanup
  • Loading branch information
phili67 committed Apr 11, 2024
2 parents b20eeb3 + a8ba533 commit 20d95f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
10 changes: 1 addition & 9 deletions src/EcclesiaCRM/Service/CalendarService.php
Expand Up @@ -22,21 +22,13 @@
use EcclesiaCRM\UserQuery;
use EcclesiaCRM\EventCountsQuery;

use EcclesiaCRM\Map\EventTableMap;
use EcclesiaCRM\Map\EventTypesTableMap;
use EcclesiaCRM\Map\GroupTableMap;

use EcclesiaCRM\Map\CalendarinstancesTableMap;
use EcclesiaCRM\Map\PrincipalsTableMap;
use EcclesiaCRM\dto\SystemConfig;
use EcclesiaCRM\EventAttend;
use EcclesiaCRM\EventCounts;

use EcclesiaCRM\SessionUser;
use EcclesiaCRM\Utils\GeoUtils;
use EcclesiaCRM\Utils\LoggerUtils;
use EcclesiaCRM\Utils\MiscUtils;
use http\Client\Curl\User;
use Propel\Runtime\ActiveQuery\Criteria;
use EcclesiaCRM\dto\SystemURLs;
use EcclesiaCRM\Utils\OutputUtils;
Expand Down Expand Up @@ -968,7 +960,7 @@ public function removeEventFromCalendar($calendarID, $eventID, $reccurenceID = n
public function modifyEventFromCalendar($calendarID, $eventID, $reccurenceID, $start, $end, $EventTitle,
$EventDesc, $location, $addGroupAttendees, $alarm, $eventTypeID,
$eventNotes, $eventInActive, $Fields, $EventCountNotes, $recurrenceValid, $recurrenceType,
$endrecurrence, $allDay)
$endrecurrence, $allDay = false)
{
$old_event = EventQuery::Create()->findOneById($eventID);

Expand Down
2 changes: 0 additions & 2 deletions src/EcclesiaCRM/Service/PastoralCareService.php
Expand Up @@ -84,8 +84,6 @@ public function getRange()
public function getPersonClassificationNotBeenReached($yet = false)
{
if (!$yet) {
$pdo = Propel::getConnection();

// TO DO : convert query to propel (complex).

$sSQL = "SELECT family_fam.fam_Name AS LastName,
Expand Down
6 changes: 3 additions & 3 deletions src/EcclesiaCRM/dto/Notification.php
Expand Up @@ -59,7 +59,7 @@ private function sendEmail()
$email = new NotificationEmail($emailaddresses,$this->person->getFullName());
$emailStatus=$email->send();
return $emailStatus;
} catch (Exception $ex) {
} catch (\Exception $ex) {
return false;
}

Expand All @@ -81,7 +81,7 @@ private function sendSMS()
]);
}
return $message;
} catch (Exception $ex) {
} catch (\Exception $ex) {
return false;
}

Expand All @@ -96,7 +96,7 @@ private function sendProjector()
SystemConfig::getValue("sOLPPassword"));
$OLPAlert->setAlertText($this->projectorText);
return $OLPAlert->send();
} catch (Exception $ex) {
} catch (\Exception $ex) {
return false;
}

Expand Down

0 comments on commit 20d95f8

Please sign in to comment.