Completed
Branch develop (b89940)
by
unknown
22:36
created
htdocs/includes/tecnickcom/tcpdf/include/barcodes/qrcode.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -162,29 +162,29 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * Maximum matrix size for maximum version (version 40 is 177*177 matrix).
164 164
 	 */
165
-    define('QRSPEC_WIDTH_MAX', 177);
165
+	define('QRSPEC_WIDTH_MAX', 177);
166 166
 
167 167
 	// -----------------------------------------------------
168 168
 
169 169
 	/**
170 170
 	 * Matrix index to get width from $capacity array.
171 171
 	 */
172
-    define('QRCAP_WIDTH',    0);
172
+	define('QRCAP_WIDTH',    0);
173 173
 
174
-    /**
174
+	/**
175 175
 	 * Matrix index to get number of words from $capacity array.
176 176
 	 */
177
-    define('QRCAP_WORDS',    1);
177
+	define('QRCAP_WORDS',    1);
178 178
 
179
-    /**
179
+	/**
180 180
 	 * Matrix index to get remainder from $capacity array.
181 181
 	 */
182
-    define('QRCAP_REMINDER', 2);
182
+	define('QRCAP_REMINDER', 2);
183 183
 
184
-    /**
184
+	/**
185 185
 	 * Matrix index to get error correction level from $capacity array.
186 186
 	 */
187
-    define('QRCAP_EC',       3);
187
+	define('QRCAP_EC',       3);
188 188
 
189 189
 	// -----------------------------------------------------
190 190
 
@@ -193,33 +193,33 @@  discard block
 block discarded – undo
193 193
 	/**
194 194
 	 * Number of header bits for structured mode
195 195
 	 */
196
-    define('STRUCTURE_HEADER_BITS',  20);
196
+	define('STRUCTURE_HEADER_BITS',  20);
197 197
 
198
-    /**
198
+	/**
199 199
 	 * Max number of symbols for structured mode
200 200
 	 */
201
-    define('MAX_STRUCTURED_SYMBOLS', 16);
201
+	define('MAX_STRUCTURED_SYMBOLS', 16);
202 202
 
203 203
 	// -----------------------------------------------------
204 204
 
205
-    // Masks
205
+	// Masks
206 206
 
207
-    /**
207
+	/**
208 208
 	 * Down point base value for case 1 mask pattern (concatenation of same color in a line or a column)
209 209
 	 */
210
-    define('N1',  3);
210
+	define('N1',  3);
211 211
 
212
-    /**
212
+	/**
213 213
 	 * Down point base value for case 2 mask pattern (module block of same color)
214 214
 	 */
215 215
 	define('N2',  3);
216 216
 
217
-    /**
217
+	/**
218 218
 	 * Down point base value for case 3 mask pattern (1:1:3:1:1(dark:bright:dark:bright:dark)pattern in a line or a column)
219 219
 	 */
220 220
 	define('N3', 40);
221 221
 
222
-    /**
222
+	/**
223 223
 	 * Down point base value for case 4 mask pattern (ration of dark modules in whole)
224 224
 	 */
225 225
 	define('N4', 10);
@@ -2592,7 +2592,7 @@  discard block
 block discarded – undo
2592 2592
 	}
2593 2593
 
2594 2594
 	/**
2595
-	* Return block number 1
2595
+	 * Return block number 1
2596 2596
 	 * @param array $spec
2597 2597
 	 * @return int value
2598 2598
 	 */
Please login to merge, or discard this patch.
htdocs/includes/tecnickcom/tcpdf/include/tcpdf_static.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		if ($headers === false) {
141 141
 			return false;
142 142
 		}
143
-    	return (strpos($headers[0], '200') !== false);
143
+		return (strpos($headers[0], '200') !== false);
144 144
 	}
145 145
 
