Docblock fixes

This commit is contained in:
Ivan Lanin 2014-05-02 01:15:28 +07:00
parent 1d84c1db33
commit 9afa46105e
8 changed files with 14 additions and 11 deletions

View File

@ -10,7 +10,6 @@
namespace PhpOffice\PhpWord\Reader; namespace PhpOffice\PhpWord\Reader;
use PhpOffice\PhpWord\PhpWord; use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\Settings;
use PhpOffice\PhpWord\Shared\XMLReader; use PhpOffice\PhpWord\Shared\XMLReader;
/** /**

View File

@ -18,12 +18,16 @@ class Settings
{ {
/** /**
* Zip libraries * Zip libraries
*
* @const string
*/ */
const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive'; const PCLZIP = 'PhpOffice\\PhpWord\\Shared\\ZipArchive';
const ZIPARCHIVE = 'ZipArchive'; const ZIPARCHIVE = 'ZipArchive';
/** /**
* PDF rendering libraries * PDF rendering libraries
*
* @const string
*/ */
const PDF_RENDERER_DOMPDF = 'DomPDF'; const PDF_RENDERER_DOMPDF = 'DomPDF';

View File

@ -89,7 +89,7 @@ class Border extends AbstractStyle
/** /**
* Get border size * Get border size
* *
* @return array * @return int[]
*/ */
public function getBorderSize() public function getBorderSize()
{ {

View File

@ -55,7 +55,7 @@ class LineNumbering extends AbstractStyle
* *
* @param array $style * @param array $style
*/ */
public function __construct($style = null) public function __construct($style = array())
{ {
$this->setStyleByArray($style); $this->setStyleByArray($style);
} }

View File

@ -9,8 +9,6 @@
namespace PhpOffice\PhpWord\Style; namespace PhpOffice\PhpWord\Style;
use PhpOffice\PhpWord\Shared\String;
/** /**
* Section settings * Section settings
*/ */
@ -18,11 +16,16 @@ class Section extends Border
{ {
/** /**
* Page orientation * Page orientation
*
* @const string
*/ */
const ORIENTATION_PORTRAIT = 'portrait'; const ORIENTATION_PORTRAIT = 'portrait';
const ORIENTATION_LANDSCAPE = 'landscape'; const ORIENTATION_LANDSCAPE = 'landscape';
/** /**
* Page default constants * Page default constants
*
* @const int|float
*/ */
const DEFAULT_WIDTH = 11906; // In twip const DEFAULT_WIDTH = 11906; // In twip
const DEFAULT_HEIGHT = 16838; // In twip const DEFAULT_HEIGHT = 16838; // In twip

View File

@ -187,7 +187,7 @@ class Table extends Border
/** /**
* Get TLRBVH Border Size * Get TLRBVH Border Size
* *
* @return array * @return int[]
*/ */
public function getBorderSize() public function getBorderSize()
{ {
@ -218,7 +218,7 @@ class Table extends Border
/** /**
* Get TLRB Border Color * Get TLRB Border Color
* *
* @return array * @return string[]
*/ */
public function getBorderColor() public function getBorderColor()
{ {
@ -408,7 +408,7 @@ class Table extends Border
/** /**
* Get cell margin * Get cell margin
* *
* @return array * @return int[]
*/ */
public function getCellMargin() public function getCellMargin()
{ {

View File

@ -10,8 +10,6 @@
namespace PhpOffice\PhpWord\Writer\ODText\Element; namespace PhpOffice\PhpWord\Writer\ODText\Element;
use PhpOffice\PhpWord\Element\Text as TextElement; use PhpOffice\PhpWord\Element\Text as TextElement;
use PhpOffice\PhpWord\Element\Link as LinkElement;
use PhpOffice\PhpWord\Writer\ODText\Element\Element as ElementWriter;
/** /**
* TextRun element writer * TextRun element writer

View File

@ -10,7 +10,6 @@
namespace PhpOffice\PhpWord\Writer\Word2007\Part; namespace PhpOffice\PhpWord\Writer\Word2007\Part;
use PhpOffice\PhpWord\PhpWord; use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\Settings;
use PhpOffice\PhpWord\Element\AbstractElement; use PhpOffice\PhpWord\Element\AbstractElement;
use PhpOffice\PhpWord\Element\TextBreak; use PhpOffice\PhpWord\Element\TextBreak;
use PhpOffice\PhpWord\Exception\Exception; use PhpOffice\PhpWord\Exception\Exception;