Skip to content

Commit

Permalink
Remove unused and unnecessary imports. Fix class names in doc blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mellthas authored and bsweeney committed Sep 25, 2017
1 parent 241bb9a commit 91ad04f
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 33 deletions.
8 changes: 4 additions & 4 deletions src/Adapter/CPDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ public function add_info($label, $value)
*
* The return value is an integer ID for the new object.
*
* @see CPDF_Adapter::close_object()
* @see CPDF_Adapter::add_object()
* @see CPDF::close_object()
* @see CPDF::add_object()
*
* @return int
*/
Expand All @@ -295,7 +295,7 @@ public function open_object()
/**
* Reopens an existing 'object'
*
* @see CPDF_Adapter::open_object()
* @see CPDF::open_object()
* @param int $object the ID of a previously opened object
*/
public function reopen_object($object)
Expand All @@ -307,7 +307,7 @@ public function reopen_object($object)
/**
* Closes the current 'object'
*
* @see CPDF_Adapter::open_object()
* @see CPDF::open_object()
*/
public function close_object()
{
Expand Down
7 changes: 3 additions & 4 deletions src/Adapter/PDFLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Dompdf\Dompdf;
use Dompdf\Helpers;
use Dompdf\Exception;
use Dompdf\FontMetrics;
use Dompdf\Image\Cache;
use Dompdf\PhpEvaluator;

Expand Down Expand Up @@ -281,8 +280,8 @@ public function add_info($label, $value)
*
* The return value is an integer ID for the new object.
*
* @see PDFLib_Adapter::close_object()
* @see PDFLib_Adapter::add_object()
* @see PDFLib::close_object()
* @see PDFLib::add_object()
*
* @return int
*/
Expand Down Expand Up @@ -312,7 +311,7 @@ public function reopen_object($object)
/**
* Close the current template
*
* @see PDFLib_Adapter::open_object()
* @see PDFLib::open_object()
*/
public function close_object()
{
Expand Down
2 changes: 0 additions & 2 deletions src/Cellmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*/
namespace Dompdf;

use Dompdf\Exception;
use Dompdf\Frame;
use Dompdf\FrameDecorator\Table as TableFrameDecorator;
use Dompdf\FrameDecorator\TableCell as TableCellFrameDecorator;

Expand Down
2 changes: 1 addition & 1 deletion src/Dompdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ public function setPaper($size, $orientation = "portrait")
* Gets the paper size
*
* @param null|string|array $paperSize
* @return \int[] A four-element integer array
* @return int[] A four-element integer array
*/
public function getPaperSize($paperSize = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/FontMetrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public function save_font_families()
* Saves the stored font family cache
*
* The name and location of the cache file are determined by {@link
* FontMetrics::CACHE_FILE}. This file should be writable by the
* FontMetrics::CACHE_FILE}. This file should be writable by the
* webserver process.
*
* @see Font_Metrics::load_font_families()
* @see FontMetrics::loadFontFamilies()
*/
public function saveFontFamilies()
{
Expand Down Expand Up @@ -118,7 +118,7 @@ public function load_font_families()
/**
* Loads the stored font family cache
*
* @see save_font_families()
* @see FontMetrics::saveFontFamilies()
*/
public function loadFontFamilies()
{
Expand Down
1 change: 0 additions & 1 deletion src/FrameDecorator/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

use Dompdf\Dompdf;
use Dompdf\Frame;
use Dompdf\FontMetrics;
use Dompdf\Image\Cache;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/FrameDecorator/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
use Dompdf\Dompdf;
use Dompdf\Helpers;
use Dompdf\Frame;
use Dompdf\FrameDecorator\Table as TableFrameDecorator;
use Dompdf\FrameDecorator\TableRow as TableRowFrameDecorator;
use Dompdf\Renderer;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/FrameDecorator/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
use Dompdf\Dompdf;
use Dompdf\Frame;
use Dompdf\Exception;
use DOMText;
use Dompdf\FontMetrics;

/**
* Decorates Frame objects for text layout
Expand Down
1 change: 0 additions & 1 deletion src/FrameReflower/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
namespace Dompdf\FrameReflower;

use Dompdf\FontMetrics;
use Dompdf\Frame;
use Dompdf\FrameDecorator\Block as BlockFrameDecorator;
use Dompdf\FrameDecorator\TableCell as TableCellFrameDecorator;
Expand Down
4 changes: 1 addition & 3 deletions src/JavascriptEmbedder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*/
namespace Dompdf;

use Dompdf\Frame;

/**
* Embeds Javascript into the PDF document
*
Expand Down Expand Up @@ -41,7 +39,7 @@ public function insert($script)
}

/**
* @param \Dompdf\Frame $frame
* @param Frame $frame
*/
public function render(Frame $frame)
{
Expand Down
1 change: 0 additions & 1 deletion src/LineBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/
namespace Dompdf;

use Dompdf\Frame;
use Dompdf\FrameDecorator\Block;
use Dompdf\FrameDecorator\Page;

Expand Down
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Options
* The default paper size.
*
* North America standard is "letter"; other countries generally "a4"
* @see Dompdf\Adapter\CPDF::PAPER_SIZES for valid sizes
* @see \Dompdf\Adapter\CPDF::PAPER_SIZES for valid sizes
*
* @var string
*/
Expand Down
4 changes: 1 addition & 3 deletions src/PhpEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*/
namespace Dompdf;

use Dompdf\Frame;

/**
* Executes inline PHP code during the rendering process
*
Expand Down Expand Up @@ -56,7 +54,7 @@ public function evaluate($code, $vars = array())
}

/**
* @param \Dompdf\Frame $frame
* @param Frame $frame
*/
public function render(Frame $frame)
{
Expand Down
1 change: 0 additions & 1 deletion src/Positioner/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

use Dompdf\FrameDecorator\AbstractFrameDecorator;
use Dompdf\FrameDecorator\Inline as InlineFrameDecorator;
use Dompdf\FrameDecorator\Block as BlockFrameDecorator;
use Dompdf\Exception;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
use Dompdf\Renderer\TableRowGroup;
use Dompdf\Renderer\Text;

use Dompdf\Frame;

/**
* Concrete renderer
*
Expand Down
1 change: 0 additions & 1 deletion src/Renderer/ListBullet.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace Dompdf\Renderer;

use Dompdf\Helpers;
use Dompdf\FontMetrics;
use Dompdf\Frame;
use Dompdf\Image\Cache;
use Dompdf\FrameDecorator\ListBullet as ListBulletFrameDecorator;
Expand Down
1 change: 0 additions & 1 deletion src/Renderer/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace Dompdf\Renderer;

use Dompdf\Adapter\CPDF;
use Dompdf\FontMetrics;
use Dompdf\Frame;

/**
Expand Down

0 comments on commit 91ad04f

Please sign in to comment.