Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpcs #15

Merged
merged 1 commit into from
Mar 11, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions Image/Barcode2/Common.php
Original file line number Diff line number Diff line change
@@ -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;


/**
Expand All @@ -35,7 +35,7 @@ public function __construct(Image_Barcode2_Writer $writer)
*/
public function setWriter(Image_Barcode2_Writer $writer)
{
$this->_writer = $writer;
$this->writer = $writer;
}

/**
Expand All @@ -45,7 +45,7 @@ public function setWriter(Image_Barcode2_Writer $writer)
*/
public function getWriter()
{
return $this->_writer;
return $this->writer;
}

/**
Expand All @@ -55,7 +55,7 @@ public function getWriter()
*/
public function setBarcode($barcode)
{
$this->_barcode = trim($barcode);
$this->barcode = trim($barcode);
}

/**
Expand All @@ -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;
}
}
1 change: 0 additions & 1 deletion Image/Barcode2/Driver/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public function validate()
/**
* Draws a Code128 image barcode
*
*
* @return resource The corresponding Code128 image barcode
*
* @access public
Expand Down
14 changes: 7 additions & 7 deletions Image/Barcode2/Driver/Code39.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion Image/Barcode2/Driver/Ean13.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public function validate()
/**
* Draws a EAN 13 image barcode
*
*
* @return resource The corresponding EAN13 image barcode
*
* @access public
Expand Down
5 changes: 4 additions & 1 deletion Image/Barcode2/DualHeight.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<?php
interface Image_Barcode2_DualHeight {}
interface Image_Barcode2_DualHeight
{

}
5 changes: 4 additions & 1 deletion Image/Barcode2/Exception.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<?php
class Image_Barcode2_Exception extends Exception {}
class Image_Barcode2_Exception extends Exception
{

}
7 changes: 3 additions & 4 deletions Image/Barcode2/Writer.php
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down