Commit c5314ead authored by mabolek's avatar mabolek
Browse files

[FIX] Space-age indenting

parent a3766d8c
Pipeline #5537 failed with stages
in 13 seconds
......@@ -25,91 +25,92 @@ namespace T3o\Karma\Domain\Model;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
class Campaign extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
/**
* The title of the campaign
*
* @var string
*/
protected $title;
class Campaign extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* The title of the campaign
*
* @var string
*/
protected $title;
/**
* The percentage with which to change the entry value (no change = 100)
*
* @var int
*/
protected $percent;
/**
* The percentage with which to change the entry value (no change = 100)
*
* @var int
*/
protected $percent;
/**
* The value to add or subtract from the entry value
*
* @var int
*/
protected $value;
/**
* The value to add or subtract from the entry value
*
* @var int
*/
protected $value;
/**
* Returns the title of the campaign
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Returns the title of the campaign
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set the title of the campaign
*
* @param string $title
*/
public function setTitle(string $title)
{
$this->title = $title;
}
/**
* Set the title of the campaign
*
* @param string $title
*/
public function setTitle(string $title)
{
$this->title = $title;
}
/**
* Return the percentage amount to change the entry value
*
* No change = 100
*
* @return int
*/
public function getPercent()
{
return $this->percent;
}
/**
* Return the percentage amount to change the entry value
*
* No change = 100
*
* @return int
*/
public function getPercent()
{
return $this->percent;
}
/**
* Set the percentage value with which to change an entry
*
* No change = 100
*
* @param int $percent
*/
public function setPercent(int $percent)
{
$this->percent = $percent;
}
/**
* Set the percentage value with which to change an entry
*
* No change = 100
*
* @param int $percent
*/
public function setPercent(int $percent)
{
$this->percent = $percent;
}
/**
* Returns the value to add or subtract from the entry value
*
* @return int
*/
public function getValue()
{
return $this->value;
}
/**
* Returns the value to add or subtract from the entry value
*
* @return int
*/
public function getValue()
{
return $this->value;
}
/**
* Set the value to add or subtract from the entry value
*
* @param int $value
*/
public function setValue(int $value)
{
$this->value = $value;
}
/**
* Set the value to add or subtract from the entry value
*
* @param int $value
*/
public function setValue(int $value)
{
$this->value = $value;
}
}
\ No newline at end of file
......@@ -25,67 +25,68 @@ namespace T3o\Karma\Domain\Model;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
class KarmaSource extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
class KarmaSource extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* The title of the karma source
*
* @var string
*/
protected $title;
/**
* The title of the karma source
*
* @var string
*/
protected $title;
/**
* The alphanumeric code of the karma source
*
* Used for API calls etc.
*
* @var string
*/
protected $code;
/**
* The alphanumeric code of the karma source
*
* Used for API calls etc.
*
* @var string
*/
protected $code;
/**
* Get the title of the karma source
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Get the title of the karma source
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set the title of the karma source
*
* @param string $title
*/
public function setTitle(string $title)
{
$this->title = $title;
}
/**
* Set the title of the karma source
*
* @param string $title
*/
public function setTitle(string $title)
{
$this->title = $title;
}
/**
* Get the karma source code
*
* Alphanumeric code for use in APIs etc.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Get the karma source code
*
* Alphanumeric code for use in APIs etc.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Set the karma code
*
* Set the alphanumeric code for use in APIs etc.
*
* @param string $code
*/
public function setCode(string $code)
{
$this->code = $code;
}
/**
* Set the karma code
*
* Set the alphanumeric code for use in APIs etc.
*
* @param string $code
*/
public function setCode(string $code)
{
$this->code = $code;
}
}
\ No newline at end of file
<?php
namespace T3o\Karma\Domain\Model;
use In2code\Userprofile\Domain\Model\FrontendUser;
/***************************************************************
......@@ -25,184 +26,184 @@ use In2code\Userprofile\Domain\Model\FrontendUser;
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
class LedgerEntry extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
/**
* The date when the entry expired, if set.
*
* Set when the entry expires.
*
* @var int
*/
protected $expired;
/**
* The unchangeable ledgerentry entry value
*
* @var int
*/
protected $immutableValue;
/**
* The changeable ledgerentry entry value.
*
* Can be depreciated over time or set to zero.
*
* @var int
*/
protected $mutableValue;
/**
* The entry karmaSource
*
* @var KarmaSource
*/
protected $karmaSource;
/**
* Set to the related campaign if the entry is generated through a campaign
*
* @var Campaign
*/
protected $campaign;
/**
* The user the entry is valid for
*
* @var FrontendUser
*/
protected $user;
/**
* Return the expired timestamp or zero if not yet expired
*
* @return int
*/
public function getExpired()
{
return $this->expired;
}
/**
* Returns true if the entry has expired
*
* @return bool
*/
public function isExpired()
{
return (bool) $this->getExpired();
}
/**
* Set the timestamp for the entry's expiry, or zero if the entry has not expired
*
* @param int $expired
*/
public function setExpired(int $expired)
{
$this->expired = $expired;
}
/**
* Returns the unchangeable entry value
*
* @return int
*/
public function getImmutableValue()
{
return $this->immutableValue;
}
/**
* Set the unchangeable entry value.
*
* Should only be done once.
*
* @param int $immutableValue
*/
public function setImmutableValue(int $immutableValue)
{
$this->immutableValue = $immutableValue;
}
/**
* Returns the changeable entry value
*
* @return int
*/
public function getMutableValue()
{
return $this->mutableValue;
}
/**
* Set the changeable entry value
*
* @param int $mutableValue
*/
public function setMutableValue(int $mutableValue)
{
$this->mutableValue = $mutableValue;
}
/**
* Get the entry karma source
*
* @return KarmaSource
*/
public function getKarmaSource()
{
return $this->karmaSource;
}
/**
* Set the entry karma source
*
* @param KarmaSource $karmaSource
*/
public function setKarmaSource(KarmaSource $karmaSource)
{
$this->karmaSource = $karmaSource;
}
/**
* Get the entry campaign that generated this entry, or null if no campaign
*
* @return Campaign
*/
public function getCampaign()
{
return $this->campaign;
}
/**
* Set the campaign that generated this entry
*
* @param Campaign $campaign
*/
public function setCampaign(Campaign $campaign)
{
$this->campaign = $campaign;
}
/**
* Get the user this entry is for
*
* @return FrontendUser
*/
public function getUser()
{
return $this->user;
}
/**
* Set the user the entry is for
*
* @param FrontendUser $user
*/
public function setUser(FrontendUser $user)
{
$this->user = $user;
}
class LedgerEntry extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* The date when the entry expired, if set.
*
* Set when the entry expires.
*
* @var int
*/
protected $expired;
/**
* The unchangeable ledgerentry entry value
*
* @var int
*/
protected $immutableValue;
/**
* The changeable ledgerentry entry value.
*
* Can be depreciated over time or set to zero.
*
* @var int
*/
protected $mutableValue;
/**
* The entry karmaSource
*
* @var KarmaSource
*/
protected $karmaSource;
/**
* Set to the related campaign if the entry is generated through a campaign
*
* @var Campaign
*/
protected $campaign;
/**
* The user the entry is valid for
*
* @var FrontendUser
*/
protected $user;
/**
* Return the expired timestamp or zero if not yet expired
*
* @return int
*/
public function getExpired()
{
return $this->expired;
}
/**
* Returns true if the entry has expired
*
* @return bool
*/
public function isExpired()
{
return (bool)$this->getExpired();
}
/**
* Set the timestamp for the entry's expiry, or zero if the entry has not expired
*
* @param int $expired
*/
public function setExpired(int $expired)
{
$this->expired = $expired;
}
/**
* Returns the unchangeable entry value
*
* @return int
*/
public function getImmutableValue()
{
return $this->immutableValue;
}
/**
* Set the unchangeable entry value.
*
* Should only be done once.
*
* @param int $immutableValue
*/
public function setImmutableValue(int $immutableValue)
{
$this->immutableValue = $immutableValue;
}
/**
* Returns the changeable entry value
*
* @return int
*/
public function getMutableValue()
{
return $this->mutableValue;
}
/**
* Set the changeable entry value
*