Skip to content

Commit

Permalink
Variables in camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
datengraben committed Feb 10, 2025
1 parent fff9610 commit 7dadd94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Messages/BookingCodesMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ public function sendMessage(): bool {

$bookingTable = \CommonsBooking\View\BookingCodes::renderTableFor( 'email', $bookingCodes );

$cb_settings_option = Settings::getOption( 'commonsbooking_options_bookingcodes', 'mail-booking-' . $this->action . '-attach-ical' );
$cbSettingsOption = Settings::getOption( 'commonsbooking_options_bookingcodes', 'mail-booking-' . $this->action . '-attach-ical' );
/**
* Default value (from option settings) whether adding the ical attachment to booking codes email.
*
* @since 2.9.0
*
* @param bool $cb_settings_option
* @param bool $cbSettingsOption
* @param \CommonsBooking\Model\Timeframe $timeframe for which the booking codes are sent
*/
$bAddIcal = apply_filters(
'commonsbooking_emailcodes_addical',
$cb_settings_option,
$cbSettingsOption,
$timeframe
);
$attachment = $bAddIcal ? $this->getIcalAttachment( $bookingCodes ) : null;
Expand Down
12 changes: 6 additions & 6 deletions src/Repository/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public static function getSelectableCBManagers() {
* @return string[]
*/
public static function getManagerRoles(): array {
$manager_roles = [ Plugin::$CB_MANAGER_ID ];
$managerRoles = [ Plugin::$CB_MANAGER_ID ];
/**
* Default list of manager roles
*
* @since 2.9.0
*
* @param string[] $manager_roles list of allowed manager roles that is returned by {@see UserRepository::getManagerRoles()}
* @param string[] $managerRoles list of allowed manager roles that is returned by {@see UserRepository::getManagerRoles()}
*/
return apply_filters( 'commonsbooking_manager_roles', $manager_roles );
return apply_filters( 'commonsbooking_manager_roles', $managerRoles );
}

/**
Expand All @@ -40,15 +40,15 @@ public static function getManagerRoles(): array {
* @return string[]
*/
public static function getAdminRoles(): array {
$admin_roles = [ 'administrator' ];
$adminRoles = [ 'administrator' ];
/**
* Default list of admin roles
*
* @since 2.8.3
*
* @param string[] $admin_roles list of allowed admin roles that are returned by {@see UserRepository::getAdminRoles()}
* @param string[] $adminRoles list of allowed admin roles that are returned by {@see UserRepository::getAdminRoles()}
*/
return apply_filters( 'commonsbooking_admin_roles', $admin_roles );
return apply_filters( 'commonsbooking_admin_roles', $adminRoles );
}

/**
Expand Down

0 comments on commit 7dadd94

Please sign in to comment.