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