Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 29, 2018
1 parent 1c86eb1 commit 39f25c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 0 additions & 4 deletions htdocs/core/lib/tax.lib.php
Expand Up @@ -236,11 +236,7 @@ function tax_by_date($type, $db, $y, $q, $date_start, $date_end, $modetax, $dire
$total_localtax1='total_localtax1';
$total_localtax2='total_localtax2';

<<<<<<< HEAD
// CAS DES BIENS/PRODUITS
=======
// CAS DES BIENS
>>>>>>> branch '7.0' of git@github.com:Dolibarr/dolibarr.git

// Define sql request
$sql='';
Expand Down
24 changes: 15 additions & 9 deletions htdocs/dav/dav.class.php
Expand Up @@ -23,10 +23,8 @@


/**
* Define Common function to access calendar items
* And format it in vCalendar
* */

* Define Common function to access calendar items and format it in vCalendar
*/
class CdavLib
{

Expand All @@ -46,8 +44,9 @@ function __construct($user, $db, $langs)
/**
* Base sql request for calendar events
*
* @param int calendar user id
* @param int actioncomm object id
* @param int $calid Calendard id
* @param int|boolean $oid Oid
* @param int|boolean $ouri Ouri
* @return string
*/
public function getSqlCalEvents($calid, $oid=false, $ouri=false)
Expand Down Expand Up @@ -113,7 +112,8 @@ public function getSqlCalEvents($calid, $oid=false, $ouri=false)
/**
* Convert calendar row to VCalendar string
*
* @param row object
* @param int $calid Calendar id
* @param Object $obj Object id
* @return string
*/
public function toVCalendar($calid, $obj)
Expand Down Expand Up @@ -239,11 +239,17 @@ public function toVCalendar($calid, $obj)
return $caldata;
}

/**
* getFullCalendarObjects
*
* @param int $calendarId Calendar id
* @param int $bCalendarData Add calendar data
* @return array|string[][]|unknown[][]|NULL[][]
*/
public function getFullCalendarObjects($calendarId, $bCalendarData)
{

$calid = ($calendarId*1);
$calevents = [] ;
$calevents = array();

if(! $this->user->rights->agenda->myactions->read)
return $calevents;
Expand Down

0 comments on commit 39f25c9

Please sign in to comment.