Skip to content

Commit 91ad04f

Browse files
Mellthasbsweeney
authored andcommitted
Remove unused and unnecessary imports. Fix class names in doc blocks
1 parent 241bb9a commit 91ad04f

File tree

17 files changed

+14
-33
lines changed

17 files changed

+14
-33
lines changed

src/Adapter/CPDF.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ public function add_info($label, $value)
280280
*
281281
* The return value is an integer ID for the new object.
282282
*
283-
* @see CPDF_Adapter::close_object()
284-
* @see CPDF_Adapter::add_object()
283+
* @see CPDF::close_object()
284+
* @see CPDF::add_object()
285285
*
286286
* @return int
287287
*/
@@ -295,7 +295,7 @@ public function open_object()
295295
/**
296296
* Reopens an existing 'object'
297297
*
298-
* @see CPDF_Adapter::open_object()
298+
* @see CPDF::open_object()
299299
* @param int $object the ID of a previously opened object
300300
*/
301301
public function reopen_object($object)
@@ -307,7 +307,7 @@ public function reopen_object($object)
307307
/**
308308
* Closes the current 'object'
309309
*
310-
* @see CPDF_Adapter::open_object()
310+
* @see CPDF::open_object()
311311
*/
312312
public function close_object()
313313
{

src/Adapter/PDFLib.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Dompdf\Dompdf;
1414
use Dompdf\Helpers;
1515
use Dompdf\Exception;
16-
use Dompdf\FontMetrics;
1716
use Dompdf\Image\Cache;
1817
use Dompdf\PhpEvaluator;
1918

@@ -281,8 +280,8 @@ public function add_info($label, $value)
281280
*
282281
* The return value is an integer ID for the new object.
283282
*
284-
* @see PDFLib_Adapter::close_object()
285-
* @see PDFLib_Adapter::add_object()
283+
* @see PDFLib::close_object()
284+
* @see PDFLib::add_object()
286285
*
287286
* @return int
288287
*/
@@ -312,7 +311,7 @@ public function reopen_object($object)
312311
/**
313312
* Close the current template
314313
*
315-
* @see PDFLib_Adapter::open_object()
314+
* @see PDFLib::open_object()
316315
*/
317316
public function close_object()
318317
{

src/Cellmap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*/
88
namespace Dompdf;
99

10-
use Dompdf\Exception;
11-
use Dompdf\Frame;
1210
use Dompdf\FrameDecorator\Table as TableFrameDecorator;
1311
use Dompdf\FrameDecorator\TableCell as TableCellFrameDecorator;
1412

src/Dompdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ public function setPaper($size, $orientation = "portrait")
10351035
* Gets the paper size
10361036
*
10371037
* @param null|string|array $paperSize
1038-
* @return \int[] A four-element integer array
1038+
* @return int[] A four-element integer array
10391039
*/
10401040
public function getPaperSize($paperSize = null)
10411041
{

src/FontMetrics.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public function save_font_families()
8484
* Saves the stored font family cache
8585
*
8686
* The name and location of the cache file are determined by {@link
87-
* FontMetrics::CACHE_FILE}. This file should be writable by the
87+
* FontMetrics::CACHE_FILE}. This file should be writable by the
8888
* webserver process.
8989
*
90-
* @see Font_Metrics::load_font_families()
90+
* @see FontMetrics::loadFontFamilies()
9191
*/
9292
public function saveFontFamilies()
9393
{
@@ -118,7 +118,7 @@ public function load_font_families()
118118
/**
119119
* Loads the stored font family cache
120120
*
121-
* @see save_font_families()
121+
* @see FontMetrics::saveFontFamilies()
122122
*/
123123
public function loadFontFamilies()
124124
{

src/FrameDecorator/Image.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use Dompdf\Dompdf;
1212
use Dompdf\Frame;
13-
use Dompdf\FontMetrics;
1413
use Dompdf\Image\Cache;
1514

1615
/**

src/FrameDecorator/Page.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use Dompdf\Dompdf;
1212
use Dompdf\Helpers;
1313
use Dompdf\Frame;
14-
use Dompdf\FrameDecorator\Table as TableFrameDecorator;
15-
use Dompdf\FrameDecorator\TableRow as TableRowFrameDecorator;
1614
use Dompdf\Renderer;
1715

1816
/**

src/FrameDecorator/Text.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
use Dompdf\Dompdf;
1313
use Dompdf\Frame;
1414
use Dompdf\Exception;
15-
use DOMText;
16-
use Dompdf\FontMetrics;
1715

1816
/**
1917
* Decorates Frame objects for text layout

src/FrameReflower/Block.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
namespace Dompdf\FrameReflower;
1010

11-
use Dompdf\FontMetrics;
1211
use Dompdf\Frame;
1312
use Dompdf\FrameDecorator\Block as BlockFrameDecorator;
1413
use Dompdf\FrameDecorator\TableCell as TableCellFrameDecorator;

src/JavascriptEmbedder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*/
88
namespace Dompdf;
99

10-
use Dompdf\Frame;
11-
1210
/**
1311
* Embeds Javascript into the PDF document
1412
*
@@ -41,7 +39,7 @@ public function insert($script)
4139
}
4240

4341
/**
44-
* @param \Dompdf\Frame $frame
42+
* @param Frame $frame
4543
*/
4644
public function render(Frame $frame)
4745
{

0 commit comments

Comments
 (0)