Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 77 changed files with 368 additions and 538 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.4-dev",
"dev-develop": "2.5-dev"
"dev-master": "2.2-dev",
"dev-develop": "2.3-dev"
}
},
"autoload-dev": {
Expand Down
13 changes: 4 additions & 9 deletions src/Barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,19 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode;

use Traversable;
use Zend;
use Zend\Stdlib\ArrayUtils;

/**
* Class for generate Barcode
*
* @category Zend
* @package Zend_Barcode
*/
class Barcode
abstract class Barcode
{
/**
* Default barcode TTF font name
Expand Down Expand Up @@ -96,7 +91,7 @@ public static function getRendererPluginManager()
* @param mixed $renderer String name of renderer class
* @param mixed $barcodeConfig OPTIONAL; an array or Traversable object with barcode parameters.
* @param mixed $rendererConfig OPTIONAL; an array or Traversable object with renderer parameters.
* @param boolean $automaticRenderError OPTIONAL; set the automatic rendering of exception
* @param bool $automaticRenderError OPTIONAL; set the automatic rendering of exception
* @return Barcode
* @throws Exception\ExceptionInterface
*/
Expand Down Expand Up @@ -133,7 +128,7 @@ public static function factory($barcode,
$renderer = static::makeRenderer($renderer, $rendererConfig);
} catch (Exception\ExceptionInterface $e) {
if ($automaticRenderError && !($e instanceof Exception\RendererCreationException)) {
$barcode = static::makeBarcode('error', array( 'text' => $e->getMessage() ));
$barcode = static::makeBarcode('error', array('text' => $e->getMessage()));
$renderer = static::makeRenderer($renderer, array());
} else {
throw $e;
Expand Down
7 changes: 1 addition & 6 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
* @subpackage Exception
*/
interface ExceptionInterface
{
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
*/
class InvalidArgumentException
extends \InvalidArgumentException
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/OutOfRangeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
*/
class OutOfRangeException extends \OutOfRangeException implements ExceptionInterface
{
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/RendererCreationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
*/
class RendererCreationException
extends \InvalidArgumentException
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
*/
class RuntimeException extends \RuntimeException implements ExceptionInterface
{
Expand Down
6 changes: 1 addition & 5 deletions src/Exception/UnexpectedValueException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Barcode
*/

namespace Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @category Zend
* @package Zend_Barcode
*/
class UnexpectedValueException extends \UnexpectedValueException implements
ExceptionInterface
Expand Down
Loading

0 comments on commit ebc5f97

Please sign in to comment.