chillerlan-QRCodeTest-QROptionsTest.html 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058
  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">22</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>Tests clamping of the circle radius</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">185</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">138</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">74</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">106</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">198</span>
  311. </aside>
  312. <p class="phpdocumentor-summary">Tests clamping of the circle radius</p>
  313. <code class="phpdocumentor-code phpdocumentor-signature ">
  314. <span class="phpdocumentor-signature__visibility">public</span>
  315. <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>
  316. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  317. <dl class="phpdocumentor-argument-list">
  318. <dt class="phpdocumentor-argument-list__entry">
  319. <span class="phpdocumentor-signature__argument__name">$value</span>
  320. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  321. </dt>
  322. <dd class="phpdocumentor-argument-list__definition">
  323. <section class="phpdocumentor-description"></section>
  324. </dd>
  325. <dt class="phpdocumentor-argument-list__entry">
  326. <span class="phpdocumentor-signature__argument__name">$expected</span>
  327. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  328. </dt>
  329. <dd class="phpdocumentor-argument-list__definition">
  330. <section class="phpdocumentor-description"></section>
  331. </dd>
  332. </dl>
  333. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  334. Tags
  335. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  336. </h5>
  337. <dl class="phpdocumentor-tag-list">
  338. <dt class="phpdocumentor-tag-list__entry">
  339. <span class="phpdocumentor-tag__name">dataProvider</span>
  340. </dt>
  341. <dd class="phpdocumentor-tag-list__definition">
  342. <section class="phpdocumentor-description"><p>circleRadiusProvider</p>
  343. </section>
  344. </dd>
  345. </dl>
  346. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  347. <span class="phpdocumentor-signature__response_type">void</span>
  348. &mdash;
  349. </article>
  350. <article
  351. class="phpdocumentor-element
  352. -method
  353. -public
  354. "
  355. >
  356. <h4 class="phpdocumentor-element__name" id="method_testClampLogoSpaceValue">
  357. testClampLogoSpaceValue()
  358. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampLogoSpaceValue" class="headerlink"><i class="fas fa-link"></i></a>
  359. </h4>
  360. <aside class="phpdocumentor-element-found-in">
  361. <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>
  362. :
  363. <span class="phpdocumentor-element-found-in__line">153</span>
  364. </aside>
  365. <p class="phpdocumentor-summary">Tests the clamping (between 0 and 177) of the logo space values</p>
  366. <code class="phpdocumentor-code phpdocumentor-signature ">
  367. <span class="phpdocumentor-signature__visibility">public</span>
  368. <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>
  369. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  370. <dl class="phpdocumentor-argument-list">
  371. <dt class="phpdocumentor-argument-list__entry">
  372. <span class="phpdocumentor-signature__argument__name">$value</span>
  373. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  374. </dt>
  375. <dd class="phpdocumentor-argument-list__definition">
  376. <section class="phpdocumentor-description"></section>
  377. </dd>
  378. <dt class="phpdocumentor-argument-list__entry">
  379. <span class="phpdocumentor-signature__argument__name">$expected</span>
  380. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  381. </dt>
  382. <dd class="phpdocumentor-argument-list__definition">
  383. <section class="phpdocumentor-description"></section>
  384. </dd>
  385. </dl>
  386. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  387. Tags
  388. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  389. </h5>
  390. <dl class="phpdocumentor-tag-list">
  391. <dt class="phpdocumentor-tag-list__entry">
  392. <span class="phpdocumentor-tag__name">dataProvider</span>
  393. </dt>
  394. <dd class="phpdocumentor-tag-list__definition">
  395. <section class="phpdocumentor-description"><p>logoSpaceValueProvider</p>
  396. </section>
  397. </dd>
  398. </dl>
  399. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  400. <span class="phpdocumentor-signature__response_type">void</span>
  401. &mdash;
  402. </article>
  403. <article
  404. class="phpdocumentor-element
  405. -method
  406. -public
  407. "
  408. >
  409. <h4 class="phpdocumentor-element__name" id="method_testClampRGBValues">
  410. testClampRGBValues()
  411. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testClampRGBValues" class="headerlink"><i class="fas fa-link"></i></a>
  412. </h4>
  413. <aside class="phpdocumentor-element-found-in">
  414. <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>
  415. :
  416. <span class="phpdocumentor-element-found-in__line">119</span>
  417. </aside>
  418. <p class="phpdocumentor-summary">Tests clamping of the RGB values for $imageTransparencyBG</p>
  419. <code class="phpdocumentor-code phpdocumentor-signature ">
  420. <span class="phpdocumentor-signature__visibility">public</span>
  421. <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>
  422. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  423. <dl class="phpdocumentor-argument-list">
  424. <dt class="phpdocumentor-argument-list__entry">
  425. <span class="phpdocumentor-signature__argument__name">$rgb</span>
  426. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  427. </dt>
  428. <dd class="phpdocumentor-argument-list__definition">
  429. <section class="phpdocumentor-description"></section>
  430. </dd>
  431. <dt class="phpdocumentor-argument-list__entry">
  432. <span class="phpdocumentor-signature__argument__name">$expected</span>
  433. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  434. </dt>
  435. <dd class="phpdocumentor-argument-list__definition">
  436. <section class="phpdocumentor-description"></section>
  437. </dd>
  438. </dl>
  439. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  440. Tags
  441. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  442. </h5>
  443. <dl class="phpdocumentor-tag-list">
  444. <dt class="phpdocumentor-tag-list__entry">
  445. <span class="phpdocumentor-tag__name">dataProvider</span>
  446. </dt>
  447. <dd class="phpdocumentor-tag-list__definition">
  448. <section class="phpdocumentor-description"><p>RGBProvider</p>
  449. </section>
  450. </dd>
  451. </dl>
  452. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  453. <span class="phpdocumentor-signature__response_type">void</span>
  454. &mdash;
  455. </article>
  456. <article
  457. class="phpdocumentor-element
  458. -method
  459. -public
  460. "
  461. >
  462. <h4 class="phpdocumentor-element__name" id="method_testInvalidEccLevelException">
  463. testInvalidEccLevelException()
  464. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidEccLevelException" class="headerlink"><i class="fas fa-link"></i></a>
  465. </h4>
  466. <aside class="phpdocumentor-element-found-in">
  467. <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>
  468. :
  469. <span class="phpdocumentor-element-found-in__line">96</span>
  470. </aside>
  471. <p class="phpdocumentor-summary">Tests if an exception is thrown on an incorrect ECC level</p>
  472. <code class="phpdocumentor-code phpdocumentor-signature ">
  473. <span class="phpdocumentor-signature__visibility">public</span>
  474. <span class="phpdocumentor-signature__name">testInvalidEccLevelException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  475. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  476. <span class="phpdocumentor-signature__response_type">void</span>
  477. &mdash;
  478. </article>
  479. <article
  480. class="phpdocumentor-element
  481. -method
  482. -public
  483. "
  484. >
  485. <h4 class="phpdocumentor-element__name" id="method_testInvalidRGBValueException">
  486. testInvalidRGBValueException()
  487. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testInvalidRGBValueException" class="headerlink"><i class="fas fa-link"></i></a>
  488. </h4>
  489. <aside class="phpdocumentor-element-found-in">
  490. <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>
  491. :
  492. <span class="phpdocumentor-element-found-in__line">128</span>
  493. </aside>
  494. <p class="phpdocumentor-summary">Tests if an exception is thrown when a non-numeric RGB value was encoutered</p>
  495. <code class="phpdocumentor-code phpdocumentor-signature ">
  496. <span class="phpdocumentor-signature__visibility">public</span>
  497. <span class="phpdocumentor-signature__name">testInvalidRGBValueException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  498. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  499. <span class="phpdocumentor-signature__response_type">void</span>
  500. &mdash;
  501. </article>
  502. <article
  503. class="phpdocumentor-element
  504. -method
  505. -public
  506. "
  507. >
  508. <h4 class="phpdocumentor-element__name" id="method_testLogoSpaceStartNullable">
  509. testLogoSpaceStartNullable()
  510. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testLogoSpaceStartNullable" class="headerlink"><i class="fas fa-link"></i></a>
  511. </h4>
  512. <aside class="phpdocumentor-element-found-in">
  513. <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>
  514. :
  515. <span class="phpdocumentor-element-found-in__line">166</span>
  516. </aside>
  517. <p class="phpdocumentor-summary">Tests if the optional logo space start values are nullable</p>
  518. <code class="phpdocumentor-code phpdocumentor-signature ">
  519. <span class="phpdocumentor-signature__visibility">public</span>
  520. <span class="phpdocumentor-signature__name">testLogoSpaceStartNullable</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  521. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  522. <span class="phpdocumentor-signature__response_type">void</span>
  523. &mdash;
  524. </article>
  525. <article
  526. class="phpdocumentor-element
  527. -method
  528. -public
  529. "
  530. >
  531. <h4 class="phpdocumentor-element__name" id="method_testMaskPatternClamp">
  532. testMaskPatternClamp()
  533. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testMaskPatternClamp" class="headerlink"><i class="fas fa-link"></i></a>
  534. </h4>
  535. <aside class="phpdocumentor-element-found-in">
  536. <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>
  537. :
  538. <span class="phpdocumentor-element-found-in__line">87</span>
  539. </aside>
  540. <p class="phpdocumentor-summary">Tests the $maskPattern clamping</p>
  541. <code class="phpdocumentor-code phpdocumentor-signature ">
  542. <span class="phpdocumentor-signature__visibility">public</span>
  543. <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>
  544. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  545. <dl class="phpdocumentor-argument-list">
  546. <dt class="phpdocumentor-argument-list__entry">
  547. <span class="phpdocumentor-signature__argument__name">$maskPattern</span>
  548. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  549. </dt>
  550. <dd class="phpdocumentor-argument-list__definition">
  551. <section class="phpdocumentor-description"></section>
  552. </dd>
  553. <dt class="phpdocumentor-argument-list__entry">
  554. <span class="phpdocumentor-signature__argument__name">$expected</span>
  555. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  556. </dt>
  557. <dd class="phpdocumentor-argument-list__definition">
  558. <section class="phpdocumentor-description"></section>
  559. </dd>
  560. </dl>
  561. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  562. Tags
  563. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  564. </h5>
  565. <dl class="phpdocumentor-tag-list">
  566. <dt class="phpdocumentor-tag-list__entry">
  567. <span class="phpdocumentor-tag__name">dataProvider</span>
  568. </dt>
  569. <dd class="phpdocumentor-tag-list__definition">
  570. <section class="phpdocumentor-description"><p>MaskPatternProvider</p>
  571. </section>
  572. </dd>
  573. </dl>
  574. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  575. <span class="phpdocumentor-signature__response_type">void</span>
  576. &mdash;
  577. </article>
  578. <article
  579. class="phpdocumentor-element
  580. -method
  581. -public
  582. "
  583. >
  584. <h4 class="phpdocumentor-element__name" id="method_testVersionClamp">
  585. testVersionClamp()
  586. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionClamp" class="headerlink"><i class="fas fa-link"></i></a>
  587. </h4>
  588. <aside class="phpdocumentor-element-found-in">
  589. <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>
  590. :
  591. <span class="phpdocumentor-element-found-in__line">41</span>
  592. </aside>
  593. <p class="phpdocumentor-summary">Tests the $version clamping</p>
  594. <code class="phpdocumentor-code phpdocumentor-signature ">
  595. <span class="phpdocumentor-signature__visibility">public</span>
  596. <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>
  597. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  598. <dl class="phpdocumentor-argument-list">
  599. <dt class="phpdocumentor-argument-list__entry">
  600. <span class="phpdocumentor-signature__argument__name">$version</span>
  601. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  602. </dt>
  603. <dd class="phpdocumentor-argument-list__definition">
  604. <section class="phpdocumentor-description"></section>
  605. </dd>
  606. <dt class="phpdocumentor-argument-list__entry">
  607. <span class="phpdocumentor-signature__argument__name">$expected</span>
  608. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  609. </dt>
  610. <dd class="phpdocumentor-argument-list__definition">
  611. <section class="phpdocumentor-description"></section>
  612. </dd>
  613. </dl>
  614. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  615. Tags
  616. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  617. </h5>
  618. <dl class="phpdocumentor-tag-list">
  619. <dt class="phpdocumentor-tag-list__entry">
  620. <span class="phpdocumentor-tag__name">dataProvider</span>
  621. </dt>
  622. <dd class="phpdocumentor-tag-list__definition">
  623. <section class="phpdocumentor-description"><p>VersionProvider</p>
  624. </section>
  625. </dd>
  626. </dl>
  627. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  628. <span class="phpdocumentor-signature__response_type">void</span>
  629. &mdash;
  630. </article>
  631. <article
  632. class="phpdocumentor-element
  633. -method
  634. -public
  635. "
  636. >
  637. <h4 class="phpdocumentor-element__name" id="method_testVersionMinMaxClamp">
  638. testVersionMinMaxClamp()
  639. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_testVersionMinMaxClamp" class="headerlink"><i class="fas fa-link"></i></a>
  640. </h4>
  641. <aside class="phpdocumentor-element-found-in">
  642. <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>
  643. :
  644. <span class="phpdocumentor-element-found-in__line">64</span>
  645. </aside>
  646. <p class="phpdocumentor-summary">Tests the $versionMin/$versionMax clamping</p>
  647. <code class="phpdocumentor-code phpdocumentor-signature ">
  648. <span class="phpdocumentor-signature__visibility">public</span>
  649. <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>
  650. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  651. <dl class="phpdocumentor-argument-list">
  652. <dt class="phpdocumentor-argument-list__entry">
  653. <span class="phpdocumentor-signature__argument__name">$versionMin</span>
  654. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  655. </dt>
  656. <dd class="phpdocumentor-argument-list__definition">
  657. <section class="phpdocumentor-description"></section>
  658. </dd>
  659. <dt class="phpdocumentor-argument-list__entry">
  660. <span class="phpdocumentor-signature__argument__name">$versionMax</span>
  661. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  662. </dt>
  663. <dd class="phpdocumentor-argument-list__definition">
  664. <section class="phpdocumentor-description"></section>
  665. </dd>
  666. <dt class="phpdocumentor-argument-list__entry">
  667. <span class="phpdocumentor-signature__argument__name">$expectedMin</span>
  668. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  669. </dt>
  670. <dd class="phpdocumentor-argument-list__definition">
  671. <section class="phpdocumentor-description"></section>
  672. </dd>
  673. <dt class="phpdocumentor-argument-list__entry">
  674. <span class="phpdocumentor-signature__argument__name">$expectedMax</span>
  675. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  676. </dt>
  677. <dd class="phpdocumentor-argument-list__definition">
  678. <section class="phpdocumentor-description"></section>
  679. </dd>
  680. </dl>
  681. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  682. Tags
  683. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  684. </h5>
  685. <dl class="phpdocumentor-tag-list">
  686. <dt class="phpdocumentor-tag-list__entry">
  687. <span class="phpdocumentor-tag__name">dataProvider</span>
  688. </dt>
  689. <dd class="phpdocumentor-tag-list__definition">
  690. <section class="phpdocumentor-description"><p>VersionMinMaxProvider</p>
  691. </section>
  692. </dd>
  693. </dl>
  694. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  695. <span class="phpdocumentor-signature__response_type">void</span>
  696. &mdash;
  697. </article>
  698. <article
  699. class="phpdocumentor-element
  700. -method
  701. -public
  702. "
  703. >
  704. <h4 class="phpdocumentor-element__name" id="method_VersionMinMaxProvider">
  705. VersionMinMaxProvider()
  706. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionMinMaxProvider" class="headerlink"><i class="fas fa-link"></i></a>
  707. </h4>
  708. <aside class="phpdocumentor-element-found-in">
  709. <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>
  710. :
  711. <span class="phpdocumentor-element-found-in__line">50</span>
  712. </aside>
  713. <code class="phpdocumentor-code phpdocumentor-signature ">
  714. <span class="phpdocumentor-signature__visibility">public</span>
  715. <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>
  716. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  717. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  718. &mdash;
  719. </article>
  720. <article
  721. class="phpdocumentor-element
  722. -method
  723. -public
  724. "
  725. >
  726. <h4 class="phpdocumentor-element__name" id="method_VersionProvider">
  727. VersionProvider()
  728. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#method_VersionProvider" class="headerlink"><i class="fas fa-link"></i></a>
  729. </h4>
  730. <aside class="phpdocumentor-element-found-in">
  731. <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>
  732. :
  733. <span class="phpdocumentor-element-found-in__line">27</span>
  734. </aside>
  735. <code class="phpdocumentor-code phpdocumentor-signature ">
  736. <span class="phpdocumentor-signature__visibility">public</span>
  737. <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>
  738. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  739. <span class="phpdocumentor-signature__response_type">array&lt;string|int, array&lt;string|int, int&gt;&gt;</span>
  740. &mdash;
  741. </article>
  742. </section>
  743. <script type="text/javascript">
  744. function loadExternalCodeSnippets(line) {
  745. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  746. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  747. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  748. var language = 'php';
  749. var code = document.createElement('code');
  750. code.className = 'language-' + language;
  751. pre.textContent = '';
  752. pre.setAttribute('data-line', line)
  753. code.textContent = 'Loading…';
  754. pre.appendChild(code);
  755. var xhr = new XMLHttpRequest();
  756. xhr.open('GET', src, true);
  757. xhr.onreadystatechange = function () {
  758. if (xhr.readyState == 4) {
  759. if (xhr.status < 400 && xhr.responseText) {
  760. code.textContent = xhr.responseText;
  761. Prism.highlightElement(code);
  762. }
  763. else if (xhr.status >= 400) {
  764. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  765. }
  766. else {
  767. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  768. }
  769. }
  770. };
  771. xhr.send(null);
  772. });
  773. }
  774. var modals = document.querySelectorAll("[data-modal]");
  775. modals.forEach(function (trigger) {
  776. trigger.addEventListener("click", function (event) {
  777. //event.preventDefault();
  778. const modal = document.getElementById(trigger.dataset.modal);
  779. modal.classList.add("phpdocumentor-modal__open");
  780. loadExternalCodeSnippets(trigger.dataset.line)
  781. const exits = modal.querySelectorAll("[data-exit-button]");
  782. exits.forEach(function (exit) {
  783. exit.addEventListener("click", function (event) {
  784. event.preventDefault();
  785. modal.classList.remove("phpdocumentor-modal__open");
  786. });
  787. });
  788. });
  789. });
  790. </script>
  791. </article>
  792. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  793. <section class="phpdocumentor-search-results__dialog">
  794. <header class="phpdocumentor-search-results__header">
  795. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  796. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  797. </header>
  798. <section class="phpdocumentor-search-results__body">
  799. <ul class="phpdocumentor-search-results__entries"></ul>
  800. </section>
  801. </section>
  802. </section>
  803. </div>
  804. </div>
  805. <a href="classes/chillerlan-QRCodeTest-QROptionsTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  806. </main>
  807. <script>
  808. cssVars({});
  809. </script>
  810. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  811. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  812. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  813. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  814. </body>
  815. </html>