pear/Image_Barcode2 — Issue #2: Introduce an adapter for better testability and DRY
Author: CloCkWeRX
Created: 2011-12-11 12:48:09+00:00
State: open

There are lots of calls to code like

imagestring(
$img,
$this->_font,
$xpos + 1,
$this->_barcodeheight,
$value,
$black
);

littered through the codebase.

Introduce an Image_Barcode2 wrapper which provides a quick OO abstraction layer on the functional calls.