chillerlan-QRCodeTest-QROptionsTest.html 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace">
  56. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  57. </h4>
  58. <ul class="phpdocumentor-list">
  59. <li>
  60. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  61. </li>
  62. <li>
  63. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  64. </li>
  65. </ul>
  66. </section>
  67. <section class="phpdocumentor-sidebar__category">
  68. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  69. <h4 class="phpdocumentor-sidebar__root-namespace">
  70. <a href="packages/Application.html" class="">Application</a>
  71. </h4>
  72. </section>
  73. <section class="phpdocumentor-sidebar__category">
  74. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  75. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  76. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  78. </section>
  79. <section class="phpdocumentor-sidebar__category">
  80. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  81. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  82. </section>
  83. </aside>
  84. <div class="phpdocumentor-column -eight phpdocumentor-content">
  85. <ul class="phpdocumentor-breadcrumbs">
  86. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  87. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  88. </ul>
  89. <article class="phpdocumentor-element -class">
  90. <h2 class="phpdocumentor-content__title">
  91. QROptionsTest
  92. <span class="phpdocumentor-element__extends">
  93. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  94. </span>
  95. <div class="phpdocumentor-element__package">
  96. in package
  97. <ul class="phpdocumentor-breadcrumbs">
  98. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  99. </ul>
  100. </div>
  101. </h2>
  102. <aside class="phpdocumentor-element-found-in">
  103. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  104. :
  105. <span class="phpdocumentor-element-found-in__line">21</span>
  106. </aside>
  107. <p class="phpdocumentor-summary">QROptions test</p>
  108. <h3 id="toc">
  109. Table of Contents
  110. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  111. </h3>
  112. <dl class="phpdocumentor-table-of-contents">
  113. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  114. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_circleRadiusProvider">circleRadiusProvider()</a>
  115. <span>
  116. &nbsp;: array&lt;string|int, array&lt;string|int, float&gt;&gt; </span>
  117. </dt>
  118. <dd></dd>
  119. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  120. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_logoSpaceValueProvider">logoSpaceValueProvider()</a>
  121. <span>
  122. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  123. </dt>
  124. <dd></dd>
  125. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  126. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_MaskPatternProvider">MaskPatternProvider()</a>
  127. <span>
  128. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  129. </dt>
  130. <dd></dd>
  131. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  132. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_RGBProvider">RGBProvider()</a>
  133. <span>
  134. &nbsp;: array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt; </span>
  135. </dt>
  136. <dd></dd>
  137. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  138. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampCircleRadius">testClampCircleRadius()</a>
  139. <span>
  140. &nbsp;: void </span>
  141. </dt>
  142. <dd></dd>
  143. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  144. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampLogoSpaceValue">testClampLogoSpaceValue()</a>
  145. <span>
  146. &nbsp;: void </span>
  147. </dt>
  148. <dd>Tests the clamping (between 0 and 177) of the logo space values</dd>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampRGBValues">testClampRGBValues()</a>
  151. <span>
  152. &nbsp;: void </span>
  153. </dt>
  154. <dd>Tests clamping of the RGB values for $imageTransparencyBG</dd>
  155. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  156. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidEccLevelException">testInvalidEccLevelException()</a>
  157. <span>
  158. &nbsp;: void </span>
  159. </dt>
  160. <dd>Tests if an exception is thrown on an incorrect ECC level</dd>
  161. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  162. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidRGBValueException">testInvalidRGBValueException()</a>
  163. <span>
  164. &nbsp;: void </span>
  165. </dt>
  166. <dd>Tests if an exception is thrown when a non-numeric RGB value was encoutered</dd>
  167. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  168. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testLogoSpaceStartNullable">testLogoSpaceStartNullable()</a>
  169. <span>
  170. &nbsp;: void </span>
  171. </dt>
  172. <dd>Tests if the optional logo space start values are nullable</dd>
  173. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  174. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testMaskPatternClamp">testMaskPatternClamp()</a>
  175. <span>
  176. &nbsp;: void </span>
  177. </dt>
  178. <dd>Tests the $maskPattern clamping</dd>
  179. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  180. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionClamp">testVersionClamp()</a>
  181. <span>
  182. &nbsp;: void </span>
  183. </dt>
  184. <dd>Tests the $version clamping</dd>
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionMinMaxClamp">testVersionMinMaxClamp()</a>
  187. <span>
  188. &nbsp;: void </span>
  189. </dt>
  190. <dd>Tests the $versionMin/$versionMax clamping</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionMinMaxProvider">VersionMinMaxProvider()</a>
  193. <span>
  194. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  195. </dt>
  196. <dd></dd>
  197. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  198. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionProvider">VersionProvider()</a>
  199. <span>
  200. &nbsp;: array&lt;string|int, array&lt;string|int, int&gt;&gt; </span>
  201. </dt>
  202. <dd></dd>
  203. </dl>
  204. <section class="phpdocumentor-methods">
  205. <h3 class="phpdocumentor-elements__header" id="methods">
  206. Methods
  207. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  208. </h3>
  209. <article
  210. class="phpdocumentor-element
  211. -method
  212. -public
  213. "
  214. >
  215. <h4 class="phpdocumentor-element__name" id="method_circleRadiusProvider">
  216. circleRadiusProvider()
  217. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_circleRadiusProvider" class="headerlink"><i class="fas fa-link"></i></a>
  218. </h4>
  219. <aside class="phpdocumentor-element-found-in">
  220. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  221. :
  222. <span class="phpdocumentor-element-found-in__line">184</span>
  223. </aside>
  224. <code class="phpdocumentor-code phpdocumentor-signature ">
  225. <span class="phpdocumentor-signature__visibility">public</span>
  226. <span class="phpdocumentor-signature__name">circleRadiusProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, float&gt;&gt;</span></code>
  227. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  228. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, float&gt;&gt;</span>
  229. &mdash;
  230. </article>
  231. <article
  232. class="phpdocumentor-element
  233. -method
  234. -public
  235. "
  236. >
  237. <h4 class="phpdocumentor-element__name" id="method_logoSpaceValueProvider">
  238. logoSpaceValueProvider()
  239. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_logoSpaceValueProvider" class="headerlink"><i class="fas fa-link"></i></a>
  240. </h4>
  241. <aside class="phpdocumentor-element-found-in">
  242. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  243. :
  244. <span class="phpdocumentor-element-found-in__line">137</span>
  245. </aside>
  246. <code class="phpdocumentor-code phpdocumentor-signature ">
  247. <span class="phpdocumentor-signature__visibility">public</span>
  248. <span class="phpdocumentor-signature__name">logoSpaceValueProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span></code>
  249. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  250. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  251. &mdash;
  252. </article>
  253. <article
  254. class="phpdocumentor-element
  255. -method
  256. -public
  257. "
  258. >
  259. <h4 class="phpdocumentor-element__name" id="method_MaskPatternProvider">
  260. MaskPatternProvider()
  261. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_MaskPatternProvider" class="headerlink"><i class="fas fa-link"></i></a>
  262. </h4>
  263. <aside class="phpdocumentor-element-found-in">
  264. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  265. :
  266. <span class="phpdocumentor-element-found-in__line">73</span>
  267. </aside>
  268. <code class="phpdocumentor-code phpdocumentor-signature ">
  269. <span class="phpdocumentor-signature__visibility">public</span>
  270. <span class="phpdocumentor-signature__name">MaskPatternProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span></code>
  271. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  272. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  273. &mdash;
  274. </article>
  275. <article
  276. class="phpdocumentor-element
  277. -method
  278. -public
  279. "
  280. >
  281. <h4 class="phpdocumentor-element__name" id="method_RGBProvider">
  282. RGBProvider()
  283. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_RGBProvider" class="headerlink"><i class="fas fa-link"></i></a>
  284. </h4>
  285. <aside class="phpdocumentor-element-found-in">
  286. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  287. :
  288. <span class="phpdocumentor-element-found-in__line">105</span>
  289. </aside>
  290. <code class="phpdocumentor-code phpdocumentor-signature ">
  291. <span class="phpdocumentor-signature__visibility">public</span>
  292. <span class="phpdocumentor-signature__name">RGBProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span></code>
  293. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  294. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, array&lt;string|int, int&gt;&gt;&gt;</span>
  295. &mdash;
  296. </article>
  297. <article
  298. class="phpdocumentor-element
  299. -method
  300. -public
  301. "
  302. >
  303. <h4 class="phpdocumentor-element__name" id="method_testClampCircleRadius">
  304. testClampCircleRadius()
  305. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampCircleRadius" class="headerlink"><i class="fas fa-link"></i></a>
  306. </h4>
  307. <aside class="phpdocumentor-element-found-in">
  308. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  309. :
  310. <span class="phpdocumentor-element-found-in__line">195</span>
  311. </aside>
  312. <code class="phpdocumentor-code phpdocumentor-signature ">
  313. <span class="phpdocumentor-signature__visibility">public</span>
  314. <span class="phpdocumentor-signature__name">testClampCircleRadius</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  315. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  316. <dl class="phpdocumentor-argument-list">
  317. <dt class="phpdocumentor-argument-list__entry">
  318. <span class="phpdocumentor-signature__argument__name">$value</span>
  319. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  320. </dt>
  321. <dd class="phpdocumentor-argument-list__definition">
  322. <section class="phpdocumentor-description"></section>
  323. </dd>
  324. <dt class="phpdocumentor-argument-list__entry">
  325. <span class="phpdocumentor-signature__argument__name">$expected</span>
  326. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  327. </dt>
  328. <dd class="phpdocumentor-argument-list__definition">
  329. <section class="phpdocumentor-description"></section>
  330. </dd>
  331. </dl>
  332. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  333. Tags
  334. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  335. </h5>
  336. <dl class="phpdocumentor-tag-list">
  337. <dt class="phpdocumentor-tag-list__entry">
  338. <span class="phpdocumentor-tag__name">dataProvider</span>
  339. </dt>
  340. <dd class="phpdocumentor-tag-list__definition">
  341. <section class="phpdocumentor-description"><p>circleRadiusProvider</p>
  342. </section>
  343. </dd>
  344. </dl>
  345. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  346. <span class="phpdocumentor-signature__response_type">void</span>
  347. &mdash;
  348. </article>
  349. <article
  350. class="phpdocumentor-element
  351. -method
  352. -public
  353. "
  354. >
  355. <h4 class="phpdocumentor-element__name" id="method_testClampLogoSpaceValue">
  356. testClampLogoSpaceValue()
  357. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampLogoSpaceValue" class="headerlink"><i class="fas fa-link"></i></a>
  358. </h4>
  359. <aside class="phpdocumentor-element-found-in">
  360. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  361. :
  362. <span class="phpdocumentor-element-found-in__line">152</span>
  363. </aside>
  364. <p class="phpdocumentor-summary">Tests the clamping (between 0 and 177) of the logo space values</p>
  365. <code class="phpdocumentor-code phpdocumentor-signature ">
  366. <span class="phpdocumentor-signature__visibility">public</span>
  367. <span class="phpdocumentor-signature__name">testClampLogoSpaceValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  368. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  369. <dl class="phpdocumentor-argument-list">
  370. <dt class="phpdocumentor-argument-list__entry">
  371. <span class="phpdocumentor-signature__argument__name">$value</span>
  372. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  373. </dt>
  374. <dd class="phpdocumentor-argument-list__definition">
  375. <section class="phpdocumentor-description"></section>
  376. </dd>
  377. <dt class="phpdocumentor-argument-list__entry">
  378. <span class="phpdocumentor-signature__argument__name">$expected</span>
  379. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  380. </dt>
  381. <dd class="phpdocumentor-argument-list__definition">
  382. <section class="phpdocumentor-description"></section>
  383. </dd>
  384. </dl>
  385. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  386. Tags
  387. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  388. </h5>
  389. <dl class="phpdocumentor-tag-list">
  390. <dt class="phpdocumentor-tag-list__entry">
  391. <span class="phpdocumentor-tag__name">dataProvider</span>
  392. </dt>
  393. <dd class="phpdocumentor-tag-list__definition">
  394. <section class="phpdocumentor-description"><p>logoSpaceValueProvider</p>
  395. </section>
  396. </dd>
  397. </dl>
  398. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  399. <span class="phpdocumentor-signature__response_type">void</span>
  400. &mdash;
  401. </article>
  402. <article
  403. class="phpdocumentor-element
  404. -method
  405. -public
  406. "
  407. >
  408. <h4 class="phpdocumentor-element__name" id="method_testClampRGBValues">
  409. testClampRGBValues()
  410. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampRGBValues" class="headerlink"><i class="fas fa-link"></i></a>
  411. </h4>
  412. <aside class="phpdocumentor-element-found-in">
  413. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  414. :
  415. <span class="phpdocumentor-element-found-in__line">118</span>
  416. </aside>
  417. <p class="phpdocumentor-summary">Tests clamping of the RGB values for $imageTransparencyBG</p>
  418. <code class="phpdocumentor-code phpdocumentor-signature ">
  419. <span class="phpdocumentor-signature__visibility">public</span>
  420. <span class="phpdocumentor-signature__name">testClampRGBValues</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$rgb</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  421. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  422. <dl class="phpdocumentor-argument-list">
  423. <dt class="phpdocumentor-argument-list__entry">
  424. <span class="phpdocumentor-signature__argument__name">$rgb</span>
  425. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  426. </dt>
  427. <dd class="phpdocumentor-argument-list__definition">
  428. <section class="phpdocumentor-description"></section>
  429. </dd>
  430. <dt class="phpdocumentor-argument-list__entry">
  431. <span class="phpdocumentor-signature__argument__name">$expected</span>
  432. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  433. </dt>
  434. <dd class="phpdocumentor-argument-list__definition">
  435. <section class="phpdocumentor-description"></section>
  436. </dd>
  437. </dl>
  438. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  439. Tags
  440. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  441. </h5>
  442. <dl class="phpdocumentor-tag-list">
  443. <dt class="phpdocumentor-tag-list__entry">
  444. <span class="phpdocumentor-tag__name">dataProvider</span>
  445. </dt>
  446. <dd class="phpdocumentor-tag-list__definition">
  447. <section class="phpdocumentor-description"><p>RGBProvider</p>
  448. </section>
  449. </dd>
  450. </dl>
  451. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  452. <span class="phpdocumentor-signature__response_type">void</span>
  453. &mdash;
  454. </article>
  455. <article
  456. class="phpdocumentor-element
  457. -method
  458. -public
  459. "
  460. >
  461. <h4 class="phpdocumentor-element__name" id="method_testInvalidEccLevelException">
  462. testInvalidEccLevelException()
  463. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidEccLevelException" class="headerlink"><i class="fas fa-link"></i></a>
  464. </h4>
  465. <aside class="phpdocumentor-element-found-in">
  466. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  467. :
  468. <span class="phpdocumentor-element-found-in__line">95</span>
  469. </aside>
  470. <p class="phpdocumentor-summary">Tests if an exception is thrown on an incorrect ECC level</p>
  471. <code class="phpdocumentor-code phpdocumentor-signature ">
  472. <span class="phpdocumentor-signature__visibility">public</span>
  473. <span class="phpdocumentor-signature__name">testInvalidEccLevelException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  474. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  475. <span class="phpdocumentor-signature__response_type">void</span>
  476. &mdash;
  477. </article>
  478. <article
  479. class="phpdocumentor-element
  480. -method
  481. -public
  482. "
  483. >
  484. <h4 class="phpdocumentor-element__name" id="method_testInvalidRGBValueException">
  485. testInvalidRGBValueException()
  486. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidRGBValueException" class="headerlink"><i class="fas fa-link"></i></a>
  487. </h4>
  488. <aside class="phpdocumentor-element-found-in">
  489. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  490. :
  491. <span class="phpdocumentor-element-found-in__line">127</span>
  492. </aside>
  493. <p class="phpdocumentor-summary">Tests if an exception is thrown when a non-numeric RGB value was encoutered</p>
  494. <code class="phpdocumentor-code phpdocumentor-signature ">
  495. <span class="phpdocumentor-signature__visibility">public</span>
  496. <span class="phpdocumentor-signature__name">testInvalidRGBValueException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  497. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  498. <span class="phpdocumentor-signature__response_type">void</span>
  499. &mdash;
  500. </article>
  501. <article
  502. class="phpdocumentor-element
  503. -method
  504. -public
  505. "
  506. >
  507. <h4 class="phpdocumentor-element__name" id="method_testLogoSpaceStartNullable">
  508. testLogoSpaceStartNullable()
  509. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testLogoSpaceStartNullable" class="headerlink"><i class="fas fa-link"></i></a>
  510. </h4>
  511. <aside class="phpdocumentor-element-found-in">
  512. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  513. :
  514. <span class="phpdocumentor-element-found-in__line">165</span>
  515. </aside>
  516. <p class="phpdocumentor-summary">Tests if the optional logo space start values are nullable</p>
  517. <code class="phpdocumentor-code phpdocumentor-signature ">
  518. <span class="phpdocumentor-signature__visibility">public</span>
  519. <span class="phpdocumentor-signature__name">testLogoSpaceStartNullable</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  520. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  521. <span class="phpdocumentor-signature__response_type">void</span>
  522. &mdash;
  523. </article>
  524. <article
  525. class="phpdocumentor-element
  526. -method
  527. -public
  528. "
  529. >
  530. <h4 class="phpdocumentor-element__name" id="method_testMaskPatternClamp">
  531. testMaskPatternClamp()
  532. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testMaskPatternClamp" class="headerlink"><i class="fas fa-link"></i></a>
  533. </h4>
  534. <aside class="phpdocumentor-element-found-in">
  535. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  536. :
  537. <span class="phpdocumentor-element-found-in__line">86</span>
  538. </aside>
  539. <p class="phpdocumentor-summary">Tests the $maskPattern clamping</p>
  540. <code class="phpdocumentor-code phpdocumentor-signature ">
  541. <span class="phpdocumentor-signature__visibility">public</span>
  542. <span class="phpdocumentor-signature__name">testMaskPatternClamp</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maskPattern</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  543. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  544. <dl class="phpdocumentor-argument-list">
  545. <dt class="phpdocumentor-argument-list__entry">
  546. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  547. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  548. </dt>
  549. <dd class="phpdocumentor-argument-list__definition">
  550. <section class="phpdocumentor-description"></section>
  551. </dd>
  552. <dt class="phpdocumentor-argument-list__entry">
  553. <span class="phpdocumentor-signature__argument__name">$expected</span>
  554. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  555. </dt>
  556. <dd class="phpdocumentor-argument-list__definition">
  557. <section class="phpdocumentor-description"></section>
  558. </dd>
  559. </dl>
  560. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  561. Tags
  562. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  563. </h5>
  564. <dl class="phpdocumentor-tag-list">
  565. <dt class="phpdocumentor-tag-list__entry">
  566. <span class="phpdocumentor-tag__name">dataProvider</span>
  567. </dt>
  568. <dd class="phpdocumentor-tag-list__definition">
  569. <section class="phpdocumentor-description"><p>MaskPatternProvider</p>
  570. </section>
  571. </dd>
  572. </dl>
  573. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  574. <span class="phpdocumentor-signature__response_type">void</span>
  575. &mdash;
  576. </article>
  577. <article
  578. class="phpdocumentor-element
  579. -method
  580. -public
  581. "
  582. >
  583. <h4 class="phpdocumentor-element__name" id="method_testVersionClamp">
  584. testVersionClamp()
  585. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionClamp" class="headerlink"><i class="fas fa-link"></i></a>
  586. </h4>
  587. <aside class="phpdocumentor-element-found-in">
  588. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  589. :
  590. <span class="phpdocumentor-element-found-in__line">40</span>
  591. </aside>
  592. <p class="phpdocumentor-summary">Tests the $version clamping</p>
  593. <code class="phpdocumentor-code phpdocumentor-signature ">
  594. <span class="phpdocumentor-signature__visibility">public</span>
  595. <span class="phpdocumentor-signature__name">testVersionClamp</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$version</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expected</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  596. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  597. <dl class="phpdocumentor-argument-list">
  598. <dt class="phpdocumentor-argument-list__entry">
  599. <span class="phpdocumentor-signature__argument__name">$version</span>
  600. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  601. </dt>
  602. <dd class="phpdocumentor-argument-list__definition">
  603. <section class="phpdocumentor-description"></section>
  604. </dd>
  605. <dt class="phpdocumentor-argument-list__entry">
  606. <span class="phpdocumentor-signature__argument__name">$expected</span>
  607. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  608. </dt>
  609. <dd class="phpdocumentor-argument-list__definition">
  610. <section class="phpdocumentor-description"></section>
  611. </dd>
  612. </dl>
  613. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  614. Tags
  615. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  616. </h5>
  617. <dl class="phpdocumentor-tag-list">
  618. <dt class="phpdocumentor-tag-list__entry">
  619. <span class="phpdocumentor-tag__name">dataProvider</span>
  620. </dt>
  621. <dd class="phpdocumentor-tag-list__definition">
  622. <section class="phpdocumentor-description"><p>VersionProvider</p>
  623. </section>
  624. </dd>
  625. </dl>
  626. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  627. <span class="phpdocumentor-signature__response_type">void</span>
  628. &mdash;
  629. </article>
  630. <article
  631. class="phpdocumentor-element
  632. -method
  633. -public
  634. "
  635. >
  636. <h4 class="phpdocumentor-element__name" id="method_testVersionMinMaxClamp">
  637. testVersionMinMaxClamp()
  638. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionMinMaxClamp" class="headerlink"><i class="fas fa-link"></i></a>
  639. </h4>
  640. <aside class="phpdocumentor-element-found-in">
  641. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  642. :
  643. <span class="phpdocumentor-element-found-in__line">63</span>
  644. </aside>
  645. <p class="phpdocumentor-summary">Tests the $versionMin/$versionMax clamping</p>
  646. <code class="phpdocumentor-code phpdocumentor-signature ">
  647. <span class="phpdocumentor-signature__visibility">public</span>
  648. <span class="phpdocumentor-signature__name">testVersionMinMaxClamp</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionMin</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$versionMax</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expectedMin</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$expectedMax</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  649. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  650. <dl class="phpdocumentor-argument-list">
  651. <dt class="phpdocumentor-argument-list__entry">
  652. <span class="phpdocumentor-signature__argument__name">$versionMin</span>
  653. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  654. </dt>
  655. <dd class="phpdocumentor-argument-list__definition">
  656. <section class="phpdocumentor-description"></section>
  657. </dd>
  658. <dt class="phpdocumentor-argument-list__entry">
  659. <span class="phpdocumentor-signature__argument__name">$versionMax</span>
  660. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  661. </dt>
  662. <dd class="phpdocumentor-argument-list__definition">
  663. <section class="phpdocumentor-description"></section>
  664. </dd>
  665. <dt class="phpdocumentor-argument-list__entry">
  666. <span class="phpdocumentor-signature__argument__name">$expectedMin</span>
  667. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  668. </dt>
  669. <dd class="phpdocumentor-argument-list__definition">
  670. <section class="phpdocumentor-description"></section>
  671. </dd>
  672. <dt class="phpdocumentor-argument-list__entry">
  673. <span class="phpdocumentor-signature__argument__name">$expectedMax</span>
  674. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  675. </dt>
  676. <dd class="phpdocumentor-argument-list__definition">
  677. <section class="phpdocumentor-description"></section>
  678. </dd>
  679. </dl>
  680. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  681. Tags
  682. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  683. </h5>
  684. <dl class="phpdocumentor-tag-list">
  685. <dt class="phpdocumentor-tag-list__entry">
  686. <span class="phpdocumentor-tag__name">dataProvider</span>
  687. </dt>
  688. <dd class="phpdocumentor-tag-list__definition">
  689. <section class="phpdocumentor-description"><p>VersionMinMaxProvider</p>
  690. </section>
  691. </dd>
  692. </dl>
  693. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  694. <span class="phpdocumentor-signature__response_type">void</span>
  695. &mdash;
  696. </article>
  697. <article
  698. class="phpdocumentor-element
  699. -method
  700. -public
  701. "
  702. >
  703. <h4 class="phpdocumentor-element__name" id="method_VersionMinMaxProvider">
  704. VersionMinMaxProvider()
  705. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionMinMaxProvider" class="headerlink"><i class="fas fa-link"></i></a>
  706. </h4>
  707. <aside class="phpdocumentor-element-found-in">
  708. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  709. :
  710. <span class="phpdocumentor-element-found-in__line">49</span>
  711. </aside>
  712. <code class="phpdocumentor-code phpdocumentor-signature ">
  713. <span class="phpdocumentor-signature__visibility">public</span>
  714. <span class="phpdocumentor-signature__name">VersionMinMaxProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span></code>
  715. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  716. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  717. &mdash;
  718. </article>
  719. <article
  720. class="phpdocumentor-element
  721. -method
  722. -public
  723. "
  724. >
  725. <h4 class="phpdocumentor-element__name" id="method_VersionProvider">
  726. VersionProvider()
  727. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionProvider" class="headerlink"><i class="fas fa-link"></i></a>
  728. </h4>
  729. <aside class="phpdocumentor-element-found-in">
  730. <abbr class="phpdocumentor-element-found-in__file" title="tests/QROptionsTest.php"><a href="files/tests-qroptionstest.html"><abbr title="tests/QROptionsTest.php">QROptionsTest.php</abbr></a></abbr>
  731. :
  732. <span class="phpdocumentor-element-found-in__line">26</span>
  733. </aside>
  734. <code class="phpdocumentor-code phpdocumentor-signature ">
  735. <span class="phpdocumentor-signature__visibility">public</span>
  736. <span class="phpdocumentor-signature__name">VersionProvider</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span></code>
  737. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  738. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  739. &mdash;
  740. </article>
  741. </section>
  742. <script type="text/javascript">
  743. function loadExternalCodeSnippets(line) {
  744. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  745. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  746. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  747. var language = 'php';
  748. var code = document.createElement('code');
  749. code.className = 'language-' + language;
  750. pre.textContent = '';
  751. pre.setAttribute('data-line', line)
  752. code.textContent = 'Loading…';
  753. pre.appendChild(code);
  754. var xhr = new XMLHttpRequest();
  755. xhr.open('GET', src, true);
  756. xhr.onreadystatechange = function () {
  757. if (xhr.readyState == 4) {
  758. if (xhr.status < 400 && xhr.responseText) {
  759. code.textContent = xhr.responseText;
  760. Prism.highlightElement(code);
  761. }
  762. else if (xhr.status >= 400) {
  763. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  764. }
  765. else {
  766. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  767. }
  768. }
  769. };
  770. xhr.send(null);
  771. });
  772. }
  773. var modals = document.querySelectorAll("[data-modal]");
  774. modals.forEach(function (trigger) {
  775. trigger.addEventListener("click", function (event) {
  776. //event.preventDefault();
  777. const modal = document.getElementById(trigger.dataset.modal);
  778. modal.classList.add("phpdocumentor-modal__open");
  779. loadExternalCodeSnippets(trigger.dataset.line)
  780. const exits = modal.querySelectorAll("[data-exit-button]");
  781. exits.forEach(function (exit) {
  782. exit.addEventListener("click", function (event) {
  783. event.preventDefault();
  784. modal.classList.remove("phpdocumentor-modal__open");
  785. });
  786. });
  787. });
  788. });
  789. </script>
  790. </article>
  791. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  792. <section class="phpdocumentor-search-results__dialog">
  793. <header class="phpdocumentor-search-results__header">
  794. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  795. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  796. </header>
  797. <section class="phpdocumentor-search-results__body">
  798. <ul class="phpdocumentor-search-results__entries"></ul>
  799. </section>
  800. </section>
  801. </section>
  802. </div>
  803. </div>
  804. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  805. </main>
  806. <script>
  807. cssVars({});
  808. </script>
  809. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  810. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  811. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  812. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  813. </body>
  814. </html>