146 146
 	/**
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
 	}
279 279
 
280 280
 	/**
281
-	* Escape some special characters (< > &) for XML output.
282
-	* @param string $str Input string to convert.
283
-	* @return string converted string
284
-	* @since 5.9.121 (2011-09-28)
281
+	 * Escape some special characters (< > &) for XML output.
282
+	 * @param string $str Input string to convert.
283
+	 * @return string converted string
284
+	 * @since 5.9.121 (2011-09-28)
285 285
 	 * @public static
286 286
 	 */
287 287
 	public static function _escapeXML($str) {
@@ -1841,7 +1841,7 @@  discard block
 block discarded – undo
1841 1841
 		curl_setopt($crs, CURLOPT_USERAGENT, 'tc-lib-file');
1842 1842
 		curl_setopt($crs, CURLOPT_MAXREDIRS, 5);
1843 1843
 		if (defined('CURLOPT_PROTOCOLS')) {
1844
-		    curl_setopt($crs, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS | CURLPROTO_HTTP |  CURLPROTO_FTP | CURLPROTO_FTPS);
1844
+			curl_setopt($crs, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS | CURLPROTO_HTTP |  CURLPROTO_FTP | CURLPROTO_FTPS);
1845 1845
 		}
1846 1846
 		curl_exec($crs);
1847 1847
 		$code = curl_getinfo($crs, CURLINFO_HTTP_CODE);
@@ -1901,20 +1901,20 @@  discard block
 block discarded – undo
1901 1901
 		$alt = array($file);
1902 1902
 		//
1903 1903
 		if ((strlen($file) > 1)
1904
-		    && ($file[0] === '/')
1905
-		    && ($file[1] !== '/')
1906
-		    && !empty($_SERVER['DOCUMENT_ROOT'])
1907
-		    && ($_SERVER['DOCUMENT_ROOT'] !== '/')
1904
+			&& ($file[0] === '/')
1905
+			&& ($file[1] !== '/')
1906
+			&& !empty($_SERVER['DOCUMENT_ROOT'])
1907
+			&& ($_SERVER['DOCUMENT_ROOT'] !== '/')
1908 1908
 		) {
1909
-		    $findroot = strpos($file, $_SERVER['DOCUMENT_ROOT']);
1910
-		    if (($findroot === false) || ($findroot > 1)) {
1909
+			$findroot = strpos($file, $_SERVER['DOCUMENT_ROOT']);
1910
+			if (($findroot === false) || ($findroot > 1)) {
1911 1911
 			$alt[] = htmlspecialchars_decode(urldecode($_SERVER['DOCUMENT_ROOT'].$file));
1912
-		    }
1912
+			}
1913 1913
 		}
1914 1914
 		//
1915 1915
 		$protocol = 'http';
1916 1916
 		if (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) {
1917
-		    $protocol .= 's';
1917
+			$protocol .= 's';
1918 1918
 		}
1919 1919
 		//
1920 1920
 		$url = $file;
@@ -1925,26 +1925,26 @@  discard block
 block discarded – undo
1925 1925
 		$alt[] = $url;
1926 1926
 		//
1927 1927
 		if (preg_match('%^(https?)://%', $url)
1928
-		    && empty($_SERVER['HTTP_HOST'])
1929
-		    && empty($_SERVER['DOCUMENT_ROOT'])
1928
+			&& empty($_SERVER['HTTP_HOST'])
1929
+			&& empty($_SERVER['DOCUMENT_ROOT'])
1930 1930
 		) {
1931 1931
 			$urldata = parse_url($url);
1932 1932
 			if (empty($urldata['query'])) {
1933 1933
 				$host = $protocol.'://'.$_SERVER['HTTP_HOST'];
1934 1934
 				if (strpos($url, $host) === 0) {
1935
-				    // convert URL to full server path
1936
-				    $tmp = str_replace($host, $_SERVER['DOCUMENT_ROOT'], $url);
1937
-				    $alt[] = htmlspecialchars_decode(urldecode($tmp));
1935
+					// convert URL to full server path
1936
+					$tmp = str_replace($host, $_SERVER['DOCUMENT_ROOT'], $url);
1937
+					$alt[] = htmlspecialchars_decode(urldecode($tmp));
1938 1938
 				}
1939 1939
 			}
1940 1940
 		}
1941 1941
 		//
1942 1942
 		if (isset($_SERVER['SCRIPT_URI'])
1943
-		    && !preg_match('%^(https?|ftp)://%', $file)
1944
-		    && !preg_match('%^//%', $file)
1943
+			&& !preg_match('%^(https?|ftp)://%', $file)
1944
+			&& !preg_match('%^//%', $file)
1945 1945
 		) {
1946
-		    $urldata = @parse_url($_SERVER['SCRIPT_URI']);
1947
-		    $alt[] = $urldata['scheme'].'://'.$urldata['host'].(($file[0] == '/') ? '' : '/').$file;
1946
+			$urldata = @parse_url($_SERVER['SCRIPT_URI']);
1947
+			$alt[] = $urldata['scheme'].'://'.$urldata['host'].(($file[0] == '/') ? '' : '/').$file;
1948 1948
 		}
1949 1949
 		//
1950 1950
 		$alt = array_unique($alt);
@@ -1954,7 +1954,7 @@  discard block
 block discarded – undo
1954 1954
 			}
