Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

some fixes in examples and phpcs

  • Loading branch information...
commit 0746dbcbd83dfc27402c59db6e752315050f0cf9 1 parent bd1e592
Gemorroj authored
4 Image/Barcode2.php
@@ -55,7 +55,7 @@ class Image_Barcode2
55 55 const BARCODE_INT25 = 'int25';
56 56 const BARCODE_EAN13 = 'ean13';
57 57 const BARCODE_UPCA = 'upca';
58   - const BARCODE_UPCE = 'upce';
  58 + const BARCODE_UPCE = 'upce';
59 59 const BARCODE_CODE128 = 'code128';
60 60 const BARCODE_EAN8 = 'ean8';
61 61 const BARCODE_POSTNET = 'postnet';
@@ -70,7 +70,7 @@ class Image_Barcode2
70 70 * int25 - 2 Interleaved 5
71 71 * ean13 - EAN 13
72 72 * upca - UPC-A
73   - * upce - UPC-E
  73 + * upce - UPC-E
74 74 * code128
75 75 * ean8
76 76 * postnet
2  Image/Barcode2/Driver/Upca.php
@@ -54,7 +54,7 @@ class Image_Barcode2_Driver_Upca extends Image_Barcode2_Common implements Image_
54 54 * Coding map
55 55 * @var array
56 56 */
57   - var $_codingmap = array(
  57 + private $_codingmap = array(
58 58 '0' => array(
59 59 'L' => array(0,0,0,1,1,0,1),
60 60 'R' => array(1,1,1,0,0,1,0)
4 Image/Barcode2/Driver/Upce.php
@@ -51,7 +51,7 @@ class Image_Barcode2_Driver_Upce extends Image_Barcode2_Common implements Image_
51 51 * Coding map
52 52 * @var array
53 53 */
54   - var $_paritypattern = array(
  54 + private $_paritypattern = array(
55 55 '0' => array(1,1,1,0,0,0),
56 56 '1' => array(1,1,0,1,0,0),
57 57 '2' => array(1,1,0,0,1,0),
@@ -64,7 +64,7 @@ class Image_Barcode2_Driver_Upce extends Image_Barcode2_Common implements Image_
64 64 '9' => array(1,0,0,1,0,1)
65 65 );
66 66
67   - var $_codingmap = array(
  67 + private $_codingmap = array(
68 68 '0' => array(
69 69 'O' => array(0,0,0,1,1,0,1),
70 70 'E' => array(0,1,0,0,1,1,1)
14 docs/examples/test-image-barcode.php
@@ -83,4 +83,16 @@
83 83 <div class="test">
84 84 <h2>Code128 (png):</h2>
85 85 <img
86   - src="bar
  86 + src="barcode_img.php?num=barcode&type=code128&imgtype=png"
  87 + alt="PNG: barcode" title="PNG: barcode"/>
  88 +</div>
  89 +
  90 +<div class="test">
  91 +<h2>PostNet (png):</h2>
  92 +<img
  93 + src="barcode_img.php?num=202609900&type=postnet&imgtype=png"
  94 + alt="PNG: 202609900" title="PNG: 202609900"/>
  95 +</div>
  96 +
  97 +</body>
  98 +</html>

0 comments on commit 0746dbc

Please sign in to comment.
Something went wrong with that request. Please try again.