scrunitizer happier

This commit is contained in:
smiley
2016-02-23 15:11:36 +01:00
parent 5a60e78ff8
commit 422392f674
6 changed files with 10 additions and 13 deletions
+1
View File
@@ -1,3 +1,4 @@
filter:
excluded_paths:
- examples/*
- tests/*
-4
View File
@@ -38,8 +38,6 @@ class BitBuffer{
/**
* @param int $num
* @param int $length
*
* @return $this
*/
public function put($num, $length){
@@ -51,8 +49,6 @@ class BitBuffer{
/**
* @param bool $bit
*
* @return $this
*/
public function putBit($bit){
$bufIndex = floor($this->length / 8);
+6 -3
View File
@@ -52,9 +52,12 @@ class QRDataBase{
public function getLengthInBits($type){
switch(true){
case $type >= 1 && $type <= 9: return $this->lengthBits[0]; // 1 - 9
case $type <= 26 : return $this->lengthBits[1]; // 10 - 26
case $type <= 40 : return $this->lengthBits[2]; // 27 - 40
case $type >= 1 && $type <= 9:
return $this->lengthBits[0]; // 1 - 9
case $type <= 26:
return $this->lengthBits[1]; // 10 - 26
case $type <= 40:
return $this->lengthBits[2]; // 27 - 40
default:
throw new QRCodeDataException('$type: '.$type);
}
+1
View File
@@ -22,6 +22,7 @@ interface QRDataInterface{
/**
* @param \chillerlan\QRCode\BitBuffer $buffer
* @return void
*/
public function write(BitBuffer &$buffer);
+1 -1
View File
@@ -59,7 +59,7 @@ class QRImage extends QROutputBase implements QROutputInterface{
}
/**
* @return mixed
* @return string
* @throws \chillerlan\QRCode\Output\QRCodeOutputException
*/
public function dump(){
+1 -5
View File
@@ -78,11 +78,7 @@ class Util{
$i += 2;
}
if($i < $len){
return false;
}
return true;
return !($i < $len);
}
/**