1955 1955
 			$ret = @file_get_contents($path);
1956 1956
 			if ( $ret != false ) {
1957
-			    return $ret;
1957
+				return $ret;
1958 1958
 			}
1959 1959
 			// try to use CURL for URLs
1960 1960
 			if (!ini_get('allow_url_fopen')
@@ -1968,7 +1968,7 @@  discard block
 block discarded – undo
1968 1968
 				curl_setopt($crs, CURLOPT_FAILONERROR, true);
1969 1969
 				curl_setopt($crs, CURLOPT_RETURNTRANSFER, true);
1970 1970
 				if ((ini_get('open_basedir') == '') && (!ini_get('safe_mode'))) {
1971
-				    curl_setopt($crs, CURLOPT_FOLLOWLOCATION, true);
1971
+					curl_setopt($crs, CURLOPT_FOLLOWLOCATION, true);
1972 1972
 				}
1973 1973
 				curl_setopt($crs, CURLOPT_CONNECTTIMEOUT, 5);
1974 1974
 				curl_setopt($crs, CURLOPT_TIMEOUT, 30);
@@ -1977,7 +1977,7 @@  discard block
 block discarded – undo
1977 1977
 				curl_setopt($crs, CURLOPT_USERAGENT, 'tc-lib-file');
1978 1978
 				curl_setopt($crs, CURLOPT_MAXREDIRS, 5);
1979 1979
 				if (defined('CURLOPT_PROTOCOLS')) {
1980
-				    curl_setopt($crs, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS | CURLPROTO_HTTP |  CURLPROTO_FTP | CURLPROTO_FTPS);
1980
+					curl_setopt($crs, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS | CURLPROTO_HTTP |  CURLPROTO_FTP | CURLPROTO_FTPS);
1981 1981
 				}
1982 1982
 				$ret = curl_exec($crs);
1983 1983
 				curl_close($crs);
@@ -2131,7 +2131,7 @@  discard block
 block discarded – undo
2131 2131
 	 * measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4)
2132 2132
 	 * @public static
2133 2133
 	 *
2134
-     * @var array<string,float[]>
2134
+	 * @var array<string,float[]>
2135 2135
 	 */
2136 2136
 	public static $page_formats = array(
2137 2137
 		// ISO 216 A Series + 2 SIS 014711 extensions
Please login to merge, or discard this patch.
htdocs/includes/tecnickcom/tcpdf/include/tcpdf_images.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 			}
80 80
 		}
81 81
 		if (empty($type)) {
82
-            $type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH), PATHINFO_EXTENSION)));
82
+			$type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH), PATHINFO_EXTENSION)));
83 83
 		}
