@@ -86,7 +86,7 @@ abstract class QRDataAbstract implements QRDataInterface{
8686 * QRDataInterface constructor.
8787 *
8888 * @param \chillerlan\Settings\SettingsContainerInterface $options
89- * @param string|null $data
89+ * @param string|null $data
9090 */
9191 public function __construct (SettingsContainerInterface $ options , string $ data = null ){
9292 $ this ->options = $ options ;
@@ -97,11 +97,7 @@ public function __construct(SettingsContainerInterface $options, string $data =
9797 }
9898
9999 /**
100- * Sets the data string (internally called by the constructor)
101- *
102- * @param string $data
103- *
104- * @return \chillerlan\QRCode\Data\QRDataInterface
100+ * @inheritDoc
105101 */
106102 public function setData (string $ data ):QRDataInterface {
107103
@@ -123,17 +119,10 @@ public function setData(string $data):QRDataInterface{
123119 }
124120
125121 /**
126- * returns a fresh matrix object with the data written for the given $maskPattern
127- *
128- * @param int $maskPattern
129- * @param bool|null $test
130- *
131- * @return \chillerlan\QRCode\Data\QRMatrix
122+ * @inheritDoc
132123 */
133124 public function initMatrix (int $ maskPattern , bool $ test = null ):QRMatrix {
134- $ matrix = new QRMatrix ($ this ->version , $ this ->options ->eccLevel );
135-
136- return $ matrix
125+ return (new QRMatrix ($ this ->version , $ this ->options ->eccLevel ))
137126 ->setFinderPattern ()
138127 ->setSeparators ()
139128 ->setAlignmentPattern ()
@@ -196,6 +185,8 @@ protected function getMinimumVersion():int{
196185 }
197186
198187 /**
188+ * writes the actual data string to the BitBuffer
189+ *
199190 * @see \chillerlan\QRCode\Data\QRDataAbstract::writeBitBuffer()
200191 *
201192 * @param string $data
@@ -205,7 +196,7 @@ protected function getMinimumVersion():int{
205196 abstract protected function write (string $ data ):void ;
206197
207198 /**
208- * writes the string data to the BitBuffer
199+ * creates a BitBuffer and writes the string data to it
209200 *
210201 * @param string $data
211202 *
@@ -262,8 +253,6 @@ protected function writeBitBuffer(string $data):QRDataInterface{
262253 /**
263254 * ECC masking
264255 *
265- * @see \chillerlan\QRCode\Data\QRDataAbstract::writeBitBuffer()
266- *
267256 * @link http://www.thonky.com/qr-code-tutorial/error-correction-coding
268257 *
269258 * @return array
0 commit comments