Skip to content
Browse files

some fixes in examples and phpcs

  • Loading branch information...
1 parent bd1e592 commit 0746dbcbd83dfc27402c59db6e752315050f0cf9 @Gemorroj committed Apr 25, 2012
Showing with 18 additions and 6 deletions.
  1. +2 −2 Image/Barcode2.php
  2. +1 −1 Image/Barcode2/Driver/Upca.php
  3. +2 −2 Image/Barcode2/Driver/Upce.php
  4. +13 −1 docs/examples/test-image-barcode.php
View
4 Image/Barcode2.php
@@ -55,7 +55,7 @@ class Image_Barcode2
const BARCODE_INT25 = 'int25';
const BARCODE_EAN13 = 'ean13';
const BARCODE_UPCA = 'upca';
- const BARCODE_UPCE = 'upce';
+ const BARCODE_UPCE = 'upce';
const BARCODE_CODE128 = 'code128';
const BARCODE_EAN8 = 'ean8';
const BARCODE_POSTNET = 'postnet';
@@ -70,7 +70,7 @@ class Image_Barcode2
* int25 - 2 Interleaved 5
* ean13 - EAN 13
* upca - UPC-A
- * upce - UPC-E
+ * upce - UPC-E
* code128
* ean8
* postnet
View
2 Image/Barcode2/Driver/Upca.php
@@ -54,7 +54,7 @@ class Image_Barcode2_Driver_Upca extends Image_Barcode2_Common implements Image_
* Coding map
* @var array
*/
- var $_codingmap = array(
+ private $_codingmap = array(
'0' => array(
'L' => array(0,0,0,1,1,0,1),
'R' => array(1,1,1,0,0,1,0)
View
4 Image/Barcode2/Driver/Upce.php
@@ -51,7 +51,7 @@ class Image_Barcode2_Driver_Upce extends Image_Barcode2_Common implements Image_
* Coding map
* @var array
*/
- var $_paritypattern = array(
+ private $_paritypattern = array(
'0' => array(1,1,1,0,0,0),
'1' => array(1,1,0,1,0,0),
'2' => array(1,1,0,0,1,0),
@@ -64,7 +64,7 @@ class Image_Barcode2_Driver_Upce extends Image_Barcode2_Common implements Image_
'9' => array(1,0,0,1,0,1)
);
- var $_codingmap = array(
+ private $_codingmap = array(
'0' => array(
'O' => array(0,0,0,1,1,0,1),
'E' => array(0,1,0,0,1,1,1)
View
14 docs/examples/test-image-barcode.php
@@ -83,4 +83,16 @@
<div class="test">
<h2>Code128 (png):</h2>
<img
- src="bar
+ src="barcode_img.php?num=barcode&type=code128&imgtype=png"
+ alt="PNG: barcode" title="PNG: barcode"/>
+</div>
+
+<div class="test">
+<h2>PostNet (png):</h2>
+<img
+ src="barcode_img.php?num=202609900&type=postnet&imgtype=png"
+ alt="PNG: 202609900" title="PNG: 202609900"/>
+</div>
+
+</body>
+</html>

0 comments on commit 0746dbc

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