chillerlan-QRCodeTest-Common-EccLevelTest.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  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=Open+Sans:wght@100;200;300;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/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcodetest-common.html">Common</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -class">
  114. <h2 class="phpdocumentor-content__title">
  115. EccLevelTest
  116. <span class="phpdocumentor-element__extends">
  117. extends <abbr title="\PHPUnit\Framework\TestCase">TestCase</abbr>
  118. </span>
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">22</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">EccLevel coverage test</p>
  135. <h3 id="toc">
  136. Table of Contents
  137. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  138. </h3>
  139. <h4 id="toc-methods">
  140. Methods
  141. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h4>
  143. <dl class="phpdocumentor-table-of-contents">
  144. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  145. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_constructInvalidEccException">constructInvalidEccException()</a>
  146. <span>
  147. &nbsp;: void </span>
  148. </dt>
  149. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  150. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_eccToString">eccToString()</a>
  151. <span>
  152. &nbsp;: void </span>
  153. </dt>
  154. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  155. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getformatPattern">getformatPattern()</a>
  156. <span>
  157. &nbsp;: void </span>
  158. </dt>
  159. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  160. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getLevel">getLevel()</a>
  161. <span>
  162. &nbsp;: void </span>
  163. </dt>
  164. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  165. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getMaxBits">getMaxBits()</a>
  166. <span>
  167. &nbsp;: void </span>
  168. </dt>
  169. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  170. <a class="" href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getOrdinal">getOrdinal()</a>
  171. <span>
  172. &nbsp;: void </span>
  173. </dt>
  174. </dl>
  175. <section class="phpdocumentor-methods">
  176. <h3 class="phpdocumentor-elements__header" id="methods">
  177. Methods
  178. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  179. </h3>
  180. <article
  181. class="phpdocumentor-element
  182. -method
  183. -public
  184. "
  185. >
  186. <h4 class="phpdocumentor-element__name" id="method_constructInvalidEccException">
  187. constructInvalidEccException()
  188. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_constructInvalidEccException" class="headerlink"><i class="fas fa-link"></i></a>
  189. </h4>
  190. <aside class="phpdocumentor-element-found-in">
  191. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  192. :
  193. <span class="phpdocumentor-element-found-in__line">24</span>
  194. </aside>
  195. <code class="phpdocumentor-code phpdocumentor-signature ">
  196. <span class="phpdocumentor-signature__visibility">public</span>
  197. <span class="phpdocumentor-signature__name">constructInvalidEccException</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  198. <div class="phpdocumentor-label-line">
  199. </div>
  200. <section class="phpdocumentor-attributes">
  201. <h5 class="phpdocumentor-elements__header" id="attributes">
  202. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_constructInvalidEccException#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  203. </h5>
  204. <dl class="phpdocumentor-argument-list">
  205. <dt class="phpdocumentor-argument-list__entry">
  206. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  207. </dt>
  208. </dl>
  209. </section>
  210. </article>
  211. <article
  212. class="phpdocumentor-element
  213. -method
  214. -public
  215. "
  216. >
  217. <h4 class="phpdocumentor-element__name" id="method_eccToString">
  218. eccToString()
  219. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_eccToString" class="headerlink"><i class="fas fa-link"></i></a>
  220. </h4>
  221. <aside class="phpdocumentor-element-found-in">
  222. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  223. :
  224. <span class="phpdocumentor-element-found-in__line">32</span>
  225. </aside>
  226. <code class="phpdocumentor-code phpdocumentor-signature ">
  227. <span class="phpdocumentor-signature__visibility">public</span>
  228. <span class="phpdocumentor-signature__name">eccToString</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  229. <div class="phpdocumentor-label-line">
  230. </div>
  231. <section class="phpdocumentor-attributes">
  232. <h5 class="phpdocumentor-elements__header" id="attributes">
  233. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_eccToString#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  234. </h5>
  235. <dl class="phpdocumentor-argument-list">
  236. <dt class="phpdocumentor-argument-list__entry">
  237. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  238. </dt>
  239. </dl>
  240. </section>
  241. </article>
  242. <article
  243. class="phpdocumentor-element
  244. -method
  245. -public
  246. "
  247. >
  248. <h4 class="phpdocumentor-element__name" id="method_getformatPattern">
  249. getformatPattern()
  250. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getformatPattern" class="headerlink"><i class="fas fa-link"></i></a>
  251. </h4>
  252. <aside class="phpdocumentor-element-found-in">
  253. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  254. :
  255. <span class="phpdocumentor-element-found-in__line">53</span>
  256. </aside>
  257. <code class="phpdocumentor-code phpdocumentor-signature ">
  258. <span class="phpdocumentor-signature__visibility">public</span>
  259. <span class="phpdocumentor-signature__name">getformatPattern</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  260. <div class="phpdocumentor-label-line">
  261. </div>
  262. <section class="phpdocumentor-attributes">
  263. <h5 class="phpdocumentor-elements__header" id="attributes">
  264. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getformatPattern#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  265. </h5>
  266. <dl class="phpdocumentor-argument-list">
  267. <dt class="phpdocumentor-argument-list__entry">
  268. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  269. </dt>
  270. </dl>
  271. </section>
  272. </article>
  273. <article
  274. class="phpdocumentor-element
  275. -method
  276. -public
  277. "
  278. >
  279. <h4 class="phpdocumentor-element__name" id="method_getLevel">
  280. getLevel()
  281. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getLevel" class="headerlink"><i class="fas fa-link"></i></a>
  282. </h4>
  283. <aside class="phpdocumentor-element-found-in">
  284. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  285. :
  286. <span class="phpdocumentor-element-found-in__line">39</span>
  287. </aside>
  288. <code class="phpdocumentor-code phpdocumentor-signature ">
  289. <span class="phpdocumentor-signature__visibility">public</span>
  290. <span class="phpdocumentor-signature__name">getLevel</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  291. <div class="phpdocumentor-label-line">
  292. </div>
  293. <section class="phpdocumentor-attributes">
  294. <h5 class="phpdocumentor-elements__header" id="attributes">
  295. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getLevel#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  296. </h5>
  297. <dl class="phpdocumentor-argument-list">
  298. <dt class="phpdocumentor-argument-list__entry">
  299. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  300. </dt>
  301. </dl>
  302. </section>
  303. </article>
  304. <article
  305. class="phpdocumentor-element
  306. -method
  307. -public
  308. "
  309. >
  310. <h4 class="phpdocumentor-element__name" id="method_getMaxBits">
  311. getMaxBits()
  312. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getMaxBits" class="headerlink"><i class="fas fa-link"></i></a>
  313. </h4>
  314. <aside class="phpdocumentor-element-found-in">
  315. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  316. :
  317. <span class="phpdocumentor-element-found-in__line">60</span>
  318. </aside>
  319. <code class="phpdocumentor-code phpdocumentor-signature ">
  320. <span class="phpdocumentor-signature__visibility">public</span>
  321. <span class="phpdocumentor-signature__name">getMaxBits</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  322. <div class="phpdocumentor-label-line">
  323. </div>
  324. <section class="phpdocumentor-attributes">
  325. <h5 class="phpdocumentor-elements__header" id="attributes">
  326. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getMaxBits#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  327. </h5>
  328. <dl class="phpdocumentor-argument-list">
  329. <dt class="phpdocumentor-argument-list__entry">
  330. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  331. </dt>
  332. </dl>
  333. </section>
  334. </article>
  335. <article
  336. class="phpdocumentor-element
  337. -method
  338. -public
  339. "
  340. >
  341. <h4 class="phpdocumentor-element__name" id="method_getOrdinal">
  342. getOrdinal()
  343. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getOrdinal" class="headerlink"><i class="fas fa-link"></i></a>
  344. </h4>
  345. <aside class="phpdocumentor-element-found-in">
  346. <abbr class="phpdocumentor-element-found-in__file" title="tests/Common/EccLevelTest.php"><a href="files/tests-common-eccleveltest.html"><abbr title="tests/Common/EccLevelTest.php">EccLevelTest.php</abbr></a></abbr>
  347. :
  348. <span class="phpdocumentor-element-found-in__line">46</span>
  349. </aside>
  350. <code class="phpdocumentor-code phpdocumentor-signature ">
  351. <span class="phpdocumentor-signature__visibility">public</span>
  352. <span class="phpdocumentor-signature__name">getOrdinal</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  353. <div class="phpdocumentor-label-line">
  354. </div>
  355. <section class="phpdocumentor-attributes">
  356. <h5 class="phpdocumentor-elements__header" id="attributes">
  357. Attributes <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getOrdinal#attributes" class="headerlink"><i class="fas fa-link"></i></a>
  358. </h5>
  359. <dl class="phpdocumentor-argument-list">
  360. <dt class="phpdocumentor-argument-list__entry">
  361. #[<abbr title="\PHPUnit\Framework\Attributes\Test">Test</abbr>]
  362. </dt>
  363. </dl>
  364. </section>
  365. </article>
  366. </section>
  367. <div class="phpdocumentor-modal" id="source-view">
  368. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  369. <div class="phpdocumentor-modal-container">
  370. <div class="phpdocumentor-modal-content">
  371. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/tests/Common/EccLevelTest.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  372. </div>
  373. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  374. </div>
  375. </div>
  376. <script type="text/javascript">
  377. (function () {
  378. function loadExternalCodeSnippet(el, url, line) {
  379. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  380. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  381. const language = 'php';
  382. const code = document.createElement('code');
  383. code.className = 'language-' + language;
  384. pre.textContent = '';
  385. pre.setAttribute('data-line', line)
  386. code.textContent = 'Loading…';
  387. pre.appendChild(code);
  388. var xhr = new XMLHttpRequest();
  389. xhr.open('GET', src, true);
  390. xhr.onreadystatechange = function () {
  391. if (xhr.readyState !== 4) {
  392. return;
  393. }
  394. if (xhr.status < 400 && xhr.responseText) {
  395. code.textContent = xhr.responseText;
  396. Prism.highlightElement(code);
  397. d=document.getElementsByClassName("line-numbers");
  398. d[0].scrollTop = d[0].children[1].offsetTop;
  399. return;
  400. }
  401. if (xhr.status === 404) {
  402. code.textContent = '✖ Error: File could not be found';
  403. return;
  404. }
  405. if (xhr.status >= 400) {
  406. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  407. return;
  408. }
  409. code.textContent = '✖ Error: An unknown error occurred';
  410. };
  411. xhr.send(null);
  412. });
  413. }
  414. const modalButtons = document.querySelectorAll("[data-modal]");
  415. const openedAsLocalFile = window.location.protocol === 'file:';
  416. if (modalButtons.length > 0 && openedAsLocalFile) {
  417. console.warn(
  418. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  419. 'browsers block XHR requests when a page is opened this way'
  420. );
  421. }
  422. modalButtons.forEach(function (trigger) {
  423. if (openedAsLocalFile) {
  424. trigger.setAttribute("hidden", "hidden");
  425. }
  426. trigger.addEventListener("click", function (event) {
  427. event.preventDefault();
  428. const modal = document.getElementById(trigger.dataset.modal);
  429. if (!modal) {
  430. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  431. return;
  432. }
  433. modal.classList.add("phpdocumentor-modal__open");
  434. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  435. const exits = modal.querySelectorAll("[data-exit-button]");
  436. exits.forEach(function (exit) {
  437. exit.addEventListener("click", function (event) {
  438. event.preventDefault();
  439. modal.classList.remove("phpdocumentor-modal__open");
  440. });
  441. });
  442. });
  443. });
  444. })();
  445. </script>
  446. </article>
  447. </section>
  448. <section class="phpdocumentor-on-this-page__sidebar">
  449. <section class="phpdocumentor-on-this-page__content">
  450. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  451. <ul class="phpdocumentor-list -clean">
  452. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  453. <li>
  454. <ul class="phpdocumentor-list -clean">
  455. <li><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#toc-methods">Methods</a></li>
  456. </ul>
  457. </li>
  458. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  459. <li>
  460. <ul class="phpdocumentor-list -clean">
  461. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_constructInvalidEccException">constructInvalidEccException()</a></li>
  462. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_eccToString">eccToString()</a></li>
  463. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getformatPattern">getformatPattern()</a></li>
  464. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getLevel">getLevel()</a></li>
  465. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getMaxBits">getMaxBits()</a></li>
  466. <li class=""><a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#method_getOrdinal">getOrdinal()</a></li>
  467. </ul>
  468. </li>
  469. </ul>
  470. </section>
  471. </section>
  472. </div>
  473. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  474. <section class="phpdocumentor-search-results__dialog">
  475. <header class="phpdocumentor-search-results__header">
  476. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  477. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  478. </header>
  479. <section class="phpdocumentor-search-results__body">
  480. <ul class="phpdocumentor-search-results__entries"></ul>
  481. </section>
  482. </section>
  483. </section>
  484. </div>
  485. <a href="classes/chillerlan-QRCodeTest-Common-EccLevelTest.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  486. </main>
  487. <script>
  488. cssVars({});
  489. </script>
  490. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  491. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  492. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  493. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  494. </body>
  495. </html>