Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/VCL/General.php

    r873 r874  
    1515    if ($Persistent) $_SESSION[$Name] = $Result;
    1616  }
    17   return ($Result);
     17  return $Result;
    1818}
    1919
     
    3434    $Output = '';
    3535    //$Output .= '#'.$this->Id;
    36     return ($Output);
     36    return $Output;
    3737  }
    3838
     
    5353      foreach ($this->Items as $Item)
    5454        $Output .= $Item->Show();
    55       return ($Output);
     55      return $Output;
    5656    }
    5757  }
     
    7272    if ($this->Visible)
    7373    {
    74       return (parent::Show().'<button>'.$this->Caption.'</button>');
     74      return parent::Show().'<button>'.$this->Caption.'</button>';
    7575    }
    7676  }
     
    8383  function Show()
    8484  {
    85     return (parent::Show().'<input type="text" name="'.$this->Id.'" value="'.$this->Text.'"/>');
     85    return parent::Show().'<input type="text" name="'.$this->Id.'" value="'.$this->Text.'"/>';
    8686  }
    8787
     
    119119    }
    120120    $Output .= '<br/>';
    121     return ($Output);
     121    return $Output;
    122122  }
    123123
     
    134134  function Show()
    135135  {
    136     return ($this->Name);
     136    return $this->Name;
    137137  }
    138138}
     
    170170    }
    171171    $Output .= '</table>';
    172     return ($Output);
     172    return $Output;
    173173  }
    174174}
     
    192192  function ColumnClick($Column)
    193193  {
    194     return ('?'.$this->Id.'_SortColumn='.$Column->Id.'&amp;'.$this->Id.'_SortOrder='.(1 - $this->SortOrder));
     194    return '?'.$this->Id.'_SortColumn='.$Column->Id.'&amp;'.$this->Id.'_SortOrder='.(1 - $this->SortOrder);
    195195  }
    196196
     
    208208    if ($this->OnColumnClick != '')
    209209      $Output = '<a href="'.call_user_func($this->OnColumnClick, $Column).'">'.$Output.'</a>';
    210     return ($Output);
     210    return $Output;
    211211  }
    212212
     
    219219    $Output .= parent::Show();
    220220    $Output .= $this->PageSelect->Show();
    221     return ($Output);
     221    return $Output;
    222222  }
    223223
     
    251251    }
    252252    $Output .= '</table>';
    253     return ($Output);
     253    return $Output;
    254254  }
    255255
     
    279279      $Output = '<a href="?'.$Link.'">'.$Output.'</a>';
    280280    };
    281     return ($Output);
     281    return $Output;
    282282  }
    283283
     
    301301      $Output .= $Item->Show();
    302302    $Output .= '</body></html>';
    303     return ($Output);
     303    return $Output;
    304304  }
    305305
Note: See TracChangeset for help on using the changeset viewer.