Explorar o código

:fire: removed superfluous "param" and "return" from docblocks

codemasher %!s(int64=6) %!d(string=hai) anos
pai
achega
8c6b3f64a7

+ 0 - 3
src/Data/AlphaNum.php

@@ -39,9 +39,6 @@ class AlphaNum extends QRDataAbstract{
 	}
 
 	/**
-	 * @param string $chr
-	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	protected function getCharCode(string $chr):int{

+ 0 - 3
src/Data/Kanji.php

@@ -31,9 +31,6 @@ class Kanji extends QRDataAbstract{
 	}
 
 	/**
-	 * @param string $data
-	 *
-	 * @return void
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	protected function write(string $data):void{

+ 0 - 12
src/Data/MaskPatternTester.php

@@ -29,8 +29,6 @@ class MaskPatternTester{
 	 * @see \chillerlan\QRCode\QROptions::$maskPattern
 	 * @see \chillerlan\QRCode\Data\QRMatrix::$maskPattern
 	 * @see \chillerlan\QRCode\QRCode::getBestMaskPattern()
-	 *
-	 * @param \chillerlan\QRCode\Data\QRMatrix $matrix
 	 */
 	public function __construct(QRMatrix $matrix){
 		$this->matrix      = $matrix;
@@ -43,8 +41,6 @@ class MaskPatternTester{
 	 * @see \chillerlan\QRCode\QROptions::$maskPattern
 	 * @see \chillerlan\QRCode\Data\QRMatrix::$maskPattern
 	 * @see \chillerlan\QRCode\QRCode::getBestMaskPattern()
-	 *
-	 * @return int
 	 */
 	public function testPattern():int{
 		$penalty  = 0;
@@ -58,8 +54,6 @@ class MaskPatternTester{
 
 	/**
 	 * Checks for each group of five or more same-colored modules in a row (or column)
-	 *
-	 * @return float
 	 */
 	protected function testLevel1():float{
 		$penalty = 0;
@@ -99,8 +93,6 @@ class MaskPatternTester{
 
 	/**
 	 * Checks for each 2x2 area of same-colored modules in the matrix
-	 *
-	 * @return float
 	 */
 	protected function testLevel2():float{
 		$penalty = 0;
@@ -147,8 +139,6 @@ class MaskPatternTester{
 
 	/**
 	 * Checks if there are patterns that look similar to the finder patterns
-	 *
-	 * @return float
 	 */
 	protected function testLevel3():float{
 		$penalty = 0;
@@ -192,8 +182,6 @@ class MaskPatternTester{
 
 	/**
 	 * Checks if more than half of the modules are dark or light, with a larger penalty for a larger difference
-	 *
-	 * @return float
 	 */
 	protected function testLevel4():float{
 		$count = 0;

+ 0 - 3
src/Data/Number.php

@@ -50,9 +50,6 @@ class Number extends QRDataAbstract{
 	}
 
 	/**
-	 * @param string $string
-	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	protected function parseInt(string $string):int{

+ 0 - 30
src/Data/QRDataAbstract.php

@@ -63,9 +63,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 
 	/**
 	 * QRDataInterface constructor.
-	 *
-	 * @param \chillerlan\Settings\SettingsContainerInterface $options
-	 * @param string|null                           $data
 	 */
 	public function __construct(SettingsContainerInterface $options, string $data = null){
 		$this->options = $options;
@@ -77,10 +74,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 
 	/**
 	 * Sets the data string (internally called by the constructor)
-	 *
-	 * @param string $data
-	 *
-	 * @return \chillerlan\QRCode\Data\QRDataInterface
 	 */
 	public function setData(string $data):QRDataInterface{
 
@@ -103,11 +96,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 
 	/**
 	 * returns a fresh matrix object with the data written for the given $maskPattern
-	 *
-	 * @param int       $maskPattern
-	 * @param bool|null $test
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function initMatrix(int $maskPattern, bool $test = null):QRMatrix{
 		$matrix = new QRMatrix($this->version, $this->options->eccLevel);
@@ -127,7 +115,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 	/**
 	 * returns the length bits for the version breakpoints 1-9, 10-26 and 27-40
 	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 * @codeCoverageIgnore
 	 */
@@ -144,10 +131,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 
 	/**
 	 * returns the byte count of the $data string
-	 *
-	 * @param string $data
-	 *
-	 * @return int
 	 */
 	protected function getLength(string $data):int{
 		return \strlen($data);
@@ -156,7 +139,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 	/**
 	 * returns the minimum version number for the given string
 	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	protected function getMinimumVersion():int{
@@ -176,19 +158,12 @@ abstract class QRDataAbstract implements QRDataInterface{
 
 	/**
 	 * @see \chillerlan\QRCode\Data\QRDataAbstract::writeBitBuffer()
-	 *
-	 * @param string $data
-	 *
-	 * @return void
 	 */
 	abstract protected function write(string $data):void;
 
 	/**
 	 * writes the string data to the BitBuffer
 	 *
-	 * @param string $data
-	 *
-	 * @return \chillerlan\QRCode\Data\QRDataAbstract
 	 * @throws \chillerlan\QRCode\QRCodeException
 	 */
 	protected function writeBitBuffer(string $data):QRDataInterface{
@@ -245,8 +220,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 	 * @see \chillerlan\QRCode\Data\QRDataAbstract::writeBitBuffer()
 	 *
 	 * @link http://www.thonky.com/qr-code-tutorial/error-correction-coding
-	 *
-	 * @return array
 	 */
 	protected function maskECC():array{
 		[$l1, $l2, $b1, $b2] = $this::RSBLOCKS[$this->version][QRCode::ECC_MODES[$this->options->eccLevel]];
@@ -309,9 +282,6 @@ abstract class QRDataAbstract implements QRDataInterface{
 	}
 
 	/**
-	 * @param int $key
-	 * @param int $count
-	 *
 	 * @return int[]
 	 */
 	protected function poly(int $key, int $count):array{

+ 0 - 5
src/Data/QRDataInterface.php

@@ -166,17 +166,12 @@ interface QRDataInterface{
 	];
 
 	/**
-	 * @param string $data
 	 *
-	 * @return \chillerlan\QRCode\Data\QRDataInterface
 	 */
 	public function setData(string $data):QRDataInterface;
 
 	/**
-	 * @param int  $maskPattern
-	 * @param bool $test
 	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function initMatrix(int $maskPattern, bool $test = null):QRMatrix;
 

+ 4 - 55
src/Data/QRMatrix.php

@@ -180,9 +180,6 @@ class QRMatrix{
 	/**
 	 * QRMatrix constructor.
 	 *
-	 * @param int $version
-	 * @param int $eclevel
-	 *
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	public function __construct(int $version, int $eclevel){
@@ -202,28 +199,28 @@ class QRMatrix{
 	}
 
 	/**
-	 * @return array
+	 *
 	 */
 	public function matrix():array{
 		return $this->matrix;
 	}
 
 	/**
-	 * @return int
+	 *
 	 */
 	public function version():int{
 		return $this->version;
 	}
 
 	/**
-	 * @return int
+	 *
 	 */
 	public function eccLevel():int{
 		return $this->eclevel;
 	}
 
 	/**
-	 * @return int
+	 *
 	 */
 	public function maskPattern():int{
 		return $this->maskPattern;
@@ -233,8 +230,6 @@ class QRMatrix{
 	 * Returns the absoulute size of the matrix, including quiet zone (after setting it).
 	 *
 	 * size = version * 4 + 17 [ + 2 * quietzone size]
-	 *
-	 * @return int
 	 */
 	public function size():int{
 		return $this->moduleCount;
@@ -242,11 +237,6 @@ class QRMatrix{
 
 	/**
 	 * Returns the value of the module at position [$x, $y]
-	 *
-	 * @param int $x
-	 * @param int $y
-	 *
-	 * @return int
 	 */
 	public function get(int $x, int $y):int{
 		return $this->matrix[$y][$x];
@@ -257,13 +247,6 @@ class QRMatrix{
 	 *
 	 *   true  => $M_TYPE << 8
 	 *   false => $M_TYPE
-	 *
-	 * @param int  $x
-	 * @param int  $y
-	 * @param int  $M_TYPE
-	 * @param bool $value
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function set(int $x, int $y, bool $value, int $M_TYPE):QRMatrix{
 		$this->matrix[$y][$x] = $M_TYPE << ($value ? 8 : 0);
@@ -279,11 +262,6 @@ class QRMatrix{
 	 *
 	 *   false => $value === $M_TYPE
 	 *            $value >> 8 === 0
-	 *
-	 * @param int $x
-	 * @param int $y
-	 *
-	 * @return bool
 	 */
 	public function check(int $x, int $y):bool{
 		return $this->matrix[$y][$x] >> 8 > 0;
@@ -292,8 +270,6 @@ class QRMatrix{
 
 	/**
 	 * Sets the "dark module", that is always on the same position 1x1px away from the bottom left finder
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setDarkModule():QRMatrix{
 		$this->set(8, 4 * $this->version + 9, true, $this::M_DARKMODULE);
@@ -303,8 +279,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the 7x7 finder patterns in the corners top left/right and bottom left
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setFinderPattern():QRMatrix{
 
@@ -332,8 +306,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the separator lines around the finder patterns
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setSeparators():QRMatrix{
 
@@ -362,8 +334,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the 5x5 alignment patterns
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setAlignmentPattern():QRMatrix{
 
@@ -392,8 +362,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the timing pattern (h/v checkered line between the finder patterns)
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setTimingPattern():QRMatrix{
 
@@ -414,10 +382,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the version information, 2x 3x6 pixel
-	 *
-	 * @param bool|null  $test
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setVersionNumber(bool $test = null):QRMatrix{
 		$bits = $this::versionPattern[$this->version] ?? false;
@@ -440,11 +404,6 @@ class QRMatrix{
 
 	/**
 	 * Draws the format info along the finder patterns
-	 *
-	 * @param int        $maskPattern
-	 * @param bool|null  $test
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function setFormatInfo(int $maskPattern, bool $test = null):QRMatrix{
 		$bits = $this::formatPattern[QRCode::ECC_MODES[$this->eclevel]][$maskPattern] ?? 0;
@@ -482,9 +441,6 @@ class QRMatrix{
 	/**
 	 * Draws the "quiet zone" of $size around the matrix
 	 *
-	 * @param int|null $size
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	public function setQuietZone(int $size = null):QRMatrix{
@@ -523,8 +479,6 @@ class QRMatrix{
 	 *
 	 * @param int[] $data
 	 * @param int   $maskPattern
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 */
 	public function mapData(array $data, int $maskPattern):QRMatrix{
 		$this->maskPattern = $maskPattern;
@@ -583,11 +537,6 @@ class QRMatrix{
 	 *
 	 * @internal
 	 *
-	 * @param int $x
-	 * @param int $y
-	 * @param int $maskPattern
-	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	protected function getMask(int $x, int $y, int $maskPattern):int{

+ 1 - 6
src/Helpers/BitBuffer.php

@@ -20,7 +20,7 @@ class BitBuffer{
 	public int $length = 0;
 
 	/**
-	 * @return \chillerlan\QRCode\Helpers\BitBuffer
+	 *
 	 */
 	public function clear():BitBuffer{
 		$this->buffer = [];
@@ -30,10 +30,7 @@ class BitBuffer{
 	}
 
 	/**
-	 * @param int $num
-	 * @param int $length
 	 *
-	 * @return \chillerlan\QRCode\Helpers\BitBuffer
 	 */
 	public function put(int $num, int $length):BitBuffer{
 
@@ -45,9 +42,7 @@ class BitBuffer{
 	}
 
 	/**
-	 * @param bool $bit
 	 *
-	 * @return \chillerlan\QRCode\Helpers\BitBuffer
 	 */
 	public function putBit(bool $bit):BitBuffer{
 		$bufIndex = \floor($this->length / 8);

+ 1 - 16
src/Helpers/Polynomial.php

@@ -61,26 +61,20 @@ class Polynomial{
 
 	/**
 	 * Polynomial constructor.
-	 *
-	 * @param array|null $num
-	 * @param int|null   $shift
 	 */
 	public function __construct(array $num = null, int $shift = null){
 		$this->setNum($num ?? [1], $shift);
 	}
 
 	/**
-	 * @return array
+	 *
 	 */
 	public function getNum():array{
 		return $this->num;
 	}
 
 	/**
-	 * @param array    $num
-	 * @param int|null $shift
 	 *
-	 * @return \chillerlan\QRCode\Helpers\Polynomial
 	 */
 	public function setNum(array $num, int $shift = null):Polynomial{
 		$offset = 0;
@@ -100,9 +94,7 @@ class Polynomial{
 	}
 
 	/**
-	 * @param array $e
 	 *
-	 * @return \chillerlan\QRCode\Helpers\Polynomial
 	 */
 	public function multiply(array $e):Polynomial{
 		$n = \array_fill(0, \count($this->num) + \count($e) - 1, 0);
@@ -122,9 +114,7 @@ class Polynomial{
 	}
 
 	/**
-	 * @param array $e
 	 *
-	 * @return \chillerlan\QRCode\Helpers\Polynomial
 	 */
 	public function mod(array $e):Polynomial{
 		$n = $this->num;
@@ -145,9 +135,6 @@ class Polynomial{
 	}
 
 	/**
-	 * @param int $n
-	 *
-	 * @return int
 	 * @throws \chillerlan\QRCode\QRCodeException
 	 */
 	public function glog(int $n):int{
@@ -160,9 +147,7 @@ class Polynomial{
 	}
 
 	/**
-	 * @param int $n
 	 *
-	 * @return int
 	 */
 	public function gexp(int $n):int{
 

+ 1 - 7
src/Output/QRImage.php

@@ -35,7 +35,7 @@ class QRImage extends QROutputAbstract{
 	protected $image;
 
 	/**
-	 * @return void
+	 *
 	 */
 	protected function setModuleValues():void{
 
@@ -56,9 +56,7 @@ class QRImage extends QROutputAbstract{
 	}
 
 	/**
-	 * @param string|null $file
 	 *
-	 * @return string
 	 */
 	public function dump(string $file = null):string{
 		$this->image = \imagecreatetruecolor($this->length, $this->length);
@@ -90,11 +88,7 @@ class QRImage extends QROutputAbstract{
 	}
 
 	/**
-	 * @param int   $x
-	 * @param int   $y
-	 * @param array $rgb
 	 *
-	 * @return void
 	 */
 	protected function setPixel(int $x, int $y, array $rgb):void{
 		\imagefilledrectangle(

+ 1 - 5
src/Output/QRImagick.php

@@ -23,7 +23,7 @@ use Imagick, ImagickDraw, ImagickPixel;
 class QRImagick extends QROutputAbstract{
 
 	/**
-	 * @return void
+	 *
 	 */
 	protected function setModuleValues():void{
 
@@ -42,9 +42,7 @@ class QRImagick extends QROutputAbstract{
 	}
 
 	/**
-	 * @param string|null $file
 	 *
-	 * @return string
 	 */
 	public function dump(string $file = null):string{
 		$file ??= $this->options->cachefile;
@@ -67,9 +65,7 @@ class QRImagick extends QROutputAbstract{
 	}
 
 	/**
-	 * @param \Imagick $imagick
 	 *
-	 * @return string
 	 */
 	protected function drawImage(Imagick $imagick):string{
 		$draw = new ImagickDraw;

+ 3 - 7
src/Output/QRMarkup.php

@@ -23,13 +23,11 @@ class QRMarkup extends QROutputAbstract{
 
 	/**
 	 * @see \sprintf()
-	 *
-	 * @var string
 	 */
-	protected $svgHeader = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="qr-svg %1$s" style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">';
+	protected string $svgHeader = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="qr-svg %1$s" style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">';
 
 	/**
-	 * @return void
+	 *
 	 */
 	protected function setModuleValues():void{
 
@@ -50,7 +48,7 @@ class QRMarkup extends QROutputAbstract{
 	}
 
 	/**
-	 * @return string
+	 *
 	 */
 	protected function html():string{
 		$html = '<div class="'.$this->options->cssClass.'">'.$this->options->eol;
@@ -76,8 +74,6 @@ class QRMarkup extends QROutputAbstract{
 
 	/**
 	 * @link https://github.com/codemasher/php-qrcode/pull/5
-	 *
-	 * @return string
 	 */
 	protected function svg():string{
 		$matrix = $this->matrix->matrix();

+ 0 - 11
src/Output/QROutputAbstract.php

@@ -38,9 +38,6 @@ abstract class QROutputAbstract implements QROutputInterface{
 
 	/**
 	 * QROutputAbstract constructor.
-	 *
-	 * @param \chillerlan\Settings\SettingsContainerInterface $options
-	 * @param \chillerlan\QRCode\Data\QRMatrix      $matrix
 	 */
 	public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
 		$this->options     = $options;
@@ -60,18 +57,12 @@ abstract class QROutputAbstract implements QROutputInterface{
 
 	/**
 	 * Sets the initial module values (clean-up & defaults)
-	 *
-	 * @return void
 	 */
 	abstract protected function setModuleValues():void;
 
 	/**
 	 * @see file_put_contents()
 	 *
-	 * @param string $data
-	 * @param string $file
-	 *
-	 * @return bool
 	 * @throws \chillerlan\QRCode\Output\QRCodeOutputException
 	 */
 	protected function saveToFile(string $data, string $file):bool{
@@ -84,9 +75,7 @@ abstract class QROutputAbstract implements QROutputInterface{
 	}
 
 	/**
-	 * @param string|null $file
 	 *
-	 * @return string|mixed
 	 */
 	public function dump(string $file = null){
 		$data = \call_user_func([$this, $this->outputMode ?? $this->defaultMode]);

+ 0 - 2
src/Output/QROutputInterface.php

@@ -42,8 +42,6 @@ interface QROutputInterface{
 	];
 
 	/**
-	 * @param string|null $file
-	 *
 	 * @return mixed
 	 */
 	public function dump(string $file = null);

+ 3 - 3
src/Output/QRString.php

@@ -22,7 +22,7 @@ class QRString extends QROutputAbstract{
 	protected string $defaultMode = QRCode::OUTPUT_STRING_TEXT;
 
 	/**
-	 * @return void
+	 *
 	 */
 	protected function setModuleValues():void{
 
@@ -43,7 +43,7 @@ class QRString extends QROutputAbstract{
 	}
 
 	/**
-	 * @return string
+	 *
 	 */
 	protected function text():string{
 		$str = [];
@@ -62,7 +62,7 @@ class QRString extends QROutputAbstract{
 	}
 
 	/**
-	 * @return string
+	 *
 	 */
 	protected function json():string{
 		return \json_encode($this->matrix->matrix());

+ 1 - 38
src/QRCode.php

@@ -106,8 +106,6 @@ class QRCode{
 
 	/**
 	 * QRCode constructor.
-	 *
-	 * @param \chillerlan\Settings\SettingsContainerInterface|null $options
 	 */
 	public function __construct(SettingsContainerInterface $options = null){
 		// save the current mb encoding (in case it differs from UTF-8)
@@ -129,9 +127,6 @@ class QRCode{
 	/**
 	 * Renders a QR Code for the given $data and QROptions
 	 *
-	 * @param string      $data
-	 * @param string|null $file
-	 *
 	 * @return mixed
 	 */
 	public function render(string $data, string $file = null){
@@ -141,9 +136,6 @@ class QRCode{
 	/**
 	 * Returns a QRMatrix object for the given $data and current QROptions
 	 *
-	 * @param string $data
-	 *
-	 * @return \chillerlan\QRCode\Data\QRMatrix
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	public function getMatrix(string $data):QRMatrix{
@@ -171,8 +163,6 @@ class QRCode{
 	 * shoves a QRMatrix through the MaskPatternTester to find the lowest penalty mask pattern
 	 *
 	 * @see \chillerlan\QRCode\Data\MaskPatternTester
-	 *
-	 * @return int
 	 */
 	protected function getBestMaskPattern():int{
 		$penalties = [];
@@ -189,9 +179,6 @@ class QRCode{
 	/**
 	 * returns a fresh QRDataInterface for the given $data
 	 *
-	 * @param string                       $data
-	 *
-	 * @return \chillerlan\QRCode\Data\QRDataInterface
 	 * @throws \chillerlan\QRCode\Data\QRCodeDataException
 	 */
 	public function initDataInterface(string $data):QRDataInterface{
@@ -211,9 +198,6 @@ class QRCode{
 	/**
 	 * returns a fresh (built-in) QROutputInterface
 	 *
-	 * @param string $data
-	 *
-	 * @return \chillerlan\QRCode\Output\QROutputInterface
 	 * @throws \chillerlan\QRCode\Output\QRCodeOutputException
 	 */
 	protected function initOutputInterface(string $data):QROutputInterface{
@@ -235,10 +219,6 @@ class QRCode{
 
 	/**
 	 * checks if a string qualifies as numeric
-	 *
-	 * @param string $string
-	 *
-	 * @return bool
 	 */
 	public function isNumber(string $string):bool{
 		return $this->checkString($string, QRDataInterface::NUMBER_CHAR_MAP);
@@ -246,22 +226,13 @@ class QRCode{
 
 	/**
 	 * checks if a string qualifies as alphanumeric
-	 *
-	 * @param string $string
-	 *
-	 * @return bool
 	 */
 	public function isAlphaNum(string $string):bool{
 		return $this->checkString($string, QRDataInterface::ALPHANUM_CHAR_MAP);
 	}
 
 	/**
-	 * checks is a given $string matches the characters of a given $charmap, returns false on the first invalid occurence.
-	 *
-	 * @param string $string
-	 * @param array  $charmap
-	 *
-	 * @return bool
+	 * checks is a given $string matches the characters of a given charmap, returns false on the first invalid occurence.
 	 */
 	protected function checkString(string $string, array $charmap):bool{
 		$len = \strlen($string);
@@ -277,10 +248,6 @@ class QRCode{
 
 	/**
 	 * checks if a string qualifies as Kanji
-	 *
-	 * @param string $string
-	 *
-	 * @return bool
 	 */
 	public function isKanji(string $string):bool{
 		$i   = 0;
@@ -301,10 +268,6 @@ class QRCode{
 
 	/**
 	 * a dummy
-	 *
-	 * @param $data
-	 *
-	 * @return bool
 	 */
 	protected function isByte(string $data):bool{
 		return !empty($data);

+ 0 - 20
src/QROptionsTrait.php

@@ -187,11 +187,6 @@ trait QROptionsTrait{
 
 	/**
 	 * set/clamp some special values, call the parent setter otherwise
-	 *
-	 * @param string $property
-	 * @param mixed  $value
-	 *
-	 * @return void
 	 */
 	public function __set(string $property, $value):void{
 
@@ -211,11 +206,6 @@ trait QROptionsTrait{
 
 	/**
 	 * clamp min/max version number
-	 *
-	 * @param int $versionMin
-	 * @param int $versionMax
-	 *
-	 * @return void
 	 */
 	protected function setMinMaxVersion(int $versionMin, int $versionMax):void{
 		$min = \max(1, \min(40, $versionMin));
@@ -226,9 +216,6 @@ trait QROptionsTrait{
 	}
 
 	/**
-	 * @param int $eccLevel
-	 *
-	 * @return void
 	 * @throws \chillerlan\QRCode\QRCodeException
 	 */
 	protected function set_eccLevel(int $eccLevel):void{
@@ -241,9 +228,7 @@ trait QROptionsTrait{
 	}
 
 	/**
-	 * @param int $maskPattern
 	 *
-	 * @return void
 	 */
 	protected function set_maskPattern(int $maskPattern):void{
 
@@ -254,9 +239,6 @@ trait QROptionsTrait{
 	}
 
 	/**
-	 * @param mixed $imageTransparencyBG
-	 *
-	 * @return void
 	 * @throws \chillerlan\QRCode\QRCodeException
 	 */
 	protected function set_imageTransparencyBG($imageTransparencyBG):void{
@@ -283,9 +265,7 @@ trait QROptionsTrait{
 	}
 
 	/**
-	 * @param int $version
 	 *
-	 * @return void
 	 */
 	protected function set_version(int $version):void{