Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php8 #80

Merged
merged 100 commits into from
Nov 22, 2023
Merged

Php8 #80

Changes from 1 commit
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
4edc9e4
Require PHP 8+
nicolaasuni Nov 19, 2023
12e24aa
fixes
nicolaasuni Nov 19, 2023
257cb2b
fixes
nicolaasuni Nov 19, 2023
98eff3f
fixes
nicolaasuni Nov 19, 2023
58e4b68
fixes
nicolaasuni Nov 19, 2023
3b729f8
fixes
nicolaasuni Nov 19, 2023
21de5f3
fixes
nicolaasuni Nov 19, 2023
400bb87
fixes
nicolaasuni Nov 19, 2023
6b63771
fixes
nicolaasuni Nov 19, 2023
9ce7f30
fixes
nicolaasuni Nov 19, 2023
4b1352b
fixes
nicolaasuni Nov 19, 2023
0cd0026
fixes
nicolaasuni Nov 19, 2023
d2dbfc7
fixes
nicolaasuni Nov 19, 2023
5baca80
fixes
nicolaasuni Nov 19, 2023
f0c4a94
fixes
nicolaasuni Nov 19, 2023
b86c6b1
fixes
nicolaasuni Nov 19, 2023
4c5139f
fixes
nicolaasuni Nov 19, 2023
776b33a
fixes
nicolaasuni Nov 19, 2023
67aa84a
fixes
nicolaasuni Nov 19, 2023
5edaf52
fixes
nicolaasuni Nov 19, 2023
09fe41f
fixes
nicolaasuni Nov 19, 2023
90dfb88
fixes
nicolaasuni Nov 19, 2023
eecf07b
fixes
nicolaasuni Nov 19, 2023
128c36b
fixes
nicolaasuni Nov 19, 2023
5992c47
fixes
nicolaasuni Nov 19, 2023
2e52ceb
fixes
nicolaasuni Nov 19, 2023
dabc412
fixes
nicolaasuni Nov 19, 2023
c5c610c
fixes
nicolaasuni Nov 19, 2023
36dcbd0
fixes
nicolaasuni Nov 19, 2023
7e50b77
fixes
nicolaasuni Nov 19, 2023
3b8244a
fixes
nicolaasuni Nov 19, 2023
d298d9a
fixes
nicolaasuni Nov 19, 2023
2727a04
fixes
nicolaasuni Nov 19, 2023
23c503f
fixes
nicolaasuni Nov 19, 2023
e928f83
fixes
nicolaasuni Nov 19, 2023
ff91a4e
fixes
nicolaasuni Nov 19, 2023
7bdbaba
fixes
nicolaasuni Nov 19, 2023
90188a5
fixes
nicolaasuni Nov 19, 2023
ad1a396
fixes
nicolaasuni Nov 19, 2023
9cf6898
fixes
nicolaasuni Nov 19, 2023
60b5923
fixes
nicolaasuni Nov 19, 2023
6612c2c
fixes
nicolaasuni Nov 19, 2023
7f9cd97
fixes
nicolaasuni Nov 19, 2023
42edc73
fixes
nicolaasuni Nov 19, 2023
36ff04a
fixes
nicolaasuni Nov 19, 2023
909b869
fixes
nicolaasuni Nov 20, 2023
e1c68c5
fixes
nicolaasuni Nov 20, 2023
f2843ac
fixes
nicolaasuni Nov 20, 2023
d3ddb3e
fixes
nicolaasuni Nov 20, 2023
b9ea0bd
fixes
nicolaasuni Nov 20, 2023
50d5657
fixes
nicolaasuni Nov 20, 2023
07083ff
fixes
nicolaasuni Nov 20, 2023
77fc91c
fixes
nicolaasuni Nov 20, 2023
f422f3d
fixes
nicolaasuni Nov 20, 2023
a9625c5
fixes
nicolaasuni Nov 20, 2023
9beba2f
fixes
nicolaasuni Nov 20, 2023
47a440b
rector
nicolaasuni Nov 20, 2023
518829c
fixes
nicolaasuni Nov 20, 2023
054e0bf
ASCII
nicolaasuni Nov 20, 2023
6c801de
maskfunc
nicolaasuni Nov 20, 2023
dde7fa9
maskno
nicolaasuni Nov 20, 2023
b089374
isCharMode
nicolaasuni Nov 20, 2023
c4eca1f
typemtd
nicolaasuni Nov 20, 2023
164ff6c
fixes
nicolaasuni Nov 20, 2023
0f4f8db
phpstan4
nicolaasuni Nov 20, 2023
6ad99eb
phpstan6
nicolaasuni Nov 20, 2023
bff38cd
phpstan5OK
nicolaasuni Nov 20, 2023
5d413b8
processBinarySequence
nicolaasuni Nov 20, 2023
06774f5
code is a string
nicolaasuni Nov 20, 2023
dedfb84
extcode is a string
nicolaasuni Nov 20, 2023
2e68fa9
processBinarySequence
nicolaasuni Nov 21, 2023
6673dc7
test_ASCII
nicolaasuni Nov 21, 2023
a0a1e05
TEST CLEAN
nicolaasuni Nov 21, 2023
cc85913
qrcode random mask type
nicolaasuni Nov 21, 2023
12ace23
qrcode mask
nicolaasuni Nov 21, 2023
9f396eb
fixes
nicolaasuni Nov 21, 2023
cb21d03
getRawCodeRows
nicolaasuni Nov 21, 2023
2d55541
setPadding
nicolaasuni Nov 21, 2023
c9c5f99
color object
nicolaasuni Nov 21, 2023
d099a77
fixes
nicolaasuni Nov 21, 2023
7915ff7
fixes
nicolaasuni Nov 21, 2023
06187b4
fixes
nicolaasuni Nov 21, 2023
a9a933d
types
nicolaasuni Nov 21, 2023
0596e9b
aztec
nicolaasuni Nov 21, 2023
9aeb74d
fixes
nicolaasuni Nov 21, 2023
26ea964
getRotatedBarArray
nicolaasuni Nov 21, 2023
261bfc5
isset const
nicolaasuni Nov 21, 2023
985a588
typo
nicolaasuni Nov 21, 2023
392e4f2
code128
nicolaasuni Nov 21, 2023
95d24a1
linear
nicolaasuni Nov 21, 2023
aec0265
fixes
nicolaasuni Nov 21, 2023
8fad6f2
fixes
nicolaasuni Nov 21, 2023
ccbb915
pdf417
nicolaasuni Nov 21, 2023
51e060e
data format
nicolaasuni Nov 21, 2023
435b5c0
data comments
nicolaasuni Nov 21, 2023
c7e4e43
aztec
nicolaasuni Nov 21, 2023
8ae53b6
datamatrix complete
nicolaasuni Nov 22, 2023
b104f49
datamatrix encodeBitStream
nicolaasuni Nov 22, 2023
a5e4b9c
qrcode init
nicolaasuni Nov 22, 2023
cb7c534
complete php8 refactoring
nicolaasuni Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
nicolaasuni committed Nov 21, 2023
commit 8fad6f2535338a388f0a1d69d43083c14cc44d91
58 changes: 33 additions & 25 deletions src/Type/Square/PdfFourOneSeven/Compaction.php
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
/**
* Process.php
*
* @since 2015-02-21
* @category Library
* @package Barcode
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2010-2023 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-barcode
* @since 2015-02-21
* @category Library
* @package Barcode
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2010-2023 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-barcode
*
* This file is part of tc-lib-barcode software library.
*/
@@ -21,18 +21,26 @@
*
* Process for PdfFourOneSeven Barcode type class
*
* @since 2015-02-21
* @category Library
* @package Barcode
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2010-2023 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-barcode
* @since 2015-02-21
* @category Library
* @package Barcode
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2010-2023 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-barcode
*/
abstract class Compaction extends \Com\Tecnick\Barcode\Type\Square\PdfFourOneSeven\Sequence
{
/**
* Process Sub Text Compaction
*
* @param array<int, int> $txtarr Array of characters and sub-mode switching characters
* @param int $submode Current submode
* @param int $sub New submode
* @param string $code Data to compact
* @param int $key Character code
* @param int $idx Current index
* @param int $codelen Code length
*/
protected function processTextCompactionSub(
array &$txtarr,
@@ -58,15 +66,15 @@ protected function processTextCompactionSub(
$submode = $sub;
}

// add characted code to array
// add character code to array
$txtarr[] = $key;
}

/**
* Process Text Compaction
*
* @param string $code Data to compact
* @param array $codewords Codewords
* @param string $code Data to compact
* @param array<int, int> $codewords Codewords
*/
protected function processTextCompaction(string $code, array &$codewords): void
{
@@ -109,8 +117,8 @@ protected function processTextCompaction(string $code, array &$codewords): void
/**
* Process Byte Compaction
*
* @param string $code Data to compact
* @param array $codewords Codewords
* @param string $code Data to compact
* @param array<int, int> $codewords Codewords
*/
protected function processByteCompaction(string $code, array &$codewords): void
{
@@ -155,8 +163,8 @@ protected function processByteCompaction(string $code, array &$codewords): void
/**
* Process Numeric Compaction
*
* @param string $code Data to compact
* @param array $codewords Codewords
* @param string $code Data to compact
* @param array<int, int> $codewords Codewords
*/
protected function processNumericCompaction(string $code, array &$codewords): void
{
@@ -181,11 +189,11 @@ protected function processNumericCompaction(string $code, array &$codewords): vo
/**
* Compact data by mode
*
* @param int $mode Compaction mode number
* @param string $code Data to compact
* @param bool $addmode If true add the mode codeword in the first position
* @param int $mode Compaction mode number
* @param string $code Data to compact
* @param bool $addmode If true add the mode codeword in the first position
*
* @return array of codewords
* @return array<int, int> of codewords
*/
protected function getCompaction(
int $mode,