Skip to content

Commit

Permalink
php 7 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Feb 9, 2017
1 parent 5ae970b commit d877fcb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/pear/Calendar/Day.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Calendar_Day extends Calendar
* *
* @access public * @access public
*/ */
function Calendar_Day($y, $m, $d) public function __construct($y, $m, $d)
{ {
parent::__construct($y, $m, $d); parent::__construct($y, $m, $d);
} }
Expand All @@ -113,7 +113,7 @@ function Calendar_Day($y, $m, $d)
* @return boolean * @return boolean
* @access public * @access public
*/ */
function build($sDates = array()) public function build($sDates = array())
{ {
include_once CALENDAR_ROOT.'Hour.php'; include_once CALENDAR_ROOT.'Hour.php';


Expand All @@ -136,7 +136,7 @@ function build($sDates = array())
* @return void * @return void
* @access private * @access private
*/ */
function setSelection($sDates) public function setSelection($sDates)
{ {
foreach ($sDates as $sDate) { foreach ($sDates as $sDate) {
if ($this->year == $sDate->thisYear() if ($this->year == $sDate->thisYear()
Expand All @@ -161,7 +161,7 @@ function setSelection($sDates)
* @return void * @return void
* @access private * @access private
*/ */
function setFirst($state = true) public function setFirst($state = true)
{ {
$this->first = $state; $this->first = $state;
} }
Expand All @@ -175,7 +175,7 @@ function setFirst($state = true)
* @return void * @return void
* @access private * @access private
*/ */
function setLast($state = true) public function setLast($state = true)
{ {
$this->last = $state; $this->last = $state;
} }
Expand All @@ -187,7 +187,7 @@ function setLast($state = true)
* @return boolean * @return boolean
* @access public * @access public
*/ */
function isFirst() public function isFirst()
{ {
return $this->first; return $this->first;
} }
Expand All @@ -199,7 +199,7 @@ function isFirst()
* @return boolean * @return boolean
* @access public * @access public
*/ */
function isLast() public function isLast()
{ {
return $this->last; return $this->last;
} }
Expand All @@ -213,7 +213,7 @@ function isLast()
* @return void * @return void
* @access private * @access private
*/ */
function setEmpty ($state = true) public function setEmpty ($state = true)
{ {
$this->empty = $state; $this->empty = $state;
} }
Expand All @@ -224,7 +224,7 @@ function setEmpty ($state = true)
* @return boolean * @return boolean
* @access public * @access public
*/ */
function isEmpty() public function isEmpty()
{ {
return $this->empty; return $this->empty;
} }
Expand Down

0 comments on commit d877fcb

Please sign in to comment.