Completed
Pull Request — master (#17)
by John
02:34
created
src/Field/Renderer/BarcodeRenderer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 abstract class AbstractGraphicPrimitiveRenderer extends AbstractRenderer
8 8
 {
9 9
     /**
10
-     * @return int
10
+     * @return double
11 11
      */
12 12
     protected function getLineWeight()
13 13
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         $fontPath = $fontResolver($this->getFontFace());
38 38
 
39
-        $fontCallback = function ($font) use ($fontPath) {
39
+        $fontCallback = function($font) use ($fontPath) {
40 40
             $font->file($fontPath);
41 41
             $font->size($this->getFontSize());
42 42
             $font->color('#fff');
Please login to merge, or discard this patch.
src/Field/Renderer/FixedTextRenderer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 abstract class AbstractGraphicPrimitiveRenderer extends AbstractRenderer
8 8
 {
9 9
     /**
10
-     * @return int
10
+     * @return double
11 11
      */
12 12
     protected function getLineWeight()
13 13
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
         $size = $fontOverride->getBoxSize();
85 85
 
86
-        $fontCallback = function (&$font) use ($fontOverride) {
86
+        $fontCallback = function(&$font) use ($fontOverride) {
87 87
             // override the font created by Canvas::text()
88 88
             $font = $fontOverride;
89 89
         };
Please login to merge, or discard this patch.
src/Field/Renderer/GraphicPrimitive/OutlineBoxRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $canvas = $this->getImageManager()->canvas($this->getWidth(), $this->getHeight(), $this->getTracerColour());
16 16
 
17
-        $rectangleConf = function ($rectangle) {
17
+        $rectangleConf = function($rectangle) {
18 18
             $rectangle->border($this->getLineWeight(), '#000');
19 19
         };
20 20
 
Please login to merge, or discard this patch.
src/Field/Builder/FixedTextBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param ParserInterface $parser
24 24
      *
25
-     * @return ParserInterface
25
+     * @return FixedTextRenderer
26 26
      */
27 27
     protected function instantiateRenderer(ParserInterface $parser)
28 28
     {
Please login to merge, or discard this patch.
tests/unit/Field/Renderer/StaticGraphicRendererTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use \Mockery as m;
6 6
 use Graze\CiffRenderer\Field\Renderer\StaticGraphicRenderer;
7 7
 use Intervention\Image\ImageManager;
8
-use Intervention\Image\Image;
9 8
 
10 9
 class StaticGraphicRendererTest extends \PHPUnit_Framework_TestCase
11 10
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         $gdResource = 'gdResource';
15 15
 
16
-        $graphicResolver = function () use ($gdResource) {
16
+        $graphicResolver = function() use ($gdResource) {
17 17
             return $gdResource;
18 18
         };
19 19
 
Please login to merge, or discard this patch.
tests/unit/Field/Builder/StaticGraphicBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $xmlField = new SimpleXMLElement('<a/>');
20 20
         $scale = 10;
21 21
         $tracerColour = '#ccc';
22
-        $graphicResolver = function () {
22
+        $graphicResolver = function() {
23 23
         };
24 24
 
25 25
         $parser = m::mock(StaticGraphicParser::class)
Please login to merge, or discard this patch.
tests/unit/Field/Builder/BarcodeBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function testRender()
13 13
     {
14
-        $fontResolver = function () {
14
+        $fontResolver = function() {
15 15
         };
16 16
         $text = 'this is some text';
17 17
         $width = 104;
Please login to merge, or discard this patch.
tests/unit/Field/Builder/FixedTextBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function testRender()
13 13
     {
14
-        $fontResolver = function () {
14
+        $fontResolver = function() {
15 15
         };
16 16
         $text = 'this is some text';
17 17
         $width = 104;
Please login to merge, or discard this patch.
tests/unit/Field/Builder/OffsetDateBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function testRender()
13 13
     {
14
-        $fontResolver = function () {
14
+        $fontResolver = function() {
15 15
         };
16 16
         $text = 'this is some text';
17 17
         $width = 104;
Please login to merge, or discard this patch.