Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1);namespace BaconQrCode\Encoder;use BaconQrCode\Common\BitArra..

Decoded Output download

<?php declare(strict_types=1);namespace BaconQrCode\Encoder;use BaconQrCode\Common\BitArray;use BaconQrCode\Common\ErrorCorrectionLevel;use BaconQrCode\Common\Version;use BaconQrCode\Exception\RuntimeException;use BaconQrCode\Exception\WriterException;/**
 * Matrix utility.
 */ final class hloh14{/**
     * Position detection pattern.
     */ private const POSITION_DETECTION_PATTERN=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],];/**
     * Position adjustment pattern.
     */ private const POSITION_ADJUSTMENT_PATTERN=[[1,1,1,1,1],[1,0,0,0,1],[1,0,1,0,1],[1,0,0,0,1],[1,1,1,1,1],];/**
     * Coordinates for position adjustment patterns for each version.
     */ private const POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=[[null,null,null,null,null,null,null],[6,18,null,null,null,null,null],[6,22,null,null,null,null,null],[6,26,null,null,null,null,null],[6,30,null,null,null,null,null],[6,34,null,null,null,null,null],[6,22,38,null,null,null,null],[6,24,42,null,null,null,null],[6,26,46,null,null,null,null],[6,28,50,null,null,null,null],[6,30,54,null,null,null,null],[6,32,58,null,null,null,null],[6,34,62,null,null,null,null],[6,26,46,66,null,null,null],[6,26,48,70,null,null,null],[6,26,50,74,null,null,null],[6,30,54,78,null,null,null],[6,30,56,82,null,null,null],[6,30,58,86,null,null,null],[6,34,62,90,null,null,null],[6,28,50,72,94,null,null],[6,26,50,74,98,null,null],[6,30,54,78,102,null,null],[6,28,54,80,106,null,null],[6,32,58,84,110,null,null],[6,30,58,86,114,null,null],[6,34,62,90,118,null,null],[6,26,50,74,98,122,null],[6,30,54,78,102,126,null],[6,26,52,78,104,130,null],[6,30,56,82,108,134,null],[6,34,60,86,112,138,null],[6,30,58,86,114,142,null],[6,34,62,90,118,146,null],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170],];/**
     * Type information coordinates.
     */ private const TYPE_INFO_COORDINATES=[[8,0],[8,1],[8,2],[8,3],[8,4],[8,5],[8,7],[8,8],[7,8],[5,8],[4,8],[3,8],[2,8],[1,8],[0,8],];/**
     * Version information polynomial.
     */ private const VERSION_INFO_POLY=0x1f25;/**
     * Type information polynomial.
     */ private const TYPE_INFO_POLY=0x537;/**
     * Type information mask pattern.
     */ private const TYPE_INFO_MASK_PATTERN=0x5412;/**
     * Clears a given matrix.
     */ public static function hlsw0(ByteMatrix $flqh15):void{$flqh15->sind16(-1);}/**
     * Builds a complete matrix.
     */ public static function lhag1(BitArray $xxds17,ErrorCorrectionLevel $fpqn18,Version $jmzp19,int $glvn1a,ByteMatrix $flqh15):void{self::hlsw0($flqh15);self::hpng9($jmzp19,$flqh15);self::tjww3($fpqn18,$glvn1a,$flqh15);self::oqmy5($jmzp19,$flqh15);self::lyfm13($xxds17,$glvn1a,$flqh15);}/**
     * Removes the position detection patterns from a matrix.
     *
     * This can be useful if you need to render those patterns separately.
     */ public static function ifot2(ByteMatrix $flqh15):void{$dfhc1b=count(self::POSITION_DETECTION_PATTERN[0]);self::cmzzc(0,0,$flqh15);self::cmzzc($flqh15->otcy1c()-$dfhc1b,0,$flqh15);self::cmzzc(0,$flqh15->otcy1c()-$dfhc1b,$flqh15);}/**
     * Embeds type information into a matrix.
     */ private static function tjww3(ErrorCorrectionLevel $fpqn18,int $glvn1a,ByteMatrix $flqh15):void{$ixyi1d=new ztoc1e();self::kosm4($fpqn18,$glvn1a,$ixyi1d);$woks1f=$ixyi1d->uvcb20();for($rnmo21=0;$rnmo21<$woks1f;++$rnmo21){$fbsm22=$ixyi1d->ooqc23($woks1f-1-$rnmo21);$zncv24=self::TYPE_INFO_COORDINATES[$rnmo21][0];$rxbe25=self::TYPE_INFO_COORDINATES[$rnmo21][1];$flqh15->hfxj26($zncv24,$rxbe25,(int)$fbsm22);if($rnmo21<8){$tgat27=$flqh15->otcy1c()-$rnmo21-1;$zcht28=8;}else{$tgat27=8;$zcht28=$flqh15->bdnh29()-7+($rnmo21-8);}$flqh15->hfxj26($tgat27,$zcht28,(int)$fbsm22);}}/**
     * Generates type information bits and appends them to a bit array.
     *
     * @throws RuntimeException if bit array resulted in invalid size
     */ private static function kosm4(ErrorCorrectionLevel $fpqn18,int $glvn1a,BitArray $capo2a):void{$rhhz2b=($fpqn18->lwyp2c()<<3)|$glvn1a;$capo2a->lqno2d($rhhz2b,5);$pqtp2e=self::zbay7($rhhz2b,self::TYPE_INFO_POLY);$capo2a->lqno2d($pqtp2e,10);$rovl2f=new ztoc1e();$rovl2f->lqno2d(self::TYPE_INFO_MASK_PATTERN,15);$capo2a->fkfy30($rovl2f);if(15!==$capo2a->uvcb20()){throw new gmeg31(base64_decode('Qml0IGFycmF5IHJlc3VsdGVkIGluIGludmFsaWQgc2l6ZTog').$capo2a->uvcb20());}}/**
     * Embeds version information if required.
     */ private static function oqmy5(Version $jmzp19,ByteMatrix $flqh15):void{if($jmzp19->rdnn32()<7){return;}$ntkz33=new ztoc1e();self::yjmv6($jmzp19,$ntkz33);$kkgv34=6*3-1;for($rnmo21=0;$rnmo21<6;++$rnmo21){for($mfxi35=0;$mfxi35<3;++$mfxi35){$fbsm22=$ntkz33->ooqc23($kkgv34);--$kkgv34;$flqh15->hfxj26($rnmo21,$flqh15->bdnh29()-11+$mfxi35,(int)$fbsm22);$flqh15->hfxj26($flqh15->bdnh29()-11+$mfxi35,$rnmo21,(int)$fbsm22);}}}/**
     * Generates version information bits and appends them to a bit array.
     *
     * @throws RuntimeException if bit array resulted in invalid size
     */ private static function yjmv6(Version $jmzp19,BitArray $capo2a):void{$capo2a->lqno2d($jmzp19->rdnn32(),6);$pqtp2e=self::zbay7($jmzp19->rdnn32(),self::VERSION_INFO_POLY);$capo2a->lqno2d($pqtp2e,12);if(18!==$capo2a->uvcb20()){throw new gmeg31(base64_decode('Qml0IGFycmF5IHJlc3VsdGVkIGluIGludmFsaWQgc2l6ZTog').$capo2a->uvcb20());}}/**
     * Calculates the BCH code for a value and a polynomial.
     */ private static function zbay7(int $fnoy36,int $nolg37):int{$ynvv38=self::squf8($nolg37);$fnoy36<<=$ynvv38-1;while(self::squf8($fnoy36)>=$ynvv38){$fnoy36^=$nolg37<<(self::squf8($fnoy36)-$ynvv38);}return $fnoy36;}/**
     * Finds and MSB set.
     */ private static function squf8(int $fnoy36):int{$fmho39=0;while(0!==$fnoy36){$fnoy36>>=1;++$fmho39;}return $fmho39;}/**
     * Embeds basic patterns into a matrix.
     */ private static function hpng9(Version $jmzp19,ByteMatrix $flqh15):void{self::dqbaa($flqh15);self::sapwf($flqh15);self::wmbp10($jmzp19,$flqh15);self::xqim12($flqh15);}/**
     * Embeds position detection patterns and separators into a byte matrix.
     */ private static function dqbaa(ByteMatrix $flqh15):void{$dfhc1b=count(self::POSITION_DETECTION_PATTERN[0]);self::fbbhb(0,0,$flqh15);self::fbbhb($flqh15->otcy1c()-$dfhc1b,0,$flqh15);self::fbbhb(0,$flqh15->otcy1c()-$dfhc1b,$flqh15);$eazn3a=8;self::xkucd(0,$eazn3a-1,$flqh15);self::xkucd($flqh15->otcy1c()-$eazn3a,$eazn3a-1,$flqh15);self::xkucd(0,$flqh15->otcy1c()-$eazn3a,$flqh15);$qxjs3b=7;self::owzxe($qxjs3b,0,$flqh15);self::owzxe($flqh15->bdnh29()-$qxjs3b-1,0,$flqh15);self::owzxe($qxjs3b,$flqh15->bdnh29()-$qxjs3b,$flqh15);}/**
     * Embeds a single position detection pattern into a byte matrix.
     */ private static function fbbhb(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;++$mmgw3e){for($smjb3f=0;$smjb3f<7;++$smjb3f){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,self::POSITION_DETECTION_PATTERN[$mmgw3e][$smjb3f]);}}}private static function cmzzc(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;++$mmgw3e){for($smjb3f=0;$smjb3f<7;++$smjb3f){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,0);}}}/**
     * Embeds a single horizontal separation pattern.
     *
     * @throws RuntimeException if a byte was already set
     */ private static function xkucd(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($smjb3f=0;$smjb3f<8;$smjb3f++){if(-1!==$flqh15->ooqc23($lpkp3c+$smjb3f,$setr3d)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldA=='));}$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d,0);}}/**
     * Embeds a single vertical separation pattern.
     *
     * @throws RuntimeException if a byte was already set
     */ private static function owzxe(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;$mmgw3e++){if(-1!==$flqh15->ooqc23($lpkp3c,$setr3d+$mmgw3e)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldA=='));}$flqh15->hfxj26($lpkp3c,$setr3d+$mmgw3e,0);}}/**
     * Embeds a dot at the left bottom corner.
     *
     * @throws RuntimeException if a byte was already set to 0
     */ private static function sapwf(ByteMatrix $flqh15):void{if(0===$flqh15->ooqc23(8,$flqh15->bdnh29()-8)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldCB0byAw'));}$flqh15->hfxj26(8,$flqh15->bdnh29()-8,1);}/**
     * Embeds position adjustment patterns if required.
     */ private static function wmbp10(Version $jmzp19,ByteMatrix $flqh15):void{if($jmzp19->rdnn32()<2){return;}$gfos40=$jmzp19->rdnn32()-1;$nfdg41=self::POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[$gfos40];$nriu42=count($nfdg41);for($rnmo21=0;$rnmo21<$nriu42;++$rnmo21){for($mfxi35=0;$mfxi35<$nriu42;++$mfxi35){$mmgw3e=$nfdg41[$rnmo21];$smjb3f=$nfdg41[$mfxi35];if(null===$smjb3f||null===$mmgw3e){continue;}if(-1===$flqh15->ooqc23($smjb3f,$mmgw3e)){self::ldby11($smjb3f-2,$mmgw3e-2,$flqh15);}}}}/**
     * Embeds a single position adjustment pattern.
     */ private static function ldby11(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<5;$mmgw3e++){for($smjb3f=0;$smjb3f<5;$smjb3f++){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,self::POSITION_ADJUSTMENT_PATTERN[$mmgw3e][$smjb3f]);}}}/**
     * Embeds timing patterns into a matrix.
     */ private static function xqim12(ByteMatrix $flqh15):void{$rjwa43=$flqh15->otcy1c();for($rnmo21=8;$rnmo21<$rjwa43-8;++$rnmo21){$fbsm22=($rnmo21+1)%2;if(-1===$flqh15->ooqc23($rnmo21,6)){$flqh15->hfxj26($rnmo21,6,$fbsm22);}if(-1===$flqh15->ooqc23(6,$rnmo21)){$flqh15->hfxj26(6,$rnmo21,$fbsm22);}}}/**
     * Embeds "dataBits" using "getMaskPattern".
     *
     * For debugging purposes, it skips masking process if "getMaskPattern" is -1. See 8.7 of JISX0510:2004 (p.38) for
     * how to embed data bits.
     *
     * @throws WriterException if not all bits could be consumed
     */ private static function lyfm13(BitArray $xxds17,int $glvn1a,ByteMatrix $flqh15):void{$kkgv34=0;$rajl44=-1;$smjb3f=$flqh15->otcy1c()-1;$mmgw3e=$flqh15->bdnh29()-1;while($smjb3f>0){if(6===$smjb3f){--$smjb3f;}while($mmgw3e>=0&&$mmgw3e<$flqh15->bdnh29()){for($rnmo21=0;$rnmo21<2;$rnmo21++){$gdtx45=$smjb3f-$rnmo21;if(-1!==$flqh15->ooqc23($gdtx45,$mmgw3e)){continue;}if($kkgv34<$xxds17->uvcb20()){$fbsm22=$xxds17->ooqc23($kkgv34);++$kkgv34;}else{$fbsm22=false;}if(-1!==$glvn1a&&MaskUtil::qibt46($glvn1a,$gdtx45,$mmgw3e)){$fbsm22=!$fbsm22;}$flqh15->hfxj26($gdtx45,$mmgw3e,(int)$fbsm22);}$mmgw3e+=$rajl44;}$rajl44=-$rajl44;$mmgw3e+=$rajl44;$smjb3f-=2;}if($xxds17->uvcb20()!==$kkgv34){throw new cqmd47(base64_decode('Tm90IGFsbCBiaXRzIGNvbnN1bWVkICg=').$kkgv34.base64_decode('IG91dCBvZiA=').$xxds17->uvcb20().base64_decode('KQ=='));}}}?>

Did this file decode correctly?

Original Code

<?php declare(strict_types=1);namespace BaconQrCode\Encoder;use BaconQrCode\Common\BitArray;use BaconQrCode\Common\ErrorCorrectionLevel;use BaconQrCode\Common\Version;use BaconQrCode\Exception\RuntimeException;use BaconQrCode\Exception\WriterException;/**
 * Matrix utility.
 */ final class hloh14{/**
     * Position detection pattern.
     */ private const POSITION_DETECTION_PATTERN=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1],];/**
     * Position adjustment pattern.
     */ private const POSITION_ADJUSTMENT_PATTERN=[[1,1,1,1,1],[1,0,0,0,1],[1,0,1,0,1],[1,0,0,0,1],[1,1,1,1,1],];/**
     * Coordinates for position adjustment patterns for each version.
     */ private const POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=[[null,null,null,null,null,null,null],[6,18,null,null,null,null,null],[6,22,null,null,null,null,null],[6,26,null,null,null,null,null],[6,30,null,null,null,null,null],[6,34,null,null,null,null,null],[6,22,38,null,null,null,null],[6,24,42,null,null,null,null],[6,26,46,null,null,null,null],[6,28,50,null,null,null,null],[6,30,54,null,null,null,null],[6,32,58,null,null,null,null],[6,34,62,null,null,null,null],[6,26,46,66,null,null,null],[6,26,48,70,null,null,null],[6,26,50,74,null,null,null],[6,30,54,78,null,null,null],[6,30,56,82,null,null,null],[6,30,58,86,null,null,null],[6,34,62,90,null,null,null],[6,28,50,72,94,null,null],[6,26,50,74,98,null,null],[6,30,54,78,102,null,null],[6,28,54,80,106,null,null],[6,32,58,84,110,null,null],[6,30,58,86,114,null,null],[6,34,62,90,118,null,null],[6,26,50,74,98,122,null],[6,30,54,78,102,126,null],[6,26,52,78,104,130,null],[6,30,56,82,108,134,null],[6,34,60,86,112,138,null],[6,30,58,86,114,142,null],[6,34,62,90,118,146,null],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170],];/**
     * Type information coordinates.
     */ private const TYPE_INFO_COORDINATES=[[8,0],[8,1],[8,2],[8,3],[8,4],[8,5],[8,7],[8,8],[7,8],[5,8],[4,8],[3,8],[2,8],[1,8],[0,8],];/**
     * Version information polynomial.
     */ private const VERSION_INFO_POLY=0x1f25;/**
     * Type information polynomial.
     */ private const TYPE_INFO_POLY=0x537;/**
     * Type information mask pattern.
     */ private const TYPE_INFO_MASK_PATTERN=0x5412;/**
     * Clears a given matrix.
     */ public static function hlsw0(ByteMatrix $flqh15):void{$flqh15->sind16(-1);}/**
     * Builds a complete matrix.
     */ public static function lhag1(BitArray $xxds17,ErrorCorrectionLevel $fpqn18,Version $jmzp19,int $glvn1a,ByteMatrix $flqh15):void{self::hlsw0($flqh15);self::hpng9($jmzp19,$flqh15);self::tjww3($fpqn18,$glvn1a,$flqh15);self::oqmy5($jmzp19,$flqh15);self::lyfm13($xxds17,$glvn1a,$flqh15);}/**
     * Removes the position detection patterns from a matrix.
     *
     * This can be useful if you need to render those patterns separately.
     */ public static function ifot2(ByteMatrix $flqh15):void{$dfhc1b=count(self::POSITION_DETECTION_PATTERN[0]);self::cmzzc(0,0,$flqh15);self::cmzzc($flqh15->otcy1c()-$dfhc1b,0,$flqh15);self::cmzzc(0,$flqh15->otcy1c()-$dfhc1b,$flqh15);}/**
     * Embeds type information into a matrix.
     */ private static function tjww3(ErrorCorrectionLevel $fpqn18,int $glvn1a,ByteMatrix $flqh15):void{$ixyi1d=new ztoc1e();self::kosm4($fpqn18,$glvn1a,$ixyi1d);$woks1f=$ixyi1d->uvcb20();for($rnmo21=0;$rnmo21<$woks1f;++$rnmo21){$fbsm22=$ixyi1d->ooqc23($woks1f-1-$rnmo21);$zncv24=self::TYPE_INFO_COORDINATES[$rnmo21][0];$rxbe25=self::TYPE_INFO_COORDINATES[$rnmo21][1];$flqh15->hfxj26($zncv24,$rxbe25,(int)$fbsm22);if($rnmo21<8){$tgat27=$flqh15->otcy1c()-$rnmo21-1;$zcht28=8;}else{$tgat27=8;$zcht28=$flqh15->bdnh29()-7+($rnmo21-8);}$flqh15->hfxj26($tgat27,$zcht28,(int)$fbsm22);}}/**
     * Generates type information bits and appends them to a bit array.
     *
     * @throws RuntimeException if bit array resulted in invalid size
     */ private static function kosm4(ErrorCorrectionLevel $fpqn18,int $glvn1a,BitArray $capo2a):void{$rhhz2b=($fpqn18->lwyp2c()<<3)|$glvn1a;$capo2a->lqno2d($rhhz2b,5);$pqtp2e=self::zbay7($rhhz2b,self::TYPE_INFO_POLY);$capo2a->lqno2d($pqtp2e,10);$rovl2f=new ztoc1e();$rovl2f->lqno2d(self::TYPE_INFO_MASK_PATTERN,15);$capo2a->fkfy30($rovl2f);if(15!==$capo2a->uvcb20()){throw new gmeg31(base64_decode('Qml0IGFycmF5IHJlc3VsdGVkIGluIGludmFsaWQgc2l6ZTog').$capo2a->uvcb20());}}/**
     * Embeds version information if required.
     */ private static function oqmy5(Version $jmzp19,ByteMatrix $flqh15):void{if($jmzp19->rdnn32()<7){return;}$ntkz33=new ztoc1e();self::yjmv6($jmzp19,$ntkz33);$kkgv34=6*3-1;for($rnmo21=0;$rnmo21<6;++$rnmo21){for($mfxi35=0;$mfxi35<3;++$mfxi35){$fbsm22=$ntkz33->ooqc23($kkgv34);--$kkgv34;$flqh15->hfxj26($rnmo21,$flqh15->bdnh29()-11+$mfxi35,(int)$fbsm22);$flqh15->hfxj26($flqh15->bdnh29()-11+$mfxi35,$rnmo21,(int)$fbsm22);}}}/**
     * Generates version information bits and appends them to a bit array.
     *
     * @throws RuntimeException if bit array resulted in invalid size
     */ private static function yjmv6(Version $jmzp19,BitArray $capo2a):void{$capo2a->lqno2d($jmzp19->rdnn32(),6);$pqtp2e=self::zbay7($jmzp19->rdnn32(),self::VERSION_INFO_POLY);$capo2a->lqno2d($pqtp2e,12);if(18!==$capo2a->uvcb20()){throw new gmeg31(base64_decode('Qml0IGFycmF5IHJlc3VsdGVkIGluIGludmFsaWQgc2l6ZTog').$capo2a->uvcb20());}}/**
     * Calculates the BCH code for a value and a polynomial.
     */ private static function zbay7(int $fnoy36,int $nolg37):int{$ynvv38=self::squf8($nolg37);$fnoy36<<=$ynvv38-1;while(self::squf8($fnoy36)>=$ynvv38){$fnoy36^=$nolg37<<(self::squf8($fnoy36)-$ynvv38);}return $fnoy36;}/**
     * Finds and MSB set.
     */ private static function squf8(int $fnoy36):int{$fmho39=0;while(0!==$fnoy36){$fnoy36>>=1;++$fmho39;}return $fmho39;}/**
     * Embeds basic patterns into a matrix.
     */ private static function hpng9(Version $jmzp19,ByteMatrix $flqh15):void{self::dqbaa($flqh15);self::sapwf($flqh15);self::wmbp10($jmzp19,$flqh15);self::xqim12($flqh15);}/**
     * Embeds position detection patterns and separators into a byte matrix.
     */ private static function dqbaa(ByteMatrix $flqh15):void{$dfhc1b=count(self::POSITION_DETECTION_PATTERN[0]);self::fbbhb(0,0,$flqh15);self::fbbhb($flqh15->otcy1c()-$dfhc1b,0,$flqh15);self::fbbhb(0,$flqh15->otcy1c()-$dfhc1b,$flqh15);$eazn3a=8;self::xkucd(0,$eazn3a-1,$flqh15);self::xkucd($flqh15->otcy1c()-$eazn3a,$eazn3a-1,$flqh15);self::xkucd(0,$flqh15->otcy1c()-$eazn3a,$flqh15);$qxjs3b=7;self::owzxe($qxjs3b,0,$flqh15);self::owzxe($flqh15->bdnh29()-$qxjs3b-1,0,$flqh15);self::owzxe($qxjs3b,$flqh15->bdnh29()-$qxjs3b,$flqh15);}/**
     * Embeds a single position detection pattern into a byte matrix.
     */ private static function fbbhb(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;++$mmgw3e){for($smjb3f=0;$smjb3f<7;++$smjb3f){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,self::POSITION_DETECTION_PATTERN[$mmgw3e][$smjb3f]);}}}private static function cmzzc(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;++$mmgw3e){for($smjb3f=0;$smjb3f<7;++$smjb3f){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,0);}}}/**
     * Embeds a single horizontal separation pattern.
     *
     * @throws RuntimeException if a byte was already set
     */ private static function xkucd(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($smjb3f=0;$smjb3f<8;$smjb3f++){if(-1!==$flqh15->ooqc23($lpkp3c+$smjb3f,$setr3d)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldA=='));}$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d,0);}}/**
     * Embeds a single vertical separation pattern.
     *
     * @throws RuntimeException if a byte was already set
     */ private static function owzxe(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<7;$mmgw3e++){if(-1!==$flqh15->ooqc23($lpkp3c,$setr3d+$mmgw3e)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldA=='));}$flqh15->hfxj26($lpkp3c,$setr3d+$mmgw3e,0);}}/**
     * Embeds a dot at the left bottom corner.
     *
     * @throws RuntimeException if a byte was already set to 0
     */ private static function sapwf(ByteMatrix $flqh15):void{if(0===$flqh15->ooqc23(8,$flqh15->bdnh29()-8)){throw new gmeg31(base64_decode('Qnl0ZSBhbHJlYWR5IHNldCB0byAw'));}$flqh15->hfxj26(8,$flqh15->bdnh29()-8,1);}/**
     * Embeds position adjustment patterns if required.
     */ private static function wmbp10(Version $jmzp19,ByteMatrix $flqh15):void{if($jmzp19->rdnn32()<2){return;}$gfos40=$jmzp19->rdnn32()-1;$nfdg41=self::POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[$gfos40];$nriu42=count($nfdg41);for($rnmo21=0;$rnmo21<$nriu42;++$rnmo21){for($mfxi35=0;$mfxi35<$nriu42;++$mfxi35){$mmgw3e=$nfdg41[$rnmo21];$smjb3f=$nfdg41[$mfxi35];if(null===$smjb3f||null===$mmgw3e){continue;}if(-1===$flqh15->ooqc23($smjb3f,$mmgw3e)){self::ldby11($smjb3f-2,$mmgw3e-2,$flqh15);}}}}/**
     * Embeds a single position adjustment pattern.
     */ private static function ldby11(int $lpkp3c,int $setr3d,ByteMatrix $flqh15):void{for($mmgw3e=0;$mmgw3e<5;$mmgw3e++){for($smjb3f=0;$smjb3f<5;$smjb3f++){$flqh15->hfxj26($lpkp3c+$smjb3f,$setr3d+$mmgw3e,self::POSITION_ADJUSTMENT_PATTERN[$mmgw3e][$smjb3f]);}}}/**
     * Embeds timing patterns into a matrix.
     */ private static function xqim12(ByteMatrix $flqh15):void{$rjwa43=$flqh15->otcy1c();for($rnmo21=8;$rnmo21<$rjwa43-8;++$rnmo21){$fbsm22=($rnmo21+1)%2;if(-1===$flqh15->ooqc23($rnmo21,6)){$flqh15->hfxj26($rnmo21,6,$fbsm22);}if(-1===$flqh15->ooqc23(6,$rnmo21)){$flqh15->hfxj26(6,$rnmo21,$fbsm22);}}}/**
     * Embeds "dataBits" using "getMaskPattern".
     *
     * For debugging purposes, it skips masking process if "getMaskPattern" is -1. See 8.7 of JISX0510:2004 (p.38) for
     * how to embed data bits.
     *
     * @throws WriterException if not all bits could be consumed
     */ private static function lyfm13(BitArray $xxds17,int $glvn1a,ByteMatrix $flqh15):void{$kkgv34=0;$rajl44=-1;$smjb3f=$flqh15->otcy1c()-1;$mmgw3e=$flqh15->bdnh29()-1;while($smjb3f>0){if(6===$smjb3f){--$smjb3f;}while($mmgw3e>=0&&$mmgw3e<$flqh15->bdnh29()){for($rnmo21=0;$rnmo21<2;$rnmo21++){$gdtx45=$smjb3f-$rnmo21;if(-1!==$flqh15->ooqc23($gdtx45,$mmgw3e)){continue;}if($kkgv34<$xxds17->uvcb20()){$fbsm22=$xxds17->ooqc23($kkgv34);++$kkgv34;}else{$fbsm22=false;}if(-1!==$glvn1a&&MaskUtil::qibt46($glvn1a,$gdtx45,$mmgw3e)){$fbsm22=!$fbsm22;}$flqh15->hfxj26($gdtx45,$mmgw3e,(int)$fbsm22);}$mmgw3e+=$rajl44;}$rajl44=-$rajl44;$mmgw3e+=$rajl44;$smjb3f-=2;}if($xxds17->uvcb20()!==$kkgv34){throw new cqmd47(base64_decode('Tm90IGFsbCBiaXRzIGNvbnN1bWVkICg=').$kkgv34.base64_decode('IG91dCBvZiA=').$xxds17->uvcb20().base64_decode('KQ=='));}}}?>

Function Calls

None

Variables

None

Stats

MD5 d3a6dae6803a7072765a0bacc78f17ed
Eval Count 0
Decode Time 52 ms