Skip to content

Commit

Permalink
Fix some PhpStorm inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed May 6, 2019
1 parent 234b51d commit 65cf516
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 61 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"require": {
"php": "^7.0",
"ext-simplexml": "*",
"globalcitizen/php-iban": "^2.6",
"moneyphp/money": "^3"
},
Expand Down
3 changes: 0 additions & 3 deletions src/Camt052/Decoder/V01/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
namespace Genkgo\Camt\Camt052\Decoder\V01;

use Genkgo\Camt\Camt052\Decoder\Message as BaseMessageDecoder;
use Genkgo\Camt\Camt052\DTO as Camt052DTO;
use Genkgo\Camt\DTO;
use \SimpleXMLElement;
use \DateTimeImmutable;

class Message extends BaseMessageDecoder
{
Expand Down
3 changes: 0 additions & 3 deletions src/Camt052/Decoder/V02/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
namespace Genkgo\Camt\Camt052\Decoder\V02;

use Genkgo\Camt\Camt052\Decoder\Message as BaseMessageDecoder;
use Genkgo\Camt\Camt052\DTO as Camt052DTO;
use Genkgo\Camt\DTO;
use \SimpleXMLElement;
use \DateTimeImmutable;

class Message extends BaseMessageDecoder
{
Expand Down
3 changes: 2 additions & 1 deletion src/DTO/Charges.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php
namespace Genkgo\Camt\DTO;

use BadMethodCallException;
use Money\Money;

class Charges
{
/** @var Money */
private $totalChargesAndTaxAmount;

/** @var ChargesRecord[] */
private $records = [];

Expand Down
14 changes: 7 additions & 7 deletions src/DTO/ChargesRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

class ChargesRecord
{

/** @var Money */
private $amount;

/**
* @var bool
*/
private $chargesIncluded­Indicator = false;

/**
* @var string
*/
Expand All @@ -35,33 +35,33 @@ public function setAmount(Money $money)
{
$this->amount = $money;
}

/**
* @return ChargesIncluded­Indicator
* @return bool
*/
public function getChargesIncluded­Indicator()
{
return $this->chargesIncluded­Indicator;
}

/**
* @param $chargesIncluded­Indicator
* @param bool $chargesIncluded­Indicator
*/
public function setChargesIncluded­Indicator($chargesIncluded­Indicator)
{
$this->chargesIncluded­Indicator = $chargesIncluded­Indicator;
}

/**
* @return Identification
* @return string
*/
public function getIdentification()
{
return $this->identification;
}

/**
* @param $identification
* @param string $identification
*/
public function setIdentification($identification)
{
Expand Down
24 changes: 12 additions & 12 deletions src/DTO/ContactDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getNamePrefix()
{
return $this->namePrefix;
}

/**
* @param string $namePrefix
*/
Expand All @@ -62,7 +62,7 @@ public function getName()
{
return $this->name;
}

/**
* @param string $name
*/
Expand All @@ -78,9 +78,9 @@ public function getPhoneNumber()
{
return $this->phoneNumber;
}

/**
* @param string $name
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
Expand All @@ -94,9 +94,9 @@ public function getMobileNumber()
{
return $this->mobileNumber;
}

/**
* @param string $name
* @param string $mobileNumber
*/
public function setMobileNumber($mobileNumber)
{
Expand All @@ -110,9 +110,9 @@ public function getFaxNumber()
{
return $this->faxNumber;
}

/**
* @param string $name
* @param string $faxNumber
*/
public function setFaxNumber($faxNumber)
{
Expand All @@ -126,9 +126,9 @@ public function getEmailAddress()
{
return $this->emailAddress;
}

/**
* @param string $name
* @param string $emailAddress
*/
public function setEmailAddress($emailAddress)
{
Expand All @@ -142,9 +142,9 @@ public function getOther()
{
return $this->other;
}

/**
* @param string $name
* @param string $other
*/
public function setOther($other)
{
Expand Down
28 changes: 14 additions & 14 deletions src/DTO/OrganisationIdentification.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getBic()
{
return $this->bic;
}

/**
* @param string $bic
*/
Expand All @@ -93,7 +93,7 @@ public function getIbei()
{
return $this->ibei;
}

/**
* @param string $ibei
*/
Expand All @@ -110,7 +110,7 @@ public function getBei()
{
return $this->bei;
}

/**
* @param string $bei
*/
Expand All @@ -127,7 +127,7 @@ public function getEangln()
{
return $this->eangln;
}

/**
* @param string $eangln
*/
Expand All @@ -144,7 +144,7 @@ public function getChipsUniversalId()
{
return $this->chipsUniversalId;
}

/**
* @param string $chipsUniversalId
*/
Expand All @@ -161,7 +161,7 @@ public function getDuns()
{
return $this->duns;
}

/**
* @param string $duns
*/
Expand All @@ -178,7 +178,7 @@ public function getBankPartyId()
{
return $this->bankPartyId;
}

/**
* @param string $bankPartyId
*/
Expand All @@ -195,7 +195,7 @@ public function getTaxId()
{
return $this->taxId;
}

/**
* @param string $taxId
*/
Expand All @@ -212,9 +212,9 @@ public function getOtherId()
{
return $this->otherId;
}

/**
* @param string $otherID
* @param string $otherId
*/
public function setOtherId($otherId)
{
Expand All @@ -229,7 +229,7 @@ public function getOtherIssuer()
{
return $this->otherIssuer;
}

/**
* @param string $otherIssuer
*/
Expand All @@ -245,7 +245,7 @@ public function getOtherSchemeName()
{
return $this->otherSchemeName;
}

/**
* @param string $otherSchemeName
*/
Expand All @@ -261,7 +261,7 @@ public function getOtherType()
{
return $this->otherType;
}

/**
* @param string $otherType
*/
Expand All @@ -277,7 +277,7 @@ public function getIssuer()
{
return $this->issuer;
}

/**
* @param string $issuer
*/
Expand Down
2 changes: 0 additions & 2 deletions src/DTO/ProprietaryAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Genkgo\Camt\DTO;

use Genkgo\Camt\DTO\Account;

/**
* Class ProprietaryAccount
* @package Genkgo\Camt
Expand Down
16 changes: 8 additions & 8 deletions src/DTO/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getPagination()
{
return $this->pagination;
}

/**
* @param Pagination $pagination
*/
Expand All @@ -124,7 +124,7 @@ public function getElectronicSequenceNumber()
{
return $this->electronicSequenceNumber;
}

/**
* @param string $electronicSequenceNumber
*/
Expand All @@ -140,7 +140,7 @@ public function getLegalSequenceNumber()
{
return $this->legalSequenceNumber;
}

/**
* @param string $legalSequenceNumber
*/
Expand All @@ -150,15 +150,15 @@ public function setLegalSequenceNumber($legalSequenceNumber)
}

/**
* @param string $copyDuplicateIndicator
* @return string
*/
public function getCopyDuplicateIndicator()
{
return $this->copyDuplicateIndicator;
}

/**
* @return string
* @param string $copyDuplicateIndicator
*/
public function setCopyDuplicateIndicator($copyDuplicateIndicator)
{
Expand All @@ -172,7 +172,7 @@ public function getFromDate()
{
return $this->fromDate;
}

/**
* @param DateTimeImmutable $fromDate
*/
Expand All @@ -188,7 +188,7 @@ public function getToDate()
{
return $this->toDate;
}

/**
* @param DateTimeImmutable $toDate
*/
Expand Down
4 changes: 2 additions & 2 deletions src/DTO/RemittanceInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function setMessage($message)
*/
public function addStructuredBlock(StructuredRemittanceInformation $structuredRemittanceInformation)
{
return $this->structuredBlocks[] = $structuredRemittanceInformation;
$this->structuredBlocks[] = $structuredRemittanceInformation;
}

/**
Expand Down Expand Up @@ -109,7 +109,7 @@ public function getStructuredBlock()
*/
public function addUnstructuredBlock(UnstructuredRemittanceInformation $unstructuredRemittanceInformation)
{
return $this->unstructuredBlocks[] = $unstructuredRemittanceInformation;
$this->unstructuredBlocks[] = $unstructuredRemittanceInformation;
}

/**
Expand Down
Loading

0 comments on commit 65cf516

Please sign in to comment.