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

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r873 r874  
    1111    $Output = '';
    1212    if (!$this->System->User->CheckPermission('Finance', 'Manage'))
    13       return ('Nemáte oprávnění');
     13      return 'Nemáte oprávnění';
    1414
    1515    if (array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation'];
     
    4242        $Output .= '<a href="'.$this->System->Link('/finance/import/').'">Import plateb</a><br />';
    4343    }
    44     return ($Output);
     44    return $Output;
    4545  }
    4646
     
    5252
    5353    $MonthCount = $this->System->Modules['Finance']->BillingPeriods[$Period]['MonthCount'];
    54     if ($MonthCount <= 0) return (array('From' => NULL, 'To' => NULL, 'MonthCount' => 0));
     54    if ($MonthCount <= 0) return array('From' => NULL, 'To' => NULL, 'MonthCount' => 0);
    5555    $MonthCurrent = date('n', $Time);
    5656
     
    6767    $PeriodTo = mktime(0, 0, 0, $MonthTo, date('t', mktime(0, 0, 0, $MonthTo, 1, $Year)), $Year);
    6868
    69     return (array('From' => $PeriodFrom, 'To' => $PeriodTo, 'MonthCount' => $MonthCount));
     69    return array('From' => $PeriodFrom, 'To' => $PeriodTo, 'MonthCount' => $MonthCount);
    7070  }
    7171
    7272  function ShowMonthlyPayment()
    7373  {
    74     if (!$this->System->User->CheckPermission('Finance', 'Manage')) return ('Nemáte oprávnění');
     74    if (!$this->System->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění';
    7575    $SQL = 'SELECT `Member`.*, `MemberPayment`.`MonthlyTotal` AS `Monthly`, '.
    7676      '`MemberPayment`.`Cash` AS `Cash`, '.
     
    120120    $Output .= $PageList['Output'];
    121121    $Output .= '<a href="?Operation=ProcessMonthlyPayment">Generovat faktury</a>';
    122     return ($Output);
     122    return $Output;
    123123  }
    124124
     
    149149    //$LastInsertTime = $Time;
    150150    //$this->CheckAdvancesAndLiabilities($Subject);
    151     return ($InvoiceId);
     151    return $InvoiceId;
    152152  }
    153153
     
    217217      $Output .= "\n";
    218218    }
    219     return ($Output);
     219    return $Output;
    220220  }
    221221
     
    270270    $this->TableUpdateChanges('ServiceCustomerRel');
    271271
    272     return ($Output);
     272    return $Output;
    273273  }
    274274
    275275  function ProcessMonthlyPayment()
    276276  {
    277     if (!$this->System->User->CheckPermission('Finance', 'Manage')) return ('Nemáte oprávnění');
     277    if (!$this->System->User->CheckPermission('Finance', 'Manage')) return 'Nemáte oprávnění';
    278278    $Output = '';
    279279
     
    335335    }
    336336    $Output = str_replace("\n", '<br/>', $Output);
    337     return ($Output);
     337    return $Output;
    338338  }
    339339
     
    478478    $Output .= $this->GenerateInvoice(' AND (`File` IS NULL)');
    479479    $Output .= $this->GenerateOperation(' AND (`File` IS NULL)');
    480     return ($Output);
     480    return $Output;
    481481  }
    482482}
Note: See TracChangeset for help on using the changeset viewer.