Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#3 issue

  • Loading branch information...
commit 64dc791bf57554ca8d0a31215c961f720baa878e 1 parent d57dd5b
@Gemorroj Gemorroj authored
View
42 Image/Barcode2/Common.php
@@ -1,21 +1,21 @@
<?php
class Image_Barcode2_Common
{
- protected $_barcodeheight;
- protected $_barcodewidth;
- protected $_barcodethinwidth;
- protected $_barcodethickwidth;
- protected $_fontsize = 2;
+ protected $barcodeheight;
+ protected $barcodewidth;
+ protected $barcodethinwidth;
+ protected $barcodethickwidth;
+ protected $fontsize = 2;
/**
* @var Image_Barcode2_Writer
*/
- protected $_writer;
+ protected $writer;
/**
* @var string barcode
*/
- protected $_barcode;
+ protected $barcode;
/**
@@ -35,7 +35,7 @@ public function __construct(Image_Barcode2_Writer $writer)
*/
public function setWriter(Image_Barcode2_Writer $writer)
{
- $this->_writer = $writer;
+ $this->writer = $writer;
}
/**
@@ -45,7 +45,7 @@ public function setWriter(Image_Barcode2_Writer $writer)
*/
public function getWriter()
{
- return $this->_writer;
+ return $this->writer;
}
/**
@@ -55,7 +55,7 @@ public function getWriter()
*/
public function setBarcode($barcode)
{
- $this->_barcode = trim($barcode);
+ $this->barcode = trim($barcode);
}
/**
@@ -65,56 +65,56 @@ public function setBarcode($barcode)
*/
public function getBarcode()
{
- return $this->_barcode;
+ return $this->barcode;
}
public function setFontSize($size)
{
- $this->_fontsize = $size;
+ $this->fontsize = $size;
}
public function getFontSize()
{
- return $this->_fontsize;
+ return $this->fontsize;
}
public function setBarcodeHeight($height)
{
- $this->_barcodeheight = $height;
+ $this->barcodeheight = $height;
}
public function getBarcodeHeight()
{
- return $this->_barcodeheight;
+ return $this->barcodeheight;
}
public function setBarcodeWidth($width)
{
- $this->_barcodewidth = $width;
+ $this->barcodewidth = $width;
}
public function getBarcodeWidth()
{
- return $this->_barcodewidth;
+ return $this->barcodewidth;
}
public function setBarcodeWidthThick($width)
{
- $this->_barcodethickwidth = $width;
+ $this->barcodethickwidth = $width;
}
public function getBarcodeWidthThick()
{
- return $this->_barcodethickwidth;
+ return $this->barcodethickwidth;
}
public function setBarcodeWidthThin($width)
{
- $this->_barcodethinwidth = $width;
+ $this->barcodethinwidth = $width;
}
public function getBarcodeWidthThin()
{
- return $this->_barcodethinwidth;
+ return $this->barcodethinwidth;
}
}
View
1  Image/Barcode2/Driver/Code128.php
@@ -192,7 +192,6 @@ public function validate()
/**
* Draws a Code128 image barcode
*
- *
* @return resource The corresponding Code128 image barcode
*
* @access public
View
14 Image/Barcode2/Driver/Code39.php
@@ -124,13 +124,13 @@ public function validate()
}
- /**
- * Make an image resource using the GD image library
- *
- * @return resource The Barcode Image (TM)
- *
- * @author Ryan Briones <ryanbriones@webxdesign.org>
- */
+ /**
+ * Make an image resource using the GD image library
+ *
+ * @return resource The Barcode Image (TM)
+ *
+ * @author Ryan Briones <ryanbriones@webxdesign.org>
+ */
public function draw()
{
$text = $this->getBarcode();
View
1  Image/Barcode2/Driver/Ean13.php
@@ -143,7 +143,6 @@ public function validate()
/**
* Draws a EAN 13 image barcode
*
- *
* @return resource The corresponding EAN13 image barcode
*
* @access public
View
5 Image/Barcode2/DualHeight.php
@@ -1,2 +1,5 @@
<?php
-interface Image_Barcode2_DualHeight {}
+interface Image_Barcode2_DualHeight
+{
+
+}
View
5 Image/Barcode2/Exception.php
@@ -1,2 +1,5 @@
<?php
-class Image_Barcode2_Exception extends Exception {}
+class Image_Barcode2_Exception extends Exception
+{
+
+}
View
7 Image/Barcode2/Writer.php
@@ -1,10 +1,9 @@
<?php
/**
- * An adapter for the non oo image writing code. Just used to
- * create a seam for phpunit
+ * An adapter for the non oo image writing code.
+ * Just used to create a seam for phpunit
*
- * @todo See if http://pear.php.net/package/Image_Canvas can be made
- * to work well
+ * @todo See if http://pear.php.net/package/Image_Canvas can be made to work well
*/
class Image_Barcode2_Writer
{
Please sign in to comment.
Something went wrong with that request. Please try again.