Skip to content

Commit

Permalink
add params to docblock, formatted file
Browse files Browse the repository at this point in the history
  • Loading branch information
tharsheblows committed Jul 18, 2024
1 parent 3181d80 commit 11f8904
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions connectors/class-connector-gravityforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ public function callback_gform_update_status( $lead_id, $status, $prev = '' ) {
* @param string $status Status.
*/
public function callback_gform_update_is_read( $lead_id, $status ) {
$lead = $this->get_lead( $lead_id );
$form = $this->get_form( $lead['form_id'] );
$lead = $this->get_lead( $lead_id );
$form = $this->get_form( $lead['form_id'] );

$this->log(
sprintf(
Expand Down Expand Up @@ -847,7 +847,7 @@ public function callback_gform_update_is_starred( $lead_id, $status ) {
esc_html__( 'starred', 'stream' ),
esc_html__( 'unstarred', 'stream' )
);
$action = $status_for_message;
$action = $status_for_message;

$this->log(
sprintf(
Expand Down Expand Up @@ -1040,7 +1040,9 @@ private function get_form_title_for_message( $form ) {
/**
* Get the status to use in a message with percentages in translation escaped.
*
* @param bool $conditional Whether or not it's a new form.
* @param bool $conditional Whether or not it's a new form.
* @param string $true_string The string to return when the conditional is true.
* @param string $false_string The string to return when the conditional is false.
* @return string The status with percentages escaped.
*/
private function get_status_for_message( $conditional, $true_string, $false_string ) {
Expand Down

0 comments on commit 11f8904

Please sign in to comment.