Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede committed Nov 23, 2023
1 parent 285f8a4 commit 7b037f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions system/carbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ public function __get($name)
return $this->getOffset() / 60 / 60;

case $name === 'dst':
return $this->format('I') == '1';
return $this->format('I') === '1';

case $name === 'local':
return $this->offset == $this->copy()->setTimezone(Config::get('application.timezone'))->offset;
return $this->offset === $this->copy()->setTimezone(Config::get('application.timezone'))->offset;

case $name === 'utc':
return $this->offset == 0;
return $this->offset === 0;

case $name === 'timezone' || $name === 'tz':
return $this->getTimezone();
Expand Down Expand Up @@ -475,7 +475,7 @@ public function toW3cString()
public function eq(Carbon $dt)
{
$this->validate($dt);
return $this == $dt;
return $this == $dt; // '==' memang disengaja
}

public function ne(Carbon $dt)
Expand Down Expand Up @@ -532,7 +532,7 @@ public function max(Carbon $dt = null)

public function isWeekday()
{
return ($this->dayOfWeek != static::SUNDAY && $this->dayOfWeek != static::SATURDAY);
return ($this->dayOfWeek !== static::SUNDAY && $this->dayOfWeek !== static::SATURDAY);
}

public function isWeekend()
Expand Down

0 comments on commit 7b037f2

Please sign in to comment.