@@ -24,7 +24,7 @@ |
||
| 24 | 24 | parent::__construct($message, 0, $previous); |
| 25 | 25 | } |
| 26 | 26 | /** |
| 27 | - * @return mixed |
|
| 27 | + * @return string |
|
| 28 | 28 | */ |
| 29 | 29 | public function getFormat() |
| 30 | 30 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @param string $filePath |
| 60 | 60 | * |
| 61 | - * @return Intervention\Image\Image |
|
| 61 | + * @return \Intervention\Image\Image |
|
| 62 | 62 | */ |
| 63 | 63 | public function renderFile($filePath) |
| 64 | 64 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @param string $string |
| 74 | 74 | * |
| 75 | - * @return Intervention\Image\Image |
|
| 75 | + * @return \Intervention\Image\Image |
|
| 76 | 76 | */ |
| 77 | 77 | public function renderString($string) |
| 78 | 78 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * @param SimpleXMLElement $xml |
| 86 | 86 | * |
| 87 | - * @return Intervention\Image\Image |
|
| 87 | + * @return \Intervention\Image\Image |
|
| 88 | 88 | */ |
| 89 | 89 | protected function render(SimpleXMLElement $xml) |
| 90 | 90 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * @return int |
|
| 88 | + * @return double |
|
| 89 | 89 | */ |
| 90 | 90 | public function getPositionX() |
| 91 | 91 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @return int |
|
| 96 | + * @return double |
|
| 97 | 97 | */ |
| 98 | 98 | public function getPositionY() |
| 99 | 99 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * @return int |
|
| 104 | + * @return double |
|
| 105 | 105 | */ |
| 106 | 106 | protected function getWidth() |
| 107 | 107 | { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * @return int |
|
| 112 | + * @return double |
|
| 113 | 113 | */ |
| 114 | 114 | protected function getHeight() |
| 115 | 115 | { |
@@ -11,6 +11,7 @@ |
||
| 11 | 11 | * @param \SimpleXMLElement $xmlField |
| 12 | 12 | * @param \SimpleXMLElement $xmlHeader |
| 13 | 13 | * @param float $scale |
| 14 | + * @return void |
|
| 14 | 15 | */ |
| 15 | 16 | public function parse( |
| 16 | 17 | FieldParserRegistry $fieldParserRegistry, |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @param FieldParserInterface $parser |
| 17 | 17 | * @param callable $fontResolver |
| 18 | 18 | * @param callable $graphicResolver |
| 19 | - * @return Intervention\Image\Image |
|
| 19 | + * @return \Intervention\Image\Image |
|
| 20 | 20 | */ |
| 21 | 21 | public function render( |
| 22 | 22 | ImageManager $imageManager, |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @return FieldParserInterface |
|
| 44 | + * @return FieldRendererBarcode |
|
| 45 | 45 | */ |
| 46 | 46 | public static function factory() |
| 47 | 47 | { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param FieldParserInterface $parser |
| 32 | 32 | * @param callable $fontResolver |
| 33 | 33 | * @param callable $graphicResolver |
| 34 | - * @return Intervention\Image\Image |
|
| 34 | + * @return \Intervention\Image\Image |
|
| 35 | 35 | */ |
| 36 | 36 | public function render( |
| 37 | 37 | ImageManager $imageManager, |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return FieldParserInterface |
|
| 68 | + * @return FieldRendererFixedText |
|
| 69 | 69 | */ |
| 70 | 70 | public static function factory() |
| 71 | 71 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * @param \SimpleXMLElement $xml |
| 43 | 43 | * @param callable $fontResolver |
| 44 | 44 | * @param callable $graphicResolver |
| 45 | - * @return Intervention\Image\Image |
|
| 45 | + * @return \Intervention\Image\Image |
|
| 46 | 46 | */ |
| 47 | 47 | public function render( |
| 48 | 48 | \SimpleXMLElement $xml, |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Graze\CiffRenderer\Renderer\FieldRenderer\FieldRendererFixedText; |
| 16 | 16 | use Graze\CiffRenderer\Renderer\FieldRenderer\FieldRendererBarcode; |
| 17 | 17 | use Graze\CiffRenderer\Renderer\FieldRenderer\FieldRendererStaticGraphic; |
| 18 | -use Graze\CiffRenderer\Renderer\FieldRenderer\GraphicPrimitive\GraphicPrimitiveInterface; |
|
| 19 | 18 | |
| 20 | 19 | class FieldRendererFactoryTest extends \PHPUnit_Framework_TestCase |
| 21 | 20 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Graze\CiffRenderer\Test\Unit\Renderer\FieldRenderer; |
| 4 | 4 | |
| 5 | 5 | use Mockery as m; |
| 6 | -use Intervention\Image\Gd\Font; |
|
| 7 | 6 | use Graze\CiffRenderer\Parser\FieldParser\FieldParserInterface; |
| 8 | 7 | use Intervention\Image\Image; |
| 9 | 8 | use Intervention\Image\ImageManager; |