Skip to content

Commit

Permalink
Reformat for codesniff
Browse files Browse the repository at this point in the history
  • Loading branch information
bryank-cs committed Mar 1, 2024
1 parent 3d4ad99 commit 1b5adfd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions workers/group_user_request_owner_reminder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Check failure on line 1 in workers/group_user_request_owner_reminder.php

View workflow job for this annotation

GitHub Actions / PHP_CodeSniffer

workers/group_user_request_owner_reminder.php#L1

Header blocks must be separated by a single blank line (PSR12.Files.FileHeader.SpacingAfterBlock)
/*
/**
Emails PIs that have oustanding member requests once a week for 4 weeks.
Removes the request after 34 days have passed.
*/
Expand All @@ -16,10 +16,9 @@
$request_date = strtotime($request[1]);
$daysDifference = ($today - $request_date) / (60 * 60 * 24);
if ($daysDifference > 34) {
# No interface in UnityGroup for this, so use DB directly
// No interface in UnityGroup for this, so use DB directly
$SQL->removeRequest($request[0], $pi_group->getPIUID());
}
elseif ($daysDifference > 1 && $daysDifference % 7 == 0) {
} elseif ($daysDifference > 1 && $daysDifference % 7 == 0) {
$new_user = $request[0];
// send email to PI
$MAILER->sendMail(
Expand Down

0 comments on commit 1b5adfd

Please sign in to comment.