function makeImpl($test, $maskPattern) { $this->moduleCount = $this->typeNumber * 4 + 17; $this->modules = array(); for ($i = 0; $i < $this->moduleCount; $i++) { $this->modules[] = QRCode::createNullArray($this->moduleCount); } $this->setupPositionProbePattern(0, 0); $this->setupPositionProbePattern($this->moduleCount - 7, 0); $this->setupPositionProbePattern(0, $this->moduleCount - 7); $this->setupPositionAdjustPattern(); $this->setupTimingPattern(); $this->setupTypeInfo($test, $maskPattern); if ($this->typeNumber >= 7) { $this->setupTypeNumber($test); } $dataArray = $this->qrDataList; $data = QRCode::createData($this->typeNumber, $this->errorCorrectLevel, $dataArray); $this->mapData($data, $maskPattern); }