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/Form/Types/File.php

    r873 r874  
    1616    $Result = $FileInfo->file($this->FileName);
    1717    //$FileInfo->close();
    18     return ($Result);
     18    return $Result;
    1919  }
    2020
     
    2424    if (file_exists($FileName)) $Result = filesize($FileName);
    2525      else $Result = 0;
    26     return ($Result);
     26    return $Result;
    2727  }
    2828
     
    3838    }
    3939    $Result = $this->UploadFileFolder.'/'.$Path.$File->Name;
    40     return ($Result);
     40    return $Result;
    4141  }
    4242
    4343  function GetExt()
    4444  {
    45     return (substr($this->Name, 0, strpos($this->Name, '.') - 1));
     45    return substr($this->Name, 0, strpos($this->Name, '.') - 1);
    4646  }
    4747
     
    5555    if ($this->TempName != '') $Content = file_get_contents($this->TempName);
    5656      else $Content = file_get_contents($this->GetFullName());
    57     return ($Content);
     57    return $Content;
    5858  }
    5959}
     
    7575  {
    7676    $File = &$Item['Value'];
    77     return ('<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'.
    78       $File.'</a> ('.HumanSize($File->Size).')');
     77    return '<a href="'.$this->FileDownloadURL.'?id='.$File->Id.'">'.
     78      $File.'</a> ('.HumanSize($File->Size).')';
    7979  }
    8080
     
    8686    $File = &$Item['Value'];
    8787    $Output = '<input type="file" name="'.$Item['Name'].'" value="'.$File->Name.'">';
    88     return ($Output);
     88    return $Output;
    8989  }
    9090
     
    103103      }
    104104    }
    105     return ($File);
     105    return $File;
    106106  }
    107107
     
    118118      $File->Directory = $DbRow['Directory'];
    119119    }
    120     return ($File);
     120    return $File;
    121121  }
    122122
Note: See TracChangeset for help on using the changeset viewer.