core-bundle/src/Resources/contao/library/Contao/User.php
public function isEqualTo(UserInterface $user)
	{
		if (!$user instanceof self)
		{
			return false;
		}

		if ($this->getRoles() !== $user->getRoles())
		{
			return false;
		}

		if ($this->password !== $user->password)
		{
			return false;
		}

		if ((bool) $this->admin !== (bool) $user->admin)
		{
			return false;
		}

		if ((bool) $this->disable !== (bool) $user->disable)
		{
			return false;
		}

		$time = Date::floorToMinute();

		if ($this->start !== '' && $this->start > $time)
		{
			return false;
		}

		if ($this->stop !== '' && $this->stop <= ($time + 60))
		{
			return false;
		}

		return true;
	}
public function isEqualTo(UserInterface $user)
	{
		if (!$user instanceof self)
		{
			return false;
		}

		if ($this->getRoles() !== $user->getRoles())
		{
			return false;
		}

		if ($this->password !== $user->password)
		{
			return false;
		}

		if ((bool) $this->admin !== (bool) $user->admin)
		{
			return false;
		}

		if ((bool) $this->disable !== (bool) $user->disable)
		{
			return false;
		}

		$time = Date::floorToMinute();

		if ($this->start !== '' && $this->start > $time)
		{
			return false;
		}

		if ($this->stop !== '' && $this->stop <= ($time + 60))
		{
			return false;
		}

		return true;
	}
public function isEqualTo ( UserInterface $ user ) { if ( ! $ user instanceof self ) { return false ; } if ( $ this -> getRoles ( ) !== $ user -> getRoles ( ) ) { return false ; } if ( $ this -> password !== $ user -> password ) { return false ; } if ( ( bool ) $ this -> admin !== ( bool ) $ user -> admin ) { return false ; } if ( ( bool ) $ this -> disable !== ( bool ) $ user -> disable ) { return false ; } $ time = Date :: floorToMinute ( ) ; if ( $ this -> start !== '' && $ this -> start > $ time ) { return false ; } if ( $ this -> stop !== '' && $ this -> stop <= ( $ time + 60 ) ) { return false ; } return true ; }
{@inheritdoc}
{