84 84
 		if ($type == 'jpg') {
85 85
 			$type = 'jpeg';
Please login to merge, or discard this patch.
htdocs/includes/tecnickcom/tcpdf/tcpdf_barcodes_1d.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
 	 * <li>$arrcode['bcode'][$k]['h'] bar height in units.</li>
68 68
 	 * <li>$arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)</li></ul>
69 69
 	 * @param string $code code to print
70
- 	 * @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128 : CODE 128</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extension</li><li>EAN5 : 5-Digits UPC-Based Extension</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
71
- 	 * @public
70
+	 * @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128 : CODE 128</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extension</li><li>EAN5 : 5-Digits UPC-Based Extension</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
71
+	 * @public
72 72
 	 */
73 73
 	public function __construct($code, $type) {
74 74
 		$this->setBarcode($code, $type);
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 
77 77
 	/**
78 78
 	 * Return an array representations of barcode.
79
- 	 * @return array
80
- 	 * @public
79
+	 * @return array
80
+	 * @public
81 81
 	 */
82 82
 	public function getBarcodeArray() {
83 83
 		return $this->barcode_array;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * @param int $w Minimum width of a single bar in user units.
89 89
 	 * @param int $h Height of barcode in user units.
90 90
 	 * @param string $color Foreground color (in SVG format) for bar elements (background is transparent).
91
- 	 * @public
91
+	 * @public
92 92
 	 */
93 93
 	public function getBarcodeSVG($w=2, $h=30, $color='black') {
94 94
 		// send headers
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 	 * @param int $w Minimum width of a single bar in user units.
109 109
 	 * @param int $h Height of barcode in user units.
110 110
 	 * @param string $color Foreground color (in SVG format) for bar elements (background is transparent).
111
- 	 * @return string SVG code.
112
- 	 * @public
111
+	 * @return string SVG code.
112
+	 * @public
113 113
 	 */
114 114
 	public function getBarcodeSVGcode($w=2, $h=30, $color='black') {
115 115
 		// replace table for special characters
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
 	 * @param int $w Width of a single bar element in pixels.
142 142
 	 * @param int $h Height of a single bar element in pixels.
143 143
 	 * @param string $color Foreground color for bar elements (background is transparent).
144
- 	 * @return string HTML code.
145
- 	 * @public
144
+	 * @return string HTML code.
145
+	 * @public
146 146
 	 */
147 147
 	public function getBarcodeHTML($w=2, $h=30, $color='black') {
148 148
 		$html = '<div style="font-size:0;position:relative;width:'.($this->barcode_array['maxw'] * $w).'px;height:'.($h).'px;">'."\n";
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * @param int $w Width of a single bar element in pixels.
168 168
 	 * @param int $h Height of a single bar element in pixels.
169 169
 	 * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).
170
- 	 * @public
170
+	 * @public
171 171
 	 */
172 172
 	public function getBarcodePNG($w=2, $h=30, $color=array(0,0,0)) {
173 173
 		$data = $this->getBarcodePngData($w, $h, $color);
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
 	 * @param int $w Width of a single bar element in pixels.
187 187
 	 * @param int $h Height of a single bar element in pixels.
188 188
 	 * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).
189
- 	 * @return string|Imagick|false image or false in case of error.
190
- 	 * @public
189
+	 * @return string|Imagick|false image or false in case of error.
190
+	 * @public
191 191
 	 */
192 192
 	public function getBarcodePngData($w=2, $h=30, $color=array(0,0,0)) {
193 193
 		// calculate image size
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
 	/**
243 243
 	 * Set the barcode.
244 244
 	 * @param string $code code to print
245
- 	 * @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128 : CODE 128</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extension</li><li>EAN5 : 5-Digits UPC-Based Extension</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>IMBPRE: Pre-processed Intelligent Mail Barcode - Onecode - USPS-B-3200, using only F,A,D,T letters</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
246
- 	 * @return void
247
- 	 * @public
245
+	 * @param string $type type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128 : CODE 128</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extension</li><li>EAN5 : 5-Digits UPC-Based Extension</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>IMBPRE: Pre-processed Intelligent Mail Barcode - Onecode - USPS-B-3200, using only F,A,D,T letters</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul>
246
+	 * @return void
247
+	 * @public
248 248
 	 */
249 249
 	public function setBarcode($code, $type) {
250 250
 		switch (strtoupper($type)) {
Please login to merge, or discard this patch.
htdocs/includes/tecnickcom/tcpdf/scripts/doctum.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -7,28 +7,28 @@
 block discarded – undo
7 7
 $rootDir = __DIR__ . '/../';
8 8
 
9 9
 $iterator = Finder::create()
10
-    ->files()
11
-    ->name('*.php')
12
-    ->notPath('cache')
13
-    ->notPath('build')
14
-    ->notPath('fonts')
15
-    ->notPath('vendor')
16
-    ->notPath('tests')
17
-    ->notPath('examples')
18
-    ->in($rootDir);
10
+	->files()
11
+	->name('*.php')
12
+	->notPath('cache')
13
+	->notPath('build')
14
+	->notPath('fonts')
15
+	->notPath('vendor')
16
+	->notPath('tests')
17
+	->notPath('examples')
18
+	->in($rootDir);
19 19
 
20 20
 return new Doctum($iterator, [
21
-    'title'                => 'TCPDF',
22
-    'build_dir'            => $rootDir . '/build',
23
-    'cache_dir'            => $rootDir . '/cache',
24
-    'source_dir'           => $rootDir,
25
-    'remote_repository'    => new GitHubRemoteRepository('tecnickcom/TCPDF', $rootDir),
26
-    'footer_link'          => [
27
-        'href'        => 'https://github.com/tecnickcom/TCPDF#readme',
28
-        'rel'         => 'noreferrer noopener',
29
-        'target'      => '_blank',
30
-        'before_text' => 'This documentation is for',
31
-        'link_text'   => 'TCPDF',
32
-        'after_text'  => 'the PHP library to build PDFs.',
33
-    ],
21
+	'title'                => 'TCPDF',
22
+	'build_dir'            => $rootDir . '/build',
23
+	'cache_dir'            => $rootDir . '/cache',
24
+	'source_dir'           => $rootDir,
25
+	'remote_repository'    => new GitHubRemoteRepository('tecnickcom/TCPDF', $rootDir),
26
+	'footer_link'          => [
27
+		'href'        => 'https://github.com/tecnickcom/TCPDF#readme',
28
+		'rel'         => 'noreferrer noopener',
29
+		'target'      => '_blank',
30
+		'before_text' => 'This documentation is for',
31
+		'link_text'   => 'TCPDF',
32
+		'after_text'  => 'the PHP library to build PDFs.',
33
+	],
34 34
 ]);
Please login to merge, or discard this patch.
htdocs/includes/tecnickcom/tcpdf/tcpdf_barcodes_2d.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 * <li>$arrcode['num_cols'] required number of columns</li>
64 64
 	 * <li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul>
65 65
 	 * @param string $code code to print
66
- 	 * @param string $type type of barcode: <ul><li>DATAMATRIX : Datamatrix (ISO/IEC 16022)</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parameters are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li><li>QRCODE : QRcode Low error correction</li><li>QRCODE,L : QRcode Low error correction</li><li>QRCODE,M : QRcode Medium error correction</li><li>QRCODE,Q : QRcode Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>TEST : Test matrix</li></ul>
66
+	 * @param string $type type of barcode: <ul><li>DATAMATRIX : Datamatrix (ISO/IEC 16022)</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parameters are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li><li>QRCODE : QRcode Low error correction</li><li>QRCODE,L : QRcode Low error correction</li><li>QRCODE,M : QRcode Medium error correction</li><li>QRCODE,Q : QRcode Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>TEST : Test matrix</li></ul>
67 67
 	 */
68 68
 	public function __construct($code, $type) {
69 69
 		$this->setBarcode($code, $type);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
 	/**
73 73
 	 * Return an array representations of barcode.
74
- 	 * @return array
74
+	 * @return array
75 75
 	 */
76 76
 	public function getBarcodeArray() {
77 77
 		return $this->barcode_array;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @param int $w Width of a single rectangle element in user units.
83 83
 	 * @param int $h Height of a single rectangle element in user units.
84 84
 	 * @param string $color Foreground color (in SVG format) for bar elements (background is transparent).
85
- 	 * @public
85
+	 * @public
86 86
 	 */
87 87
 	public function getBarcodeSVG($w=3, $h=3, $color='black') {
88 88
 		// send headers
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	 * @param int $w Width of a single rectangle element in user units.
103 103
 	 * @param int $h Height of a single rectangle element in user units.
104 104
 	 * @param string $color Foreground color (in SVG format) for bar elements (background is transparent).
105
- 	 * @return string SVG code.
106
- 	 * @public
105
+	 * @return string SVG code.
106
+	 * @public
107 107
 	 */
108 108
 	public function getBarcodeSVGcode($w=3, $h=3, $color='black') {
109 109
 		// replace table for special characters
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
 	 * @param int $w Width of a single rectangle element in pixels.
139 139
 	 * @param int $h Height of a single rectangle element in pixels.
140 140
 	 * @param string $color Foreground color for bar elements (background is transparent).
141
- 	 * @return string HTML code.
142
- 	 * @public
141
+	 * @return string HTML code.
142
+	 * @public
143 143
 	 */
144 144
 	public function getBarcodeHTML($w=10, $h=10, $color='black') {
145 145
 		$html = '<div style="font-size:0;position:relative;width:'.($w * $this->barcode_array['num_cols']).'px;height:'.($h * $this->barcode_array['num_rows']).'px;">'."\n";
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * @param int $w Width of a single rectangle element in pixels.
168 168
 	 * @param int $h Height of a single rectangle element in pixels.
169 169
 	 * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).
170
- 	 * @public
170
+	 * @public
171 171
 	 */
172 172
 	public function getBarcodePNG($w=3, $h=3, $color=array(0,0,0)) {
173 173
 		$data = $this->getBarcodePngData($w, $h, $color);
@@ -187,8 +187,8 @@  discard block
 block discarded – undo
187 187
 	 * @param int $w Width of a single rectangle element in pixels.
188 188
 	 * @param int $h Height of a single rectangle element in pixels.
189 189
 	 * @param array $color RGB (0-255) foreground color for bar elements (background is transparent).
190
- 	 * @return string|Imagick|false image or false in case of error.
191
- 	 * @public
190
+	 * @return string|Imagick|false image or false in case of error.
191
+	 * @public
192 192
 	 */
193 193
 	public function getBarcodePngData($w=3, $h=3, $color=array(0,0,0)) {
194 194
 		// calculate image size
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
 	/**
247 247
 	 * Set the barcode.
248 248
 	 * @param string $code code to print
249
- 	 * @param string $type type of barcode: <ul><li>DATAMATRIX : Datamatrix (ISO/IEC 16022)</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parameters are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li><li>QRCODE : QRcode Low error correction</li><li>QRCODE,L : QRcode Low error correction</li><li>QRCODE,M : QRcode Medium error correction</li><li>QRCODE,Q : QRcode Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>TEST : Test matrix</li></ul>
250
- 	 * @return void
249
+	 * @param string $type type of barcode: <ul><li>DATAMATRIX : Datamatrix (ISO/IEC 16022)</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parameters are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li><li>QRCODE : QRcode Low error correction</li><li>QRCODE,L : QRcode Low error correction</li><li>QRCODE,M : QRcode Medium error correction</li><li>QRCODE,Q : QRcode Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>TEST : Test matrix</li></ul>
250
+	 * @return void
251 251
 	 */
252 252
 	public function setBarcode($code, $type) {
253 253
 		$mode = explode(',', $type);
Please login to merge, or discard this patch.