Ver código fonte

[GENERIC] Barcode: remove extra spaces

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22999 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 15 anos atrás
pai
commit
189ba4d1a1

+ 3 - 3
library/Zend/Barcode/Exception.php

@@ -41,8 +41,8 @@ class Zend_Barcode_Exception extends Zend_Exception
 
     /**
      * Set renderable flag
-     * 
-     * @param  bool $flag 
+     *
+     * @param  bool $flag
      * @return Zend_Barcode_Exception
      */
     public function setIsRenderable($flag)
@@ -53,7 +53,7 @@ class Zend_Barcode_Exception extends Zend_Exception
 
     /**
      * Retrieve renderable flag
-     * 
+     *
      * @return bool
      */
     public function isRenderable()

+ 11 - 11
library/Zend/Barcode/Object/Ean13.php

@@ -62,17 +62,17 @@ class Zend_Barcode_Object_Ean13 extends Zend_Barcode_Object_ObjectAbstract
         ));
 
     protected $_parities = array(
-		0 => array('A','A','A','A','A','A'),
-		1 => array('A','A','B','A','B','B'),
-		2 => array('A','A','B','B','A','B'),
-		3 => array('A','A','B','B','B','A'),
-		4 => array('A','B','A','A','B','B'),
-		5 => array('A','B','B','A','A','B'),
-		6 => array('A','B','B','B','A','A'),
-		7 => array('A','B','A','B','A','B'),
-		8 => array('A','B','A','B','B','A'),
-		9 => array('A','B','B','A','B','A')
-	);
+        0 => array('A','A','A','A','A','A'),
+        1 => array('A','A','B','A','B','B'),
+        2 => array('A','A','B','B','A','B'),
+        3 => array('A','A','B','B','B','A'),
+        4 => array('A','B','A','A','B','B'),
+        5 => array('A','B','B','A','A','B'),
+        6 => array('A','B','B','B','A','A'),
+        7 => array('A','B','A','B','A','B'),
+        8 => array('A','B','A','B','B','A'),
+        9 => array('A','B','B','A','B','A')
+    );
 
     /**
      * Default options for Postnet barcode

+ 2 - 2
library/Zend/Barcode/Renderer/Image.php

@@ -435,14 +435,14 @@ class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
             }
             imagestring($this->_resource, $font, $positionX, $positionY, $text, $color);
         } else {
-            
+
             if (!function_exists('imagettfbbox')) {
                 require_once 'Zend/Barcode/Renderer/Exception.php';
                 throw new Zend_Barcode_Renderer_Exception(
                     'A font was provided, but this instance of PHP does not have TTF (FreeType) support'
                     );
             }
-            
+
             $box = imagettfbbox($size, 0, $font, $text);
             switch ($alignment) {
                 case 'left':

+ 6 - 6
library/Zend/Barcode/Renderer/RendererAbstract.php

@@ -529,12 +529,12 @@ abstract class Zend_Barcode_Renderer_RendererAbstract
      * @param float $orientation
      */
     abstract protected function _drawText(
-        $text, 
-        $size, 
-        $position, 
-        $font, 
-        $color, 
-        $alignment = 'center', 
+        $text,
+        $size,
+        $position,
+        $font,
+        $color,
+        $alignment = 'center',
         $orientation = 0
     );
 }