Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 58 changed files with 140 additions and 140 deletions.
4 changes: 2 additions & 2 deletions src/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function getMessages()
* Invoke as command
*
* @param mixed $value
* @return boolean
* @return bool
*/
public function __invoke($value)
{
Expand Down Expand Up @@ -499,7 +499,7 @@ public static function getDefaultTranslator()
/**
* Is there a default translation object set?
*
* @return boolean
* @return bool
*/
public static function hasDefaultTranslator()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public function getChecksum()
/**
* Sets if checksum should be validated, if no value is given the actual setting is returned
*
* @param boolean $checksum
* @return boolean
* @param bool $checksum
* @return bool
*/
public function useChecksum($checksum = null)
{
Expand All @@ -135,7 +135,7 @@ public function useChecksum($checksum = null)
* Returns true if and only if $value contains a valid barcode
*
* @param string $value
* @return boolean
* @return bool
*/
public function isValid($value)
{
Expand Down
20 changes: 10 additions & 10 deletions src/Barcode/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class AbstractAdapter implements AdapterInterface
* Checks the length of a barcode
*
* @param string $value The barcode to check for proper length
* @return boolean
* @return bool
*/
public function hasValidLength($value)
{
Expand Down Expand Up @@ -71,7 +71,7 @@ public function hasValidLength($value)
* Checks for allowed characters within the barcode
*
* @param string $value The barcode to check for allowed characters
* @return boolean
* @return bool
*/
public function hasValidCharacters($value)
{
Expand Down Expand Up @@ -102,7 +102,7 @@ public function hasValidCharacters($value)
* Validates the checksum
*
* @param string $value The barcode to check the checksum for
* @return boolean
* @return bool
*/
public function hasValidChecksum($value)
{
Expand Down Expand Up @@ -160,16 +160,16 @@ protected function setChecksum($checksum)
/**
* Sets the checksum validation, if no value is given, the actual setting is returned
*
* @param boolean $check
* @return AbstractAdapter|boolean
* @param bool $check
* @return AbstractAdapter|bool
*/
public function useChecksum($check = null)
{
if ($check === null) {
return $this->options['useChecksum'];
}

$this->options['useChecksum'] = (boolean) $check;
$this->options['useChecksum'] = (bool) $check;
return $this;
}

Expand Down Expand Up @@ -202,7 +202,7 @@ protected function setCharacters($characters)
* GTIN implementation factor 3
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function gtin($value)
{
Expand Down Expand Up @@ -232,7 +232,7 @@ protected function gtin($value)
* IDENTCODE implementation factors 9 and 4
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function identcode($value)
{
Expand Down Expand Up @@ -262,7 +262,7 @@ protected function identcode($value)
* CODE25 implementation factor 3
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function code25($value)
{
Expand Down Expand Up @@ -292,7 +292,7 @@ protected function code25($value)
* POSTNET implementation
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function postnet($value)
{
Expand Down
12 changes: 6 additions & 6 deletions src/Barcode/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ interface AdapterInterface
* Checks the length of a barcode
*
* @param string $value The barcode to check for proper length
* @return boolean
* @return bool
*/
public function hasValidLength($value);

/**
* Checks for allowed characters within the barcode
*
* @param string $value The barcode to check for allowed characters
* @return boolean
* @return bool
*/
public function hasValidCharacters($value);

/**
* Validates the checksum
*
* @param string $value The barcode to check the checksum for
* @return boolean
* @return bool
*/
public function hasValidChecksum($value);

Expand All @@ -57,15 +57,15 @@ public function getCharacters();
/**
* Returns if barcode uses a checksum
*
* @return boolean
* @return bool
*/
public function getChecksum();

/**
* Sets the checksum validation, if no value is given, the actual setting is returned
*
* @param boolean $check
* @return AbstractAdapter|boolean
* @param bool $check
* @return AbstractAdapter|bool
*/
public function useChecksum($check = null);
}
4 changes: 2 additions & 2 deletions src/Barcode/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct()
* Checks for allowed characters within the barcode
*
* @param string $value The barcode to check for allowed characters
* @return boolean
* @return bool
*/
public function hasValidCharacters($value)
{
Expand Down Expand Up @@ -164,7 +164,7 @@ public function hasValidCharacters($value)
* Validates the checksum ()
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function code128($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Barcode/Code39.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct()
* Validates the checksum (Modulo 43)
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function code39($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Barcode/Code93.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct()
* Validates the checksum (Modulo CK)
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function code93($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Barcode/Ean8.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct()
* Overrides parent checkLength
*
* @param string $value Value
* @return boolean
* @return bool
*/
public function hasValidLength($value)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Barcode/Issn.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct()
* Allows X on length of 8 chars
*
* @param string $value The barcode to check for allowed characters
* @return boolean
* @return bool
*/
public function hasValidCharacters($value)
{
Expand All @@ -47,7 +47,7 @@ public function hasValidCharacters($value)
* Validates the checksum
*
* @param string $value The barcode to check the checksum for
* @return boolean
* @return bool
*/
public function hasValidChecksum($value)
{
Expand All @@ -65,7 +65,7 @@ public function hasValidChecksum($value)
* ISSN implementation (reversed mod11)
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function issn($value)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Barcode/Royalmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct()
* Validates the checksum ()
*
* @param string $value The barcode to validate
* @return boolean
* @return bool
*/
protected function royalmail($value)
{
Expand Down Expand Up @@ -79,7 +79,7 @@ protected function royalmail($value)
* Allows start and stop tag within checked chars
*
* @param string $value The barcode to check for allowed characters
* @return boolean
* @return bool
*/
public function hasValidCharacters($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Barcode/Upce.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct()
* Overrides parent checkLength
*
* @param string $value Value
* @return boolean
* @return bool
*/
public function hasValidLength($value)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Between.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function setMax($max)
/**
* Returns the inclusive option
*
* @return boolean
* @return bool
*/
public function getInclusive()
{
Expand All @@ -145,7 +145,7 @@ public function getInclusive()
/**
* Sets the inclusive option
*
* @param boolean $inclusive
* @param bool $inclusive
* @return Between Provides a fluent interface
*/
public function setInclusive($inclusive)
Expand All @@ -159,7 +159,7 @@ public function setInclusive($inclusive)
* if inclusive option is true.
*
* @param mixed $value
* @return boolean
* @return bool
*/
public function isValid($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function setCallbackOptions($options)
*
* @param mixed $value
* @param mixed $context Additional context to provide to the callback
* @return boolean
* @return bool
* @throws Exception\InvalidArgumentException
*/
public function isValid($value, $context = null)
Expand Down
2 changes: 1 addition & 1 deletion src/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function setService($service)
* Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)
*
* @param string $value
* @return boolean
* @return bool
*/
public function isValid($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function setFormat($format = null)
* according to DateTime
*
* @param string|array|int|DateTime $value
* @return boolean
* @return bool
*/
public function isValid($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Digits.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Digits extends AbstractValidator
* Returns true if and only if $value only contains digit characters
*
* @param string $value
* @return boolean
* @return bool
*/
public function isValid($value)
{
Expand Down
Loading

0 comments on commit c11ce81

Please sign in to comment.