Remove @throws comment

Those are extremely hard to maintain properly and bring almost
no value, especially if they are outdated
This commit is contained in:
Adrien Crivelli 2020-05-16 20:33:25 +09:00
parent 6579551954
commit 7e79782dae
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
89 changed files with 0 additions and 590 deletions

View File

@ -2315,8 +2315,6 @@ class Calculation
/** /**
* __clone implementation. Cloning should not be allowed in a Singleton! * __clone implementation. Cloning should not be allowed in a Singleton!
*
* @throws Exception
*/ */
final public function __clone() final public function __clone()
{ {
@ -2765,8 +2763,6 @@ class Calculation
* *
* @param Cell $pCell Cell to calculate * @param Cell $pCell Cell to calculate
* *
* @throws Exception
*
* @return mixed * @return mixed
*/ */
public function calculate(Cell $pCell = null) public function calculate(Cell $pCell = null)
@ -2784,8 +2780,6 @@ class Calculation
* @param Cell $pCell Cell to calculate * @param Cell $pCell Cell to calculate
* @param bool $resetLog Flag indicating whether the debug log should be reset or not * @param bool $resetLog Flag indicating whether the debug log should be reset or not
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return mixed * @return mixed
*/ */
public function calculateCellValue(Cell $pCell = null, $resetLog = true) public function calculateCellValue(Cell $pCell = null, $resetLog = true)
@ -2888,8 +2882,6 @@ class Calculation
* @param string $cellID Address of the cell to calculate * @param string $cellID Address of the cell to calculate
* @param Cell $pCell Cell to calculate * @param Cell $pCell Cell to calculate
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return mixed * @return mixed
*/ */
public function calculateFormula($formula, $cellID = null, Cell $pCell = null) public function calculateFormula($formula, $cellID = null, Cell $pCell = null)
@ -2965,8 +2957,6 @@ class Calculation
* @param string $cellID The ID (e.g. A3) of the cell that we are calculating * @param string $cellID The ID (e.g. A3) of the cell that we are calculating
* @param Cell $pCell Cell to calculate * @param Cell $pCell Cell to calculate
* *
* @throws Exception
*
* @return mixed * @return mixed
*/ */
public function _calculateFormulaValue($formula, $cellID = null, Cell $pCell = null) public function _calculateFormulaValue($formula, $cellID = null, Cell $pCell = null)

View File

@ -2346,8 +2346,6 @@ class Engineering
* *
* @param mixed $value * @param mixed $value
* *
* @throws Exception
*
* @return int * @return int
*/ */
private static function validateBitwiseArgument($value) private static function validateBitwiseArgument($value)

View File

@ -62,8 +62,6 @@ class FormulaParser
* Create a new FormulaParser. * Create a new FormulaParser.
* *
* @param string $pFormula Formula to parse * @param string $pFormula Formula to parse
*
* @throws Exception
*/ */
public function __construct($pFormula = '') public function __construct($pFormula = '')
{ {
@ -93,8 +91,6 @@ class FormulaParser
* *
* @param int $pId Token id * @param int $pId Token id
* *
* @throws Exception
*
* @return string * @return string
*/ */
public function getToken($pId = 0) public function getToken($pId = 0)

View File

@ -16,8 +16,6 @@ class AdvancedValueBinder extends DefaultValueBinder implements IValueBinder
* @param Cell $cell Cell to bind value to * @param Cell $cell Cell to bind value to
* @param mixed $value Value to bind in cell * @param mixed $value Value to bind in cell
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return bool * @return bool
*/ */
public function bindValue(Cell $cell, $value = null) public function bindValue(Cell $cell, $value = null)

View File

@ -92,8 +92,6 @@ class Cell
* @param mixed $pValue * @param mixed $pValue
* @param string $pDataType * @param string $pDataType
* @param Worksheet $pSheet * @param Worksheet $pSheet
*
* @throws Exception
*/ */
public function __construct($pValue, $pDataType, Worksheet $pSheet) public function __construct($pValue, $pDataType, Worksheet $pSheet)
{ {
@ -175,8 +173,6 @@ class Cell
* *
* @param mixed $pValue Value * @param mixed $pValue Value
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setValue($pValue) public function setValue($pValue)
@ -194,8 +190,6 @@ class Cell
* @param mixed $pValue Value * @param mixed $pValue Value
* @param string $pDataType Explicit data type, see DataType::TYPE_* * @param string $pDataType Explicit data type, see DataType::TYPE_*
* *
* @throws Exception
*
* @return Cell * @return Cell
*/ */
public function setValueExplicit($pValue, $pDataType) public function setValueExplicit($pValue, $pDataType)
@ -252,8 +246,6 @@ class Cell
* *
* @param bool $resetLog Whether the calculation engine logger should be reset or not * @param bool $resetLog Whether the calculation engine logger should be reset or not
* *
* @throws Exception
*
* @return mixed * @return mixed
*/ */
public function getCalculatedValue($resetLog = true) public function getCalculatedValue($resetLog = true)
@ -362,8 +354,6 @@ class Cell
/** /**
* Does this cell contain Data validation rules? * Does this cell contain Data validation rules?
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function hasDataValidation() public function hasDataValidation()
@ -378,8 +368,6 @@ class Cell
/** /**
* Get Data validation rules. * Get Data validation rules.
* *
* @throws Exception
*
* @return DataValidation * @return DataValidation
*/ */
public function getDataValidation() public function getDataValidation()
@ -396,8 +384,6 @@ class Cell
* *
* @param DataValidation $pDataValidation * @param DataValidation $pDataValidation
* *
* @throws Exception
*
* @return Cell * @return Cell
*/ */
public function setDataValidation(DataValidation $pDataValidation = null) public function setDataValidation(DataValidation $pDataValidation = null)
@ -426,8 +412,6 @@ class Cell
/** /**
* Does this cell contain a Hyperlink? * Does this cell contain a Hyperlink?
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function hasHyperlink() public function hasHyperlink()
@ -442,8 +426,6 @@ class Cell
/** /**
* Get Hyperlink. * Get Hyperlink.
* *
* @throws Exception
*
* @return Hyperlink * @return Hyperlink
*/ */
public function getHyperlink() public function getHyperlink()
@ -460,8 +442,6 @@ class Cell
* *
* @param Hyperlink $pHyperlink * @param Hyperlink $pHyperlink
* *
* @throws Exception
*
* @return Cell * @return Cell
*/ */
public function setHyperlink(Hyperlink $pHyperlink = null) public function setHyperlink(Hyperlink $pHyperlink = null)

View File

@ -25,8 +25,6 @@ abstract class Coordinate
* *
* @param string $pCoordinateString eg: 'A1' * @param string $pCoordinateString eg: 'A1'
* *
* @throws Exception
*
* @return string[] Array containing column and row (indexes 0 and 1) * @return string[] Array containing column and row (indexes 0 and 1)
*/ */
public static function coordinateFromString($pCoordinateString) public static function coordinateFromString($pCoordinateString)
@ -60,8 +58,6 @@ abstract class Coordinate
* @param string $pCoordinateString e.g. 'A' or '1' or 'A1' * @param string $pCoordinateString e.g. 'A' or '1' or 'A1'
* Note that this value can be a row or column reference as well as a cell reference * Note that this value can be a row or column reference as well as a cell reference
* *
* @throws Exception
*
* @return string Absolute coordinate e.g. '$A' or '$1' or '$A$1' * @return string Absolute coordinate e.g. '$A' or '$1' or '$A$1'
*/ */
public static function absoluteReference($pCoordinateString) public static function absoluteReference($pCoordinateString)
@ -91,8 +87,6 @@ abstract class Coordinate
* *
* @param string $pCoordinateString e.g. 'A1' * @param string $pCoordinateString e.g. 'A1'
* *
* @throws Exception
*
* @return string Absolute coordinate e.g. '$A$1' * @return string Absolute coordinate e.g. '$A$1'
*/ */
public static function absoluteCoordinate($pCoordinateString) public static function absoluteCoordinate($pCoordinateString)
@ -145,8 +139,6 @@ abstract class Coordinate
* *
* @param array $pRange Array containg one or more arrays containing one or two coordinate strings * @param array $pRange Array containg one or more arrays containing one or two coordinate strings
* *
* @throws Exception
*
* @return string String representation of $pRange * @return string String representation of $pRange
*/ */
public static function buildRange(array $pRange) public static function buildRange(array $pRange)

View File

@ -14,8 +14,6 @@ class DefaultValueBinder implements IValueBinder
* @param Cell $cell Cell to bind value to * @param Cell $cell Cell to bind value to
* @param mixed $value Value to bind in cell * @param mixed $value Value to bind in cell
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return bool * @return bool
*/ */
public function bindValue(Cell $cell, $value) public function bindValue(Cell $cell, $value)

View File

@ -12,8 +12,6 @@ class StringValueBinder implements IValueBinder
* @param Cell $cell Cell to bind value to * @param Cell $cell Cell to bind value to
* @param mixed $value Value to bind in cell * @param mixed $value Value to bind in cell
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return bool * @return bool
*/ */
public function bindValue(Cell $cell, $value) public function bindValue(Cell $cell, $value)

View File

@ -115,8 +115,6 @@ class DataSeriesValues
* DataSeriesValues::DATASERIES_TYPE_NUMBER * DataSeriesValues::DATASERIES_TYPE_NUMBER
* Normally used for chart data values * Normally used for chart data values
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setDataType($dataType) public function setDataType($dataType)
@ -247,8 +245,6 @@ class DataSeriesValues
* *
* @param string $color value for color * @param string $color value for color
* *
* @throws \Exception thrown if color is invalid
*
* @return bool true if validation was successful * @return bool true if validation was successful
*/ */
private function validateColor($color) private function validateColor($color)

View File

@ -105,8 +105,6 @@ class Cells
* *
* @param Cell $cell Cell to update * @param Cell $cell Cell to update
* *
* @throws PhpSpreadsheetException
*
* @return Cell * @return Cell
*/ */
public function update(Cell $cell) public function update(Cell $cell)
@ -382,8 +380,6 @@ class Cells
/** /**
* Store cell data in cache for the current cell object if it's "dirty", * Store cell data in cache for the current cell object if it's "dirty",
* and the 'nullify' the current cell object. * and the 'nullify' the current cell object.
*
* @throws PhpSpreadsheetException
*/ */
private function storeCurrentCell() private function storeCurrentCell()
{ {
@ -409,8 +405,6 @@ class Cells
* @param string $pCoord Coordinate of the cell to update * @param string $pCoord Coordinate of the cell to update
* @param Cell $cell Cell to update * @param Cell $cell Cell to update
* *
* @throws PhpSpreadsheetException
*
* @return \PhpOffice\PhpSpreadsheet\Cell\Cell * @return \PhpOffice\PhpSpreadsheet\Cell\Cell
*/ */
public function add($pCoord, Cell $cell) public function add($pCoord, Cell $cell)
@ -432,8 +426,6 @@ class Cells
* *
* @param string $pCoord Coordinate of the cell * @param string $pCoord Coordinate of the cell
* *
* @throws PhpSpreadsheetException
*
* @return \PhpOffice\PhpSpreadsheet\Cell\Cell Cell that was found, or null if not found * @return \PhpOffice\PhpSpreadsheet\Cell\Cell Cell that was found, or null if not found
*/ */
public function get($pCoord) public function get($pCoord)

View File

@ -5,7 +5,6 @@ namespace PhpOffice\PhpSpreadsheet;
use PhpOffice\PhpSpreadsheet\Calculation\Category; use PhpOffice\PhpSpreadsheet\Calculation\Category;
use PhpOffice\PhpSpreadsheet\Calculation\Functions; use PhpOffice\PhpSpreadsheet\Calculation\Functions;
use ReflectionClass; use ReflectionClass;
use ReflectionException;
use UnexpectedValueException; use UnexpectedValueException;
class DocumentGenerator class DocumentGenerator
@ -13,8 +12,6 @@ class DocumentGenerator
/** /**
* @param array[] $phpSpreadsheetFunctions * @param array[] $phpSpreadsheetFunctions
* *
* @throws ReflectionException
*
* @return string * @return string
*/ */
public static function generateFunctionListByCategory(array $phpSpreadsheetFunctions): string public static function generateFunctionListByCategory(array $phpSpreadsheetFunctions): string
@ -38,11 +35,6 @@ class DocumentGenerator
return $result; return $result;
} }
/**
* @throws ReflectionException
*
* @return array
*/
private static function getCategories(): array private static function getCategories(): array
{ {
return (new ReflectionClass(Category::class))->getConstants(); return (new ReflectionClass(Category::class))->getConstants();
@ -82,8 +74,6 @@ class DocumentGenerator
/** /**
* @param array[] $phpSpreadsheetFunctions * @param array[] $phpSpreadsheetFunctions
* *
* @throws ReflectionException
*
* @return string * @return string
*/ */
public static function generateFunctionListByName(array $phpSpreadsheetFunctions): string public static function generateFunctionListByName(array $phpSpreadsheetFunctions): string

View File

@ -22,8 +22,6 @@ class HashTable
* Create a new \PhpOffice\PhpSpreadsheet\HashTable. * Create a new \PhpOffice\PhpSpreadsheet\HashTable.
* *
* @param IComparable[] $pSource Optional source array to create HashTable from * @param IComparable[] $pSource Optional source array to create HashTable from
*
* @throws Exception
*/ */
public function __construct($pSource = null) public function __construct($pSource = null)
{ {
@ -37,8 +35,6 @@ class HashTable
* Add HashTable items from source. * Add HashTable items from source.
* *
* @param IComparable[] $pSource Source array to create HashTable from * @param IComparable[] $pSource Source array to create HashTable from
*
* @throws Exception
*/ */
public function addFromSource(array $pSource = null) public function addFromSource(array $pSource = null)
{ {

View File

@ -40,8 +40,6 @@ abstract class IOFactory
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* @param string $writerType Example: Xlsx * @param string $writerType Example: Xlsx
* *
* @throws Writer\Exception
*
* @return Writer\IWriter * @return Writer\IWriter
*/ */
public static function createWriter(Spreadsheet $spreadsheet, $writerType) public static function createWriter(Spreadsheet $spreadsheet, $writerType)
@ -61,8 +59,6 @@ abstract class IOFactory
* *
* @param string $readerType Example: Xlsx * @param string $readerType Example: Xlsx
* *
* @throws Reader\Exception
*
* @return Reader\IReader * @return Reader\IReader
*/ */
public static function createReader($readerType) public static function createReader($readerType)
@ -82,8 +78,6 @@ abstract class IOFactory
* *
* @param string $pFilename The name of the spreadsheet file * @param string $pFilename The name of the spreadsheet file
* *
* @throws Reader\Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public static function load($pFilename) public static function load($pFilename)
@ -98,8 +92,6 @@ abstract class IOFactory
* *
* @param string $pFilename The name of the spreadsheet file to identify * @param string $pFilename The name of the spreadsheet file to identify
* *
* @throws Reader\Exception
*
* @return string * @return string
*/ */
public static function identify($pFilename) public static function identify($pFilename)
@ -117,8 +109,6 @@ abstract class IOFactory
* *
* @param string $filename The name of the spreadsheet file * @param string $filename The name of the spreadsheet file
* *
* @throws Reader\Exception
*
* @return Reader\IReader * @return Reader\IReader
*/ */
public static function createReaderForFile($filename) public static function createReaderForFile($filename)

View File

@ -49,8 +49,6 @@ class NamedRange
* @param string $pRange * @param string $pRange
* @param bool $pLocalOnly * @param bool $pLocalOnly
* @param null|Worksheet $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope. * @param null|Worksheet $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope.
*
* @throws Exception
*/ */
public function __construct($pName, Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null) public function __construct($pName, Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null)
{ {

View File

@ -144,8 +144,6 @@ abstract class BaseReader implements IReader
* Open file for reading. * Open file for reading.
* *
* @param string $pFilename * @param string $pFilename
*
* @throws Exception
*/ */
protected function openFile($pFilename) protected function openFile($pFilename)
{ {

View File

@ -272,8 +272,6 @@ class Csv extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -317,8 +315,6 @@ class Csv extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -336,8 +332,6 @@ class Csv extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)

View File

@ -46,8 +46,6 @@ class Gnumeric extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function canRead($pFilename) public function canRead($pFilename)
@ -169,8 +167,6 @@ class Gnumeric extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -188,8 +184,6 @@ class Gnumeric extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)

View File

@ -205,8 +205,6 @@ class Html extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -581,8 +579,6 @@ class Html extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)
@ -630,8 +626,6 @@ class Html extends BaseReader
* @param DOMDocument $document * @param DOMDocument $document
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
private function loadDocument(DOMDocument $document, Spreadsheet $spreadsheet): Spreadsheet private function loadDocument(DOMDocument $document, Spreadsheet $spreadsheet): Spreadsheet
@ -862,8 +856,6 @@ class Html extends BaseReader
* @param string $column * @param string $column
* @param int $row * @param int $row
* @param array $attributes * @param array $attributes
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ */
private function insertImage(Worksheet $sheet, $column, $row, array $attributes) private function insertImage(Worksheet $sheet, $column, $row, array $attributes)
{ {

View File

@ -129,8 +129,6 @@ interface IReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return \PhpOffice\PhpSpreadsheet\Spreadsheet * @return \PhpOffice\PhpSpreadsheet\Spreadsheet
*/ */
public function load($pFilename); public function load($pFilename);

View File

@ -34,8 +34,6 @@ class Ods extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function canRead($pFilename) public function canRead($pFilename)
@ -85,8 +83,6 @@ class Ods extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return string[] * @return string[]
*/ */
public function listWorksheetNames($pFilename) public function listWorksheetNames($pFilename)
@ -139,8 +135,6 @@ class Ods extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -233,8 +227,6 @@ class Ods extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -252,8 +244,6 @@ class Ods extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)

View File

@ -114,8 +114,6 @@ class XmlScanner
* *
* @param mixed $xml * @param mixed $xml
* *
* @throws Reader\Exception
*
* @return string * @return string
*/ */
public function scan($xml) public function scan($xml)
@ -143,8 +141,6 @@ class XmlScanner
* *
* @param string $filestream * @param string $filestream
* *
* @throws Reader\Exception
*
* @return string * @return string
*/ */
public function scanFile($filestream) public function scanFile($filestream)

View File

@ -107,8 +107,6 @@ class Slk extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -177,8 +175,6 @@ class Slk extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -196,8 +192,6 @@ class Slk extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)

View File

@ -444,8 +444,6 @@ class Xls extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetNames($pFilename) public function listWorksheetNames($pFilename)
@ -504,8 +502,6 @@ class Xls extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -618,8 +614,6 @@ class Xls extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -5516,8 +5510,6 @@ class Xls extends BaseReader
* @param string $formulaData Formula data * @param string $formulaData Formula data
* @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
* *
* @throws Exception
*
* @return array * @return array
*/ */
private function getNextToken($formulaData, $baseCell = 'A1') private function getNextToken($formulaData, $baseCell = 'A1')
@ -7186,8 +7178,6 @@ class Xls extends BaseReader
* *
* @param string $subData * @param string $subData
* *
* @throws Exception
*
* @return string * @return string
*/ */
private function readBIFF5CellRangeAddressFixed($subData) private function readBIFF5CellRangeAddressFixed($subData)
@ -7227,8 +7217,6 @@ class Xls extends BaseReader
* *
* @param string $subData * @param string $subData
* *
* @throws Exception
*
* @return string * @return string
*/ */
private function readBIFF8CellRangeAddressFixed($subData) private function readBIFF8CellRangeAddressFixed($subData)
@ -7465,8 +7453,6 @@ class Xls extends BaseReader
* *
* @param int $index * @param int $index
* *
* @throws Exception
*
* @return false|string * @return false|string
*/ */
private function readSheetRangeByRefIndex($index) private function readSheetRangeByRefIndex($index)

View File

@ -69,8 +69,6 @@ class Xlsx extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function canRead($pFilename) public function canRead($pFilename)
@ -95,8 +93,6 @@ class Xlsx extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetNames($pFilename) public function listWorksheetNames($pFilename)
@ -140,8 +136,6 @@ class Xlsx extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -318,8 +312,6 @@ class Xlsx extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)

View File

@ -50,8 +50,6 @@ class Xml extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function canRead($pFilename) public function canRead($pFilename)
@ -103,8 +101,6 @@ class Xml extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return false|\SimpleXMLElement * @return false|\SimpleXMLElement
*/ */
public function trySimpleXMLLoadString($pFilename) public function trySimpleXMLLoadString($pFilename)
@ -127,8 +123,6 @@ class Xml extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetNames($pFilename) public function listWorksheetNames($pFilename)
@ -158,8 +152,6 @@ class Xml extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function listWorksheetInfo($pFilename) public function listWorksheetInfo($pFilename)
@ -229,8 +221,6 @@ class Xml extends BaseReader
* *
* @param string $pFilename * @param string $pFilename
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function load($pFilename) public function load($pFilename)
@ -300,8 +290,6 @@ class Xml extends BaseReader
* @param string $pFilename * @param string $pFilename
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws Exception
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet) public function loadIntoExisting($pFilename, Spreadsheet $spreadsheet)

View File

@ -363,8 +363,6 @@ class ReferenceHelper
* @param int $pNumCols Number of columns to insert/delete (negative values indicate deletion) * @param int $pNumCols Number of columns to insert/delete (negative values indicate deletion)
* @param int $pNumRows Number of rows to insert/delete (negative values indicate deletion) * @param int $pNumRows Number of rows to insert/delete (negative values indicate deletion)
* @param Worksheet $pSheet The worksheet that we're editing * @param Worksheet $pSheet The worksheet that we're editing
*
* @throws Exception
*/ */
public function insertNewBefore($pBefore, $pNumCols, $pNumRows, Worksheet $pSheet) public function insertNewBefore($pBefore, $pNumCols, $pNumRows, Worksheet $pSheet)
{ {
@ -624,8 +622,6 @@ class ReferenceHelper
* @param int $pNumRows Number of rows to insert * @param int $pNumRows Number of rows to insert
* @param string $sheetName Worksheet name/title * @param string $sheetName Worksheet name/title
* *
* @throws Exception
*
* @return string Updated formula * @return string Updated formula
*/ */
public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0, $sheetName = '') public function updateFormulaReferences($pFormula = '', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0, $sheetName = '')
@ -766,8 +762,6 @@ class ReferenceHelper
* @param int $pNumCols Number of columns to increment * @param int $pNumCols Number of columns to increment
* @param int $pNumRows Number of rows to increment * @param int $pNumRows Number of rows to increment
* *
* @throws Exception
*
* @return string Updated cell range * @return string Updated cell range
*/ */
public function updateCellReference($pCellRange = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) public function updateCellReference($pCellRange = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0)
@ -824,8 +818,6 @@ class ReferenceHelper
* @param int $pNumCols Number of columns to increment * @param int $pNumCols Number of columns to increment
* @param int $pNumRows Number of rows to increment * @param int $pNumRows Number of rows to increment
* *
* @throws Exception
*
* @return string Updated cell range * @return string Updated cell range
*/ */
private function updateCellRange($pCellRange = 'A1:A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) private function updateCellRange($pCellRange = 'A1:A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0)
@ -864,8 +856,6 @@ class ReferenceHelper
* @param int $pNumCols Number of columns to increment * @param int $pNumCols Number of columns to increment
* @param int $pNumRows Number of rows to increment * @param int $pNumRows Number of rows to increment
* *
* @throws Exception
*
* @return string Updated cell reference * @return string Updated cell reference
*/ */
private function updateSingleCellReference($pCellReference = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0) private function updateSingleCellReference($pCellReference = 'A1', $pBefore = 'A1', $pNumCols = 0, $pNumRows = 0)
@ -900,8 +890,6 @@ class ReferenceHelper
/** /**
* __clone implementation. Cloning should not be allowed in a Singleton! * __clone implementation. Cloning should not be allowed in a Singleton!
*
* @throws Exception
*/ */
final public function __clone() final public function __clone()
{ {

View File

@ -4,7 +4,6 @@ namespace PhpOffice\PhpSpreadsheet\RichText;
use PhpOffice\PhpSpreadsheet\Cell\Cell; use PhpOffice\PhpSpreadsheet\Cell\Cell;
use PhpOffice\PhpSpreadsheet\Cell\DataType; use PhpOffice\PhpSpreadsheet\Cell\DataType;
use PhpOffice\PhpSpreadsheet\Exception;
use PhpOffice\PhpSpreadsheet\IComparable; use PhpOffice\PhpSpreadsheet\IComparable;
class RichText implements IComparable class RichText implements IComparable
@ -20,8 +19,6 @@ class RichText implements IComparable
* Create a new RichText instance. * Create a new RichText instance.
* *
* @param Cell $pCell * @param Cell $pCell
*
* @throws Exception
*/ */
public function __construct(Cell $pCell = null) public function __construct(Cell $pCell = null)
{ {
@ -61,8 +58,6 @@ class RichText implements IComparable
* *
* @param string $pText Text * @param string $pText Text
* *
* @throws Exception
*
* @return TextElement * @return TextElement
*/ */
public function createText($pText) public function createText($pText)
@ -78,8 +73,6 @@ class RichText implements IComparable
* *
* @param string $pText Text * @param string $pText Text
* *
* @throws Exception
*
* @return Run * @return Run
*/ */
public function createTextRun($pText) public function createTextRun($pText)

View File

@ -59,8 +59,6 @@ class Settings
* *
* @param string $rendererClass Class name of the chart renderer * @param string $rendererClass Class name of the chart renderer
* eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph * eg: PhpOffice\PhpSpreadsheet\Chart\Renderer\JpGraph
*
* @throws Exception
*/ */
public static function setChartRenderer($rendererClass) public static function setChartRenderer($rendererClass)
{ {

View File

@ -12,8 +12,6 @@ class CodePage
* *
* @param int $codePage Microsoft Code Page Indentifier * @param int $codePage Microsoft Code Page Indentifier
* *
* @throws PhpSpreadsheetException
*
* @return string Code Page Name * @return string Code Page Name
*/ */
public static function numberToName($codePage) public static function numberToName($codePage)

View File

@ -95,8 +95,6 @@ class Date
* *
* @param DateTimeZone|string $timeZone The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions * @param DateTimeZone|string $timeZone The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions
* *
* @throws \Exception
*
* @return bool Success or failure * @return bool Success or failure
* @return bool Success or failure * @return bool Success or failure
*/ */
@ -130,8 +128,6 @@ class Date
* *
* @param DateTimeZone|string $timeZone The timezone to validate, either as a timezone string or object * @param DateTimeZone|string $timeZone The timezone to validate, either as a timezone string or object
* *
* @throws \Exception
*
* @return DateTimeZone The timezone as a timezone object * @return DateTimeZone The timezone as a timezone object
* @return DateTimeZone The timezone as a timezone object * @return DateTimeZone The timezone as a timezone object
*/ */
@ -154,8 +150,6 @@ class Date
* if you don't want to treat it as a UTC value * if you don't want to treat it as a UTC value
* Use the default (UST) unless you absolutely need a conversion * Use the default (UST) unless you absolutely need a conversion
* *
* @throws \Exception
*
* @return \DateTime PHP date/time object * @return \DateTime PHP date/time object
*/ */
public static function excelToDateTimeObject($excelTimestamp, $timeZone = null) public static function excelToDateTimeObject($excelTimestamp, $timeZone = null)
@ -203,8 +197,6 @@ class Date
* if you don't want to treat it as a UTC value * if you don't want to treat it as a UTC value
* Use the default (UST) unless you absolutely need a conversion * Use the default (UST) unless you absolutely need a conversion
* *
* @throws \Exception
*
* @return int Unix timetamp for this date/time * @return int Unix timetamp for this date/time
*/ */
public static function excelToTimestamp($excelTimestamp, $timeZone = null) public static function excelToTimestamp($excelTimestamp, $timeZone = null)

View File

@ -128,8 +128,6 @@ class File
* Assert that given path is an existing file and is readable, otherwise throw exception. * Assert that given path is an existing file and is readable, otherwise throw exception.
* *
* @param string $filename * @param string $filename
*
* @throws InvalidArgumentException
*/ */
public static function assertFile($filename) public static function assertFile($filename)
{ {

View File

@ -276,8 +276,6 @@ class Font
* @param \PhpOffice\PhpSpreadsheet\Style\Font * @param \PhpOffice\PhpSpreadsheet\Style\Font
* @param int $rotation * @param int $rotation
* *
* @throws PhpSpreadsheetException
*
* @return int * @return int
*/ */
public static function getTextWidthPixelsExact($text, \PhpOffice\PhpSpreadsheet\Style\Font $font, $rotation = 0) public static function getTextWidthPixelsExact($text, \PhpOffice\PhpSpreadsheet\Style\Font $font, $rotation = 0)

View File

@ -242,9 +242,6 @@ class LUDecomposition
* *
* @param mixed $B a Matrix with as many rows as A and any number of columns * @param mixed $B a Matrix with as many rows as A and any number of columns
* *
* @throws CalculationException illegalArgumentException Matrix row dimensions must agree
* @throws CalculationException runtimeException Matrix is singular
*
* @return Matrix X so that L*U*X = B(piv,:) * @return Matrix X so that L*U*X = B(piv,:)
*/ */
public function solve($B) public function solve($B)

View File

@ -113,8 +113,6 @@ class OLE
* *
* @param string $file * @param string $file
* *
* @throws ReaderException
*
* @return bool true on success, PEAR_Error on failure * @return bool true on success, PEAR_Error on failure
*/ */
public function read($file) public function read($file)
@ -539,8 +537,6 @@ class OLE
* *
* @param string $oleTimestamp A binary string with the encoded date * @param string $oleTimestamp A binary string with the encoded date
* *
* @throws ReaderException
*
* @return int The Unix timestamp corresponding to the string * @return int The Unix timestamp corresponding to the string
*/ */
public static function OLE2LocalDate($oleTimestamp) public static function OLE2LocalDate($oleTimestamp)

View File

@ -94,8 +94,6 @@ class OLERead
* Read the file. * Read the file.
* *
* @param $pFilename string Filename * @param $pFilename string Filename
*
* @throws ReaderException
*/ */
public function read($pFilename) public function read($pFilename)
{ {

View File

@ -61,8 +61,6 @@ class TimeZone
* @param string $timezone The timezone for finding the adjustment to UST * @param string $timezone The timezone for finding the adjustment to UST
* @param int $timestamp PHP date/time value * @param int $timestamp PHP date/time value
* *
* @throws PhpSpreadsheetException
*
* @return int Number of seconds for timezone adjustment * @return int Number of seconds for timezone adjustment
*/ */
public static function getTimeZoneAdjustment($timezone, $timestamp) public static function getTimeZoneAdjustment($timezone, $timestamp)

View File

@ -571,8 +571,6 @@ class Spreadsheet
/** /**
* Get active sheet. * Get active sheet.
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function getActiveSheet() public function getActiveSheet()
@ -585,8 +583,6 @@ class Spreadsheet
* *
* @param null|int $sheetIndex Index where sheet should go (0,1,..., or null for last) * @param null|int $sheetIndex Index where sheet should go (0,1,..., or null for last)
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function createSheet($sheetIndex = null) public function createSheet($sheetIndex = null)
@ -615,8 +611,6 @@ class Spreadsheet
* @param Worksheet $pSheet * @param Worksheet $pSheet
* @param null|int $iSheetIndex Index where sheet should go (0,1,..., or null for last) * @param null|int $iSheetIndex Index where sheet should go (0,1,..., or null for last)
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function addSheet(Worksheet $pSheet, $iSheetIndex = null) public function addSheet(Worksheet $pSheet, $iSheetIndex = null)
@ -658,8 +652,6 @@ class Spreadsheet
* Remove sheet by index. * Remove sheet by index.
* *
* @param int $pIndex Active sheet index * @param int $pIndex Active sheet index
*
* @throws Exception
*/ */
public function removeSheetByIndex($pIndex) public function removeSheetByIndex($pIndex)
{ {
@ -683,8 +675,6 @@ class Spreadsheet
* *
* @param int $pIndex Sheet index * @param int $pIndex Sheet index
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function getSheet($pIndex) public function getSheet($pIndex)
@ -734,8 +724,6 @@ class Spreadsheet
* *
* @param Worksheet $pSheet * @param Worksheet $pSheet
* *
* @throws Exception
*
* @return int index * @return int index
*/ */
public function getIndex(Worksheet $pSheet) public function getIndex(Worksheet $pSheet)
@ -755,8 +743,6 @@ class Spreadsheet
* @param string $sheetName Sheet name to modify index for * @param string $sheetName Sheet name to modify index for
* @param int $newIndex New index for the sheet * @param int $newIndex New index for the sheet
* *
* @throws Exception
*
* @return int New sheet index * @return int New sheet index
*/ */
public function setIndexByName($sheetName, $newIndex) public function setIndexByName($sheetName, $newIndex)
@ -802,8 +788,6 @@ class Spreadsheet
* *
* @param int $pIndex Active sheet index * @param int $pIndex Active sheet index
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function setActiveSheetIndex($pIndex) public function setActiveSheetIndex($pIndex)
@ -825,8 +809,6 @@ class Spreadsheet
* *
* @param string $pValue Sheet title * @param string $pValue Sheet title
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function setActiveSheetIndexByName($pValue) public function setActiveSheetIndexByName($pValue)
@ -862,8 +844,6 @@ class Spreadsheet
* @param Worksheet $pSheet External sheet to add * @param Worksheet $pSheet External sheet to add
* @param null|int $iSheetIndex Index where sheet should go (0,1,..., or null for last) * @param null|int $iSheetIndex Index where sheet should go (0,1,..., or null for last)
* *
* @throws Exception
*
* @return Worksheet * @return Worksheet
*/ */
public function addExternalSheet(Worksheet $pSheet, $iSheetIndex = null) public function addExternalSheet(Worksheet $pSheet, $iSheetIndex = null)
@ -1067,8 +1047,6 @@ class Spreadsheet
/** /**
* Get default style. * Get default style.
* *
* @throws Exception
*
* @return Style * @return Style
*/ */
public function getDefaultStyle() public function getDefaultStyle()
@ -1095,8 +1073,6 @@ class Spreadsheet
* Remove cellXf by index. It is ensured that all cells get their xf index updated. * Remove cellXf by index. It is ensured that all cells get their xf index updated.
* *
* @param int $pIndex Index to cellXf * @param int $pIndex Index to cellXf
*
* @throws Exception
*/ */
public function removeCellXfByIndex($pIndex) public function removeCellXfByIndex($pIndex)
{ {
@ -1188,8 +1164,6 @@ class Spreadsheet
* Remove cellStyleXf by index. * Remove cellStyleXf by index.
* *
* @param int $pIndex Index to cellXf * @param int $pIndex Index to cellXf
*
* @throws Exception
*/ */
public function removeCellStyleXfByIndex($pIndex) public function removeCellStyleXfByIndex($pIndex)
{ {
@ -1405,8 +1379,6 @@ class Spreadsheet
* Set the first sheet in the book view. * Set the first sheet in the book view.
* *
* @param int $firstSheetIndex First sheet in book view * @param int $firstSheetIndex First sheet in book view
*
* @throws Exception if the given value is invalid
*/ */
public function setFirstSheetIndex($firstSheetIndex) public function setFirstSheetIndex($firstSheetIndex)
{ {
@ -1444,8 +1416,6 @@ class Spreadsheet
* user interface. * user interface.
* *
* @param string $visibility visibility status of the workbook * @param string $visibility visibility status of the workbook
*
* @throws Exception if the given value is invalid
*/ */
public function setVisibility($visibility) public function setVisibility($visibility)
{ {
@ -1476,8 +1446,6 @@ class Spreadsheet
* TabRatio is assumed to be out of 1000 of the horizontal window width. * TabRatio is assumed to be out of 1000 of the horizontal window width.
* *
* @param int $tabRatio Ratio between the tabs bar and the horizontal scroll bar * @param int $tabRatio Ratio between the tabs bar and the horizontal scroll bar
*
* @throws Exception if the given value is invalid
*/ */
public function setTabRatio($tabRatio) public function setTabRatio($tabRatio)
{ {

View File

@ -138,8 +138,6 @@ class Alignment extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)
@ -267,8 +265,6 @@ class Alignment extends Supervisor
* *
* @param int $pValue * @param int $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setTextRotation($pValue) public function setTextRotation($pValue)

View File

@ -69,8 +69,6 @@ class Border extends Supervisor
* Get the shared style component for the currently active cell in currently active sheet. * Get the shared style component for the currently active cell in currently active sheet.
* Only used for style supervisor. * Only used for style supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getSharedComponent() public function getSharedComponent()
@ -125,8 +123,6 @@ class Border extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)
@ -200,8 +196,6 @@ class Border extends Supervisor
* *
* @param Color $pValue * @param Color $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setColor(Color $pValue) public function setColor(Color $pValue)

View File

@ -195,8 +195,6 @@ class Borders extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)
@ -286,8 +284,6 @@ class Borders extends Supervisor
/** /**
* Get AllBorders (pseudo-border). Only applies to supervisor. * Get AllBorders (pseudo-border). Only applies to supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getAllBorders() public function getAllBorders()
@ -302,8 +298,6 @@ class Borders extends Supervisor
/** /**
* Get Outline (pseudo-border). Only applies to supervisor. * Get Outline (pseudo-border). Only applies to supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getOutline() public function getOutline()
@ -318,8 +312,6 @@ class Borders extends Supervisor
/** /**
* Get Inside (pseudo-border). Only applies to supervisor. * Get Inside (pseudo-border). Only applies to supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getInside() public function getInside()
@ -334,8 +326,6 @@ class Borders extends Supervisor
/** /**
* Get Vertical (pseudo-border). Only applies to supervisor. * Get Vertical (pseudo-border). Only applies to supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getVertical() public function getVertical()
@ -350,8 +340,6 @@ class Borders extends Supervisor
/** /**
* Get Horizontal (pseudo-border). Only applies to supervisor. * Get Horizontal (pseudo-border). Only applies to supervisor.
* *
* @throws PhpSpreadsheetException
*
* @return Border * @return Border
*/ */
public function getHorizontal() public function getHorizontal()

View File

@ -2,8 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Style; namespace PhpOffice\PhpSpreadsheet\Style;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
class Color extends Supervisor class Color extends Supervisor
{ {
const NAMED_COLORS = [ const NAMED_COLORS = [
@ -104,8 +102,6 @@ class Color extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)

View File

@ -2,8 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Style; namespace PhpOffice\PhpSpreadsheet\Style;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
class Fill extends Supervisor class Fill extends Supervisor
{ {
// Fill types // Fill types
@ -139,8 +137,6 @@ class Fill extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)
@ -250,8 +246,6 @@ class Fill extends Supervisor
* *
* @param Color $pValue * @param Color $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setStartColor(Color $pValue) public function setStartColor(Color $pValue)
@ -284,8 +278,6 @@ class Fill extends Supervisor
* *
* @param Color $pValue * @param Color $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setEndColor(Color $pValue) public function setEndColor(Color $pValue)

View File

@ -2,8 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Style; namespace PhpOffice\PhpSpreadsheet\Style;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
class Font extends Supervisor class Font extends Supervisor
{ {
// Underline types // Underline types
@ -159,8 +157,6 @@ class Font extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)
@ -510,8 +506,6 @@ class Font extends Supervisor
* *
* @param Color $pValue * @param Color $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setColor(Color $pValue) public function setColor(Color $pValue)

View File

@ -3,7 +3,6 @@
namespace PhpOffice\PhpSpreadsheet\Style; namespace PhpOffice\PhpSpreadsheet\Style;
use PhpOffice\PhpSpreadsheet\Calculation\MathTrig; use PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
use PhpOffice\PhpSpreadsheet\Shared\Date; use PhpOffice\PhpSpreadsheet\Shared\Date;
use PhpOffice\PhpSpreadsheet\Shared\StringHelper; use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
@ -137,8 +136,6 @@ class NumberFormat extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)

View File

@ -2,8 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Style; namespace PhpOffice\PhpSpreadsheet\Style;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
class Protection extends Supervisor class Protection extends Supervisor
{ {
/** Protection styles */ /** Protection styles */
@ -84,8 +82,6 @@ class Protection extends Supervisor
* *
* @param array $pStyles Array containing style information * @param array $pStyles Array containing style information
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function applyFromArray(array $pStyles) public function applyFromArray(array $pStyles)

View File

@ -83,8 +83,6 @@ class AutoFilter
* *
* @param string $pRange Cell range (i.e. A1:E10) * @param string $pRange Cell range (i.e. A1:E10)
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setRange($pRange) public function setRange($pRange)
@ -132,8 +130,6 @@ class AutoFilter
* *
* @param string $column Column name (e.g. A) * @param string $column Column name (e.g. A)
* *
* @throws PhpSpreadsheetException
*
* @return int The column offset within the autofilter range * @return int The column offset within the autofilter range
*/ */
public function testColumnInRange($column) public function testColumnInRange($column)
@ -156,8 +152,6 @@ class AutoFilter
* *
* @param string $pColumn Column name (e.g. A) * @param string $pColumn Column name (e.g. A)
* *
* @throws PhpSpreadsheetException
*
* @return int The offset of the specified column within the autofilter range * @return int The offset of the specified column within the autofilter range
*/ */
public function getColumnOffset($pColumn) public function getColumnOffset($pColumn)
@ -170,8 +164,6 @@ class AutoFilter
* *
* @param string $pColumn Column name (e.g. A) * @param string $pColumn Column name (e.g. A)
* *
* @throws PhpSpreadsheetException
*
* @return AutoFilter\Column * @return AutoFilter\Column
*/ */
public function getColumn($pColumn) public function getColumn($pColumn)
@ -190,8 +182,6 @@ class AutoFilter
* *
* @param int $pColumnOffset Column offset within range (starting from 0) * @param int $pColumnOffset Column offset within range (starting from 0)
* *
* @throws PhpSpreadsheetException
*
* @return AutoFilter\Column * @return AutoFilter\Column
*/ */
public function getColumnByOffset($pColumnOffset) public function getColumnByOffset($pColumnOffset)
@ -208,8 +198,6 @@ class AutoFilter
* @param AutoFilter\Column|string $pColumn * @param AutoFilter\Column|string $pColumn
* A simple string containing a Column ID like 'A' is permitted * A simple string containing a Column ID like 'A' is permitted
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setColumn($pColumn) public function setColumn($pColumn)
@ -239,8 +227,6 @@ class AutoFilter
* *
* @param string $pColumn Column name (e.g. A) * @param string $pColumn Column name (e.g. A)
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function clearColumn($pColumn) public function clearColumn($pColumn)
@ -615,8 +601,6 @@ class AutoFilter
/** /**
* Apply the AutoFilter rules to the AutoFilter Range. * Apply the AutoFilter rules to the AutoFilter Range.
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function showHideRows() public function showHideRows()

View File

@ -115,8 +115,6 @@ class Column
* *
* @param string $pColumn Column (e.g. A) * @param string $pColumn Column (e.g. A)
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setColumnIndex($pColumn) public function setColumnIndex($pColumn)
@ -171,8 +169,6 @@ class Column
* *
* @param string $pFilterType * @param string $pFilterType
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setFilterType($pFilterType) public function setFilterType($pFilterType)
@ -201,8 +197,6 @@ class Column
* *
* @param string $pJoin And/Or * @param string $pJoin And/Or
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setJoin($pJoin) public function setJoin($pJoin)

View File

@ -260,8 +260,6 @@ class Rule
* *
* @param string $pRuleType see self::AUTOFILTER_RULETYPE_* * @param string $pRuleType see self::AUTOFILTER_RULETYPE_*
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setRuleType($pRuleType) public function setRuleType($pRuleType)
@ -290,8 +288,6 @@ class Rule
* *
* @param string|string[] $pValue * @param string|string[] $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setValue($pValue) public function setValue($pValue)
@ -334,8 +330,6 @@ class Rule
* *
* @param string $pOperator see self::AUTOFILTER_COLUMN_RULE_* * @param string $pOperator see self::AUTOFILTER_COLUMN_RULE_*
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setOperator($pOperator) public function setOperator($pOperator)
@ -367,8 +361,6 @@ class Rule
* *
* @param string $pGrouping * @param string $pGrouping
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setGrouping($pGrouping) public function setGrouping($pGrouping)
@ -391,8 +383,6 @@ class Rule
* @param string|string[] $pValue * @param string|string[] $pValue
* @param string $pGrouping * @param string $pGrouping
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setRule($pOperator, $pValue, $pGrouping = null) public function setRule($pOperator, $pValue, $pGrouping = null)

View File

@ -203,8 +203,6 @@ class BaseDrawing implements IComparable
* @param Worksheet $pValue * @param Worksheet $pValue
* @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet? * @param bool $pOverrideOld If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setWorksheet(Worksheet $pValue = null, $pOverrideOld = false) public function setWorksheet(Worksheet $pValue = null, $pOverrideOld = false)

View File

@ -2,8 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Worksheet; namespace PhpOffice\PhpSpreadsheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
abstract class CellIterator implements \Iterator abstract class CellIterator implements \Iterator
{ {
/** /**
@ -40,8 +38,6 @@ abstract class CellIterator implements \Iterator
/** /**
* Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary. * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary.
*
* @throws PhpSpreadsheetException
*/ */
abstract protected function adjustForExistingOnlyRange(); abstract protected function adjustForExistingOnlyRange();
@ -49,8 +45,6 @@ abstract class CellIterator implements \Iterator
* Set the iterator to loop only existing cells. * Set the iterator to loop only existing cells.
* *
* @param bool $value * @param bool $value
*
* @throws PhpSpreadsheetException
*/ */
public function setIterateOnlyExistingCells($value) public function setIterateOnlyExistingCells($value)
{ {

View File

@ -57,8 +57,6 @@ class ColumnCellIterator extends CellIterator
* *
* @param int $startRow The row number at which to start iterating * @param int $startRow The row number at which to start iterating
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function resetStart($startRow = 1) public function resetStart($startRow = 1)
@ -75,8 +73,6 @@ class ColumnCellIterator extends CellIterator
* *
* @param int $endRow The row number at which to stop iterating * @param int $endRow The row number at which to stop iterating
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function resetEnd($endRow = null) public function resetEnd($endRow = null)
@ -92,8 +88,6 @@ class ColumnCellIterator extends CellIterator
* *
* @param int $row The row number to set the current pointer at * @param int $row The row number to set the current pointer at
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function seek($row = 1) public function seek($row = 1)
@ -172,8 +166,6 @@ class ColumnCellIterator extends CellIterator
/** /**
* Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary. * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary.
*
* @throws PhpSpreadsheetException
*/ */
protected function adjustForExistingOnlyRange() protected function adjustForExistingOnlyRange()
{ {

View File

@ -64,8 +64,6 @@ class ColumnIterator implements \Iterator
* *
* @param string $startColumn The column address at which to start iterating * @param string $startColumn The column address at which to start iterating
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function resetStart($startColumn = 'A') public function resetStart($startColumn = 'A')
@ -104,8 +102,6 @@ class ColumnIterator implements \Iterator
* *
* @param string $column The column address to set the current pointer at * @param string $column The column address to set the current pointer at
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function seek($column = 'A') public function seek($column = 'A')

View File

@ -85,8 +85,6 @@ abstract class Dimension
* *
* @param int $pValue * @param int $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setOutlineLevel($pValue) public function setOutlineLevel($pValue)

View File

@ -76,8 +76,6 @@ class Drawing extends BaseDrawing
* @param string $pValue File path * @param string $pValue File path
* @param bool $pVerifyFile Verify file * @param bool $pVerifyFile Verify file
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setPath($pValue, $pVerifyFile = true) public function setPath($pValue, $pVerifyFile = true)

View File

@ -323,8 +323,6 @@ class PageSetup
* @param null|int $pValue * @param null|int $pValue
* @param bool $pUpdate Update fitToPage so scaling applies rather than fitToHeight / fitToWidth * @param bool $pUpdate Update fitToPage so scaling applies rather than fitToHeight / fitToWidth
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setScale($pValue, $pUpdate = true) public function setScale($pValue, $pUpdate = true)
@ -589,8 +587,6 @@ class PageSetup
* Otherwise, the specific range identified by the value of $index will be returned * Otherwise, the specific range identified by the value of $index will be returned
* Print areas are numbered from 1 * Print areas are numbered from 1
* *
* @throws PhpSpreadsheetException
*
* @return string * @return string
*/ */
public function getPrintArea($index = 0) public function getPrintArea($index = 0)
@ -669,8 +665,6 @@ class PageSetup
* Default behaviour, or the "O" method, overwrites existing print area * Default behaviour, or the "O" method, overwrites existing print area
* The "I" method, inserts the new print area before any specified index, or at the end of the list * The "I" method, inserts the new print area before any specified index, or at the end of the list
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) public function setPrintArea($value, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE)
@ -730,8 +724,6 @@ class PageSetup
* list. * list.
* Print areas are numbered from 1 * Print areas are numbered from 1
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function addPrintArea($value, $index = -1) public function addPrintArea($value, $index = -1)
@ -760,8 +752,6 @@ class PageSetup
* Default behaviour, or the "O" method, overwrites existing print area * Default behaviour, or the "O" method, overwrites existing print area
* The "I" method, inserts the new print area before any specified index, or at the end of the list * The "I" method, inserts the new print area before any specified index, or at the end of the list
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE) public function setPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = 0, $method = self::SETPRINTRANGE_OVERWRITE)
@ -787,8 +777,6 @@ class PageSetup
* list. * list.
* Print areas are numbered from 1 * Print areas are numbered from 1
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1) public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1)

View File

@ -57,8 +57,6 @@ class RowCellIterator extends CellIterator
* *
* @param string $startColumn The column address at which to start iterating * @param string $startColumn The column address at which to start iterating
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function resetStart($startColumn = 'A') public function resetStart($startColumn = 'A')
@ -75,8 +73,6 @@ class RowCellIterator extends CellIterator
* *
* @param string $endColumn The column address at which to stop iterating * @param string $endColumn The column address at which to stop iterating
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function resetEnd($endColumn = null) public function resetEnd($endColumn = null)
@ -93,8 +89,6 @@ class RowCellIterator extends CellIterator
* *
* @param string $column The column address to set the current pointer at * @param string $column The column address to set the current pointer at
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function seek($column = 'A') public function seek($column = 'A')
@ -150,8 +144,6 @@ class RowCellIterator extends CellIterator
/** /**
* Set the iterator to its previous value. * Set the iterator to its previous value.
*
* @throws PhpSpreadsheetException
*/ */
public function prev() public function prev()
{ {
@ -182,8 +174,6 @@ class RowCellIterator extends CellIterator
/** /**
* Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary. * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary.
*
* @throws PhpSpreadsheetException
*/ */
protected function adjustForExistingOnlyRange() protected function adjustForExistingOnlyRange()
{ {

View File

@ -62,8 +62,6 @@ class RowIterator implements \Iterator
* *
* @param int $startRow The row number at which to start iterating * @param int $startRow The row number at which to start iterating
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function resetStart($startRow = 1) public function resetStart($startRow = 1)
@ -100,8 +98,6 @@ class RowIterator implements \Iterator
* *
* @param int $row The row number to set the current pointer at * @param int $row The row number to set the current pointer at
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function seek($row = 1) public function seek($row = 1)

View File

@ -77,8 +77,6 @@ class SheetView
* *
* @param int $pValue * @param int $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setZoomScale($pValue) public function setZoomScale($pValue)
@ -110,8 +108,6 @@ class SheetView
* *
* @param int $pValue * @param int $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setZoomScaleNormal($pValue) public function setZoomScaleNormal($pValue)
@ -163,8 +159,6 @@ class SheetView
* *
* @param string $pValue * @param string $pValue
* *
* @throws PhpSpreadsheetException
*
* @return $this * @return $this
*/ */
public function setView($pValue) public function setView($pValue)

View File

@ -424,8 +424,6 @@ class Worksheet implements IComparable
* *
* @param string $pValue The string to check * @param string $pValue The string to check
* *
* @throws Exception
*
* @return string The valid string * @return string The valid string
*/ */
private static function checkSheetCodeName($pValue) private static function checkSheetCodeName($pValue)
@ -454,8 +452,6 @@ class Worksheet implements IComparable
* *
* @param string $pValue The string to check * @param string $pValue The string to check
* *
* @throws Exception
*
* @return string The valid string * @return string The valid string
*/ */
private static function checkSheetTitle($pValue) private static function checkSheetTitle($pValue)
@ -1185,8 +1181,6 @@ class Worksheet implements IComparable
* @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't
* already exist, or a null should be returned instead * already exist, or a null should be returned instead
* *
* @throws Exception
*
* @return null|Cell Cell that was found/created or null * @return null|Cell Cell that was found/created or null
*/ */
public function getCell($pCoordinate, $createIfNotExists = true) public function getCell($pCoordinate, $createIfNotExists = true)
@ -1293,8 +1287,6 @@ class Worksheet implements IComparable
* *
* @param string $pCoordinate Coordinate of the cell eg: 'A1' * @param string $pCoordinate Coordinate of the cell eg: 'A1'
* *
* @throws Exception
*
* @return bool * @return bool
*/ */
public function cellExists($pCoordinate) public function cellExists($pCoordinate)
@ -1431,8 +1423,6 @@ class Worksheet implements IComparable
* *
* @param string $pCellCoordinate Cell coordinate (or range) to get style for, eg: 'A1' * @param string $pCellCoordinate Cell coordinate (or range) to get style for, eg: 'A1'
* *
* @throws Exception
*
* @return Style * @return Style
*/ */
public function getStyle($pCellCoordinate) public function getStyle($pCellCoordinate)
@ -1543,8 +1533,6 @@ class Worksheet implements IComparable
* @param Style $pCellStyle Cell style to duplicate * @param Style $pCellStyle Cell style to duplicate
* @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function duplicateStyle(Style $pCellStyle, $pRange) public function duplicateStyle(Style $pCellStyle, $pRange)
@ -1588,8 +1576,6 @@ class Worksheet implements IComparable
* @param Conditional[] $pCellStyle Cell style to duplicate * @param Conditional[] $pCellStyle Cell style to duplicate
* @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1")
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function duplicateConditionalStyle(array $pCellStyle, $pRange = '') public function duplicateConditionalStyle(array $pCellStyle, $pRange = '')
@ -1626,8 +1612,6 @@ class Worksheet implements IComparable
* @param string $pCoordinate Cell coordinate (e.g. A1) * @param string $pCoordinate Cell coordinate (e.g. A1)
* @param int $pBreak Break type (type of Worksheet::BREAK_*) * @param int $pBreak Break type (type of Worksheet::BREAK_*)
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setBreak($pCoordinate, $pBreak) public function setBreak($pCoordinate, $pBreak)
@ -1679,8 +1663,6 @@ class Worksheet implements IComparable
* *
* @param string $pRange Cell range (e.g. A1:E1) * @param string $pRange Cell range (e.g. A1:E1)
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function mergeCells($pRange) public function mergeCells($pRange)
@ -1724,8 +1706,6 @@ class Worksheet implements IComparable
* @param int $columnIndex2 Numeric column coordinate of the last cell * @param int $columnIndex2 Numeric column coordinate of the last cell
* @param int $row2 Numeric row coordinate of the last cell * @param int $row2 Numeric row coordinate of the last cell
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function mergeCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2) public function mergeCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2)
@ -1740,8 +1720,6 @@ class Worksheet implements IComparable
* *
* @param string $pRange Cell range (e.g. A1:E1) * @param string $pRange Cell range (e.g. A1:E1)
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function unmergeCells($pRange) public function unmergeCells($pRange)
@ -1770,8 +1748,6 @@ class Worksheet implements IComparable
* @param int $columnIndex2 Numeric column coordinate of the last cell * @param int $columnIndex2 Numeric column coordinate of the last cell
* @param int $row2 Numeric row coordinate of the last cell * @param int $row2 Numeric row coordinate of the last cell
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function unmergeCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2) public function unmergeCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2)
@ -1852,8 +1828,6 @@ class Worksheet implements IComparable
* *
* @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1) * @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1)
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function unprotectCells($pRange) public function unprotectCells($pRange)
@ -1878,8 +1852,6 @@ class Worksheet implements IComparable
* @param int $columnIndex2 Numeric column coordinate of the last cell * @param int $columnIndex2 Numeric column coordinate of the last cell
* @param int $row2 Numeric row coordinate of the last cell * @param int $row2 Numeric row coordinate of the last cell
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function unprotectCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2) public function unprotectCellsByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2)
@ -1915,8 +1887,6 @@ class Worksheet implements IComparable
* @param AutoFilter|string $pValue * @param AutoFilter|string $pValue
* A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setAutoFilter($pValue) public function setAutoFilter($pValue)
@ -1938,8 +1908,6 @@ class Worksheet implements IComparable
* @param int $columnIndex2 Numeric column coordinate of the second cell * @param int $columnIndex2 Numeric column coordinate of the second cell
* @param int $row2 Numeric row coordinate of the second cell * @param int $row2 Numeric row coordinate of the second cell
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setAutoFilterByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2) public function setAutoFilterByColumnAndRow($columnIndex1, $row1, $columnIndex2, $row2)
@ -1985,8 +1953,6 @@ class Worksheet implements IComparable
* @param null|string $cell Position of the split * @param null|string $cell Position of the split
* @param null|string $topLeftCell default position of the right bottom pane * @param null|string $topLeftCell default position of the right bottom pane
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function freezePane($cell, $topLeftCell = null) public function freezePane($cell, $topLeftCell = null)
@ -2045,8 +2011,6 @@ class Worksheet implements IComparable
* @param int $pBefore Insert before this one * @param int $pBefore Insert before this one
* @param int $pNumRows Number of rows to insert * @param int $pNumRows Number of rows to insert
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function insertNewRowBefore($pBefore, $pNumRows = 1) public function insertNewRowBefore($pBefore, $pNumRows = 1)
@ -2067,8 +2031,6 @@ class Worksheet implements IComparable
* @param string $pBefore Insert before this one, eg: 'A' * @param string $pBefore Insert before this one, eg: 'A'
* @param int $pNumCols Number of columns to insert * @param int $pNumCols Number of columns to insert
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function insertNewColumnBefore($pBefore, $pNumCols = 1) public function insertNewColumnBefore($pBefore, $pNumCols = 1)
@ -2089,8 +2051,6 @@ class Worksheet implements IComparable
* @param int $beforeColumnIndex Insert before this one (numeric column coordinate of the cell) * @param int $beforeColumnIndex Insert before this one (numeric column coordinate of the cell)
* @param int $pNumCols Number of columns to insert * @param int $pNumCols Number of columns to insert
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function insertNewColumnBeforeByIndex($beforeColumnIndex, $pNumCols = 1) public function insertNewColumnBeforeByIndex($beforeColumnIndex, $pNumCols = 1)
@ -2108,8 +2068,6 @@ class Worksheet implements IComparable
* @param int $pRow Remove starting with this one * @param int $pRow Remove starting with this one
* @param int $pNumRows Number of rows to remove * @param int $pNumRows Number of rows to remove
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function removeRow($pRow, $pNumRows = 1) public function removeRow($pRow, $pNumRows = 1)
@ -2144,8 +2102,6 @@ class Worksheet implements IComparable
* @param string $pColumn Remove starting with this one, eg: 'A' * @param string $pColumn Remove starting with this one, eg: 'A'
* @param int $pNumCols Number of columns to remove * @param int $pNumCols Number of columns to remove
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function removeColumn($pColumn, $pNumCols = 1) public function removeColumn($pColumn, $pNumCols = 1)
@ -2184,8 +2140,6 @@ class Worksheet implements IComparable
* @param int $columnIndex Remove starting with this one (numeric column coordinate of the cell) * @param int $columnIndex Remove starting with this one (numeric column coordinate of the cell)
* @param int $numColumns Number of columns to remove * @param int $numColumns Number of columns to remove
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function removeColumnByIndex($columnIndex, $numColumns = 1) public function removeColumnByIndex($columnIndex, $numColumns = 1)
@ -2346,8 +2300,6 @@ class Worksheet implements IComparable
* *
* @param string $pCellCoordinate Cell coordinate to get comment for, eg: 'A1' * @param string $pCellCoordinate Cell coordinate to get comment for, eg: 'A1'
* *
* @throws Exception
*
* @return Comment * @return Comment
*/ */
public function getComment($pCellCoordinate) public function getComment($pCellCoordinate)
@ -2461,8 +2413,6 @@ class Worksheet implements IComparable
* @param int $columnIndex Numeric column coordinate of the cell * @param int $columnIndex Numeric column coordinate of the cell
* @param int $row Numeric row coordinate of the cell * @param int $row Numeric row coordinate of the cell
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setSelectedCellByColumnAndRow($columnIndex, $row) public function setSelectedCellByColumnAndRow($columnIndex, $row)
@ -2502,8 +2452,6 @@ class Worksheet implements IComparable
* @param string $startCell Insert array starting from this cell address as the top left coordinate * @param string $startCell Insert array starting from this cell address as the top left coordinate
* @param bool $strictNullComparison Apply strict comparison when testing for null values in the array * @param bool $strictNullComparison Apply strict comparison when testing for null values in the array
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function fromArray(array $source, $nullValue = null, $startCell = 'A1', $strictNullComparison = false) public function fromArray(array $source, $nullValue = null, $startCell = 'A1', $strictNullComparison = false)
@ -2619,8 +2567,6 @@ class Worksheet implements IComparable
* @param bool $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero * @param bool $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero
* True - Return rows and columns indexed by their actual row and column IDs * True - Return rows and columns indexed by their actual row and column IDs
* *
* @throws Exception
*
* @return array * @return array
*/ */
public function namedRangeToArray($pNamedRange, $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) public function namedRangeToArray($pNamedRange, $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false)
@ -3010,8 +2956,6 @@ class Worksheet implements IComparable
* @param bool $validate False to skip validation of new title. WARNING: This should only be set * @param bool $validate False to skip validation of new title. WARNING: This should only be set
* at parse time (by Readers), where titles can be assumed to be valid. * at parse time (by Readers), where titles can be assumed to be valid.
* *
* @throws Exception
*
* @return $this * @return $this
*/ */
public function setCodeName($pValue, $validate = true) public function setCodeName($pValue, $validate = true)

View File

@ -79,8 +79,6 @@ class Csv extends BaseWriter
* Save PhpSpreadsheet to file. * Save PhpSpreadsheet to file.
* *
* @param resource|string $pFilename * @param resource|string $pFilename
*
* @throws Exception
*/ */
public function save($pFilename) public function save($pFilename)
{ {

View File

@ -23,7 +23,6 @@ use PhpOffice\PhpSpreadsheet\Style\Style;
use PhpOffice\PhpSpreadsheet\Worksheet\Drawing; use PhpOffice\PhpSpreadsheet\Worksheet\Drawing;
use PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing; use PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Writer\Exception as WriterException;
class Html extends BaseWriter class Html extends BaseWriter
{ {
@ -147,8 +146,6 @@ class Html extends BaseWriter
* Save Spreadsheet to file. * Save Spreadsheet to file.
* *
* @param resource|string $pFilename * @param resource|string $pFilename
*
* @throws WriterException
*/ */
public function save($pFilename) public function save($pFilename)
{ {
@ -343,8 +340,6 @@ class Html extends BaseWriter
* *
* @param bool $pIncludeStyles Include styles? * @param bool $pIncludeStyles Include styles?
* *
* @throws WriterException
*
* @return string * @return string
*/ */
public function generateHTMLHeader($pIncludeStyles = false) public function generateHTMLHeader($pIncludeStyles = false)
@ -398,8 +393,6 @@ class Html extends BaseWriter
/** /**
* Generate sheet data. * Generate sheet data.
* *
* @throws WriterException
*
* @return string * @return string
*/ */
public function generateSheetData() public function generateSheetData()
@ -514,8 +507,6 @@ class Html extends BaseWriter
/** /**
* Generate sheet tabs. * Generate sheet tabs.
* *
* @throws WriterException
*
* @return string * @return string
*/ */
public function generateNavigation() public function generateNavigation()
@ -743,8 +734,6 @@ class Html extends BaseWriter
* *
* @param bool $generateSurroundingHTML Generate surrounding HTML tags? (<style> and </style>) * @param bool $generateSurroundingHTML Generate surrounding HTML tags? (<style> and </style>)
* *
* @throws WriterException
*
* @return string * @return string
*/ */
public function generateStyles($generateSurroundingHTML = true) public function generateStyles($generateSurroundingHTML = true)
@ -782,8 +771,6 @@ class Html extends BaseWriter
* *
* @param bool $generateSurroundingHTML Generate surrounding HTML style? (html { }) * @param bool $generateSurroundingHTML Generate surrounding HTML style? (html { })
* *
* @throws WriterException
*
* @return array * @return array
*/ */
public function buildCSS($generateSurroundingHTML = true) public function buildCSS($generateSurroundingHTML = true)
@ -1158,8 +1145,6 @@ class Html extends BaseWriter
* @param int $pRow Row number (0-based) * @param int $pRow Row number (0-based)
* @param string $cellType eg: 'td' * @param string $cellType eg: 'td'
* *
* @throws WriterException
*
* @return string * @return string
*/ */
private function generateRow(Worksheet $pSheet, array $pValues, $pRow, $cellType) private function generateRow(Worksheet $pSheet, array $pValues, $pRow, $cellType)

View File

@ -60,8 +60,6 @@ interface IWriter
* Save PhpSpreadsheet to file. * Save PhpSpreadsheet to file.
* *
* @param resource|string $pFilename Name of the file to save * @param resource|string $pFilename Name of the file to save
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
public function save($pFilename); public function save($pFilename);
@ -78,8 +76,6 @@ interface IWriter
* @param bool $pValue * @param bool $pValue
* @param string $pDirectory Disk caching directory * @param string $pDirectory Disk caching directory
* *
* @throws Exception when directory does not exist
*
* @return IWriter * @return IWriter
*/ */
public function setUseDiskCaching($pValue, $pDirectory = null); public function setUseDiskCaching($pValue, $pDirectory = null);

View File

@ -76,8 +76,6 @@ class Ods extends BaseWriter
* Save PhpSpreadsheet to file. * Save PhpSpreadsheet to file.
* *
* @param resource|string $pFilename * @param resource|string $pFilename
*
* @throws WriterException
*/ */
public function save($pFilename) public function save($pFilename)
{ {
@ -113,8 +111,6 @@ class Ods extends BaseWriter
/** /**
* Create zip object. * Create zip object.
* *
* @throws WriterException
*
* @return ZipStream * @return ZipStream
*/ */
private function createZip() private function createZip()
@ -135,8 +131,6 @@ class Ods extends BaseWriter
/** /**
* Get Spreadsheet object. * Get Spreadsheet object.
* *
* @throws WriterException
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function getSpreadsheet() public function getSpreadsheet()

View File

@ -32,8 +32,6 @@ class Content extends WriterPart
/** /**
* Write content.xml to XML format. * Write content.xml to XML format.
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function write() public function write()
@ -169,8 +167,6 @@ class Content extends WriterPart
* *
* @param XMLWriter $objWriter * @param XMLWriter $objWriter
* @param Row $row * @param Row $row
*
* @throws Exception
*/ */
private function writeCells(XMLWriter $objWriter, Row $row) private function writeCells(XMLWriter $objWriter, Row $row)
{ {
@ -373,8 +369,6 @@ class Content extends WriterPart
* *
* @param XMLWriter $objWriter * @param XMLWriter $objWriter
* @param Cell $cell * @param Cell $cell
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/ */
private function writeCellMerge(XMLWriter $objWriter, Cell $cell) private function writeCellMerge(XMLWriter $objWriter, Cell $cell)
{ {

View File

@ -12,8 +12,6 @@ class Meta extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function write(Spreadsheet $spreadsheet = null) public function write(Spreadsheet $spreadsheet = null)

View File

@ -9,8 +9,6 @@ class MetaInf extends WriterPart
/** /**
* Write META-INF/manifest.xml to XML format. * Write META-INF/manifest.xml to XML format.
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeManifest() public function writeManifest()

View File

@ -12,8 +12,6 @@ class Settings extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function write(Spreadsheet $spreadsheet = null) public function write(Spreadsheet $spreadsheet = null)

View File

@ -12,8 +12,6 @@ class Styles extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function write(Spreadsheet $spreadsheet = null) public function write(Spreadsheet $spreadsheet = null)

View File

@ -222,8 +222,6 @@ abstract class Pdf extends Html
* *
* @param string $pValue Temporary storage directory * @param string $pValue Temporary storage directory
* *
* @throws WriterException when directory does not exist
*
* @return self * @return self
*/ */
public function setTempDir($pValue) public function setTempDir($pValue)
@ -242,8 +240,6 @@ abstract class Pdf extends Html
* *
* @param string $pFilename Name of the file to save as * @param string $pFilename Name of the file to save as
* *
* @throws WriterException
*
* @return resource * @return resource
*/ */
protected function prepareForSave($pFilename) protected function prepareForSave($pFilename)

View File

@ -21,8 +21,6 @@ class Dompdf extends Pdf
* Save Spreadsheet to file. * Save Spreadsheet to file.
* *
* @param string $pFilename Name of the file to save as * @param string $pFilename Name of the file to save as
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
public function save($pFilename) public function save($pFilename)
{ {

View File

@ -2,7 +2,6 @@
namespace PhpOffice\PhpSpreadsheet\Writer\Pdf; namespace PhpOffice\PhpSpreadsheet\Writer\Pdf;
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
use PhpOffice\PhpSpreadsheet\Worksheet\PageSetup; use PhpOffice\PhpSpreadsheet\Worksheet\PageSetup;
use PhpOffice\PhpSpreadsheet\Writer\Pdf; use PhpOffice\PhpSpreadsheet\Writer\Pdf;
@ -24,9 +23,6 @@ class Mpdf extends Pdf
* Save Spreadsheet to file. * Save Spreadsheet to file.
* *
* @param string $pFilename Name of the file to save as * @param string $pFilename Name of the file to save as
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
* @throws PhpSpreadsheetException
*/ */
public function save($pFilename) public function save($pFilename)
{ {

View File

@ -25,8 +25,6 @@ class Tcpdf extends Pdf
* Save Spreadsheet to file. * Save Spreadsheet to file.
* *
* @param string $pFilename Name of the file to save as * @param string $pFilename Name of the file to save as
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
public function save($pFilename) public function save($pFilename)
{ {

View File

@ -116,8 +116,6 @@ class Xls extends BaseWriter
* Save Spreadsheet to file. * Save Spreadsheet to file.
* *
* @param resource|string $pFilename * @param resource|string $pFilename
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
public function save($pFilename) public function save($pFilename)
{ {

View File

@ -170,8 +170,6 @@ class Xlsx extends BaseWriter
* Save PhpSpreadsheet to file. * Save PhpSpreadsheet to file.
* *
* @param resource|string $pFilename * @param resource|string $pFilename
*
* @throws WriterException
*/ */
public function save($pFilename) public function save($pFilename)
{ {
@ -411,8 +409,6 @@ class Xlsx extends BaseWriter
/** /**
* Get Spreadsheet object. * Get Spreadsheet object.
* *
* @throws WriterException
*
* @return Spreadsheet * @return Spreadsheet
*/ */
public function getSpreadsheet() public function getSpreadsheet()

View File

@ -29,8 +29,6 @@ class Chart extends WriterPart
* @param \PhpOffice\PhpSpreadsheet\Chart\Chart $pChart * @param \PhpOffice\PhpSpreadsheet\Chart\Chart $pChart
* @param mixed $calculateCellValues * @param mixed $calculateCellValues
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeChart(\PhpOffice\PhpSpreadsheet\Chart\Chart $pChart, $calculateCellValues = true) public function writeChart(\PhpOffice\PhpSpreadsheet\Chart\Chart $pChart, $calculateCellValues = true)
@ -109,8 +107,6 @@ class Chart extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param Title $title * @param Title $title
*
* @throws WriterException
*/ */
private function writeTitle(XMLWriter $objWriter, Title $title = null) private function writeTitle(XMLWriter $objWriter, Title $title = null)
{ {
@ -154,8 +150,6 @@ class Chart extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param Legend $legend * @param Legend $legend
*
* @throws WriterException
*/ */
private function writeLegend(XMLWriter $objWriter, Legend $legend = null) private function writeLegend(XMLWriter $objWriter, Legend $legend = null)
{ {
@ -212,8 +206,6 @@ class Chart extends WriterPart
* @param Axis $yAxis * @param Axis $yAxis
* @param null|GridLines $majorGridlines * @param null|GridLines $majorGridlines
* @param null|GridLines $minorGridlines * @param null|GridLines $minorGridlines
*
* @throws WriterException
*/ */
private function writePlotArea(XMLWriter $objWriter, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet, PlotArea $plotArea, Title $xAxisLabel = null, Title $yAxisLabel = null, Axis $xAxis = null, Axis $yAxis = null, GridLines $majorGridlines = null, GridLines $minorGridlines = null) private function writePlotArea(XMLWriter $objWriter, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet, PlotArea $plotArea, Title $xAxisLabel = null, Title $yAxisLabel = null, Axis $xAxis = null, Axis $yAxis = null, GridLines $majorGridlines = null, GridLines $minorGridlines = null)
{ {
@ -395,8 +387,6 @@ class Chart extends WriterPart
* @param string $id2 * @param string $id2
* @param bool $isMultiLevelSeries * @param bool $isMultiLevelSeries
* @param Axis $yAxis * @param Axis $yAxis
*
* @throws WriterException
*/ */
private function writeCategoryAxis($objWriter, $xAxisLabel, $id1, $id2, $isMultiLevelSeries, Axis $yAxis) private function writeCategoryAxis($objWriter, $xAxisLabel, $id1, $id2, $isMultiLevelSeries, Axis $yAxis)
{ {
@ -518,8 +508,6 @@ class Chart extends WriterPart
* @param Axis $xAxis * @param Axis $xAxis
* @param GridLines $majorGridlines * @param GridLines $majorGridlines
* @param GridLines $minorGridlines * @param GridLines $minorGridlines
*
* @throws WriterException
*/ */
private function writeValueAxis($objWriter, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, Axis $xAxis, GridLines $majorGridlines, GridLines $minorGridlines) private function writeValueAxis($objWriter, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, Axis $xAxis, GridLines $majorGridlines, GridLines $minorGridlines)
{ {
@ -999,8 +987,6 @@ class Chart extends WriterPart
* *
* @param PlotArea $plotArea * @param PlotArea $plotArea
* *
* @throws WriterException
*
* @return array|string * @return array|string
*/ */
private static function getChartType($plotArea) private static function getChartType($plotArea)
@ -1064,8 +1050,6 @@ class Chart extends WriterPart
* @param bool &$catIsMultiLevelSeries Is category a multi-series category * @param bool &$catIsMultiLevelSeries Is category a multi-series category
* @param bool &$valIsMultiLevelSeries Is value set a multi-series set * @param bool &$valIsMultiLevelSeries Is value set a multi-series set
* @param string &$plotGroupingType Type of grouping for multi-series values * @param string &$plotGroupingType Type of grouping for multi-series values
*
* @throws WriterException
*/ */
private function writePlotGroup($plotGroup, $groupType, $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType) private function writePlotGroup($plotGroup, $groupType, $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType)
{ {

View File

@ -13,8 +13,6 @@ class Comments extends WriterPart
* *
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeComments(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet) public function writeComments(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet)
@ -73,8 +71,6 @@ class Comments extends WriterPart
* @param string $pCellReference Cell reference * @param string $pCellReference Cell reference
* @param Comment $pComment Comment * @param Comment $pComment Comment
* @param array $pAuthors Array of authors * @param array $pAuthors Array of authors
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
private function writeComment(XMLWriter $objWriter, $pCellReference, Comment $pComment, array $pAuthors) private function writeComment(XMLWriter $objWriter, $pCellReference, Comment $pComment, array $pAuthors)
{ {
@ -96,8 +92,6 @@ class Comments extends WriterPart
* *
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeVMLComments(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet) public function writeVMLComments(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet)

View File

@ -16,8 +16,6 @@ class ContentTypes extends WriterPart
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* @param bool $includeCharts Flag indicating if we should include drawing details for charts * @param bool $includeCharts Flag indicating if we should include drawing details for charts
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeContentTypes(Spreadsheet $spreadsheet, $includeCharts = false) public function writeContentTypes(Spreadsheet $spreadsheet, $includeCharts = false)
@ -188,8 +186,6 @@ class ContentTypes extends WriterPart
* *
* @param string $pFile Filename * @param string $pFile Filename
* *
* @throws WriterException
*
* @return string Mime Type * @return string Mime Type
*/ */
private function getImageMimeType($pFile) private function getImageMimeType($pFile)
@ -209,8 +205,6 @@ class ContentTypes extends WriterPart
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param string $pPartname Part name * @param string $pPartname Part name
* @param string $pContentType Content type * @param string $pContentType Content type
*
* @throws WriterException
*/ */
private function writeDefaultContentType(XMLWriter $objWriter, $pPartname, $pContentType) private function writeDefaultContentType(XMLWriter $objWriter, $pPartname, $pContentType)
{ {
@ -231,8 +225,6 @@ class ContentTypes extends WriterPart
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param string $pPartname Part name * @param string $pPartname Part name
* @param string $pContentType Content type * @param string $pContentType Content type
*
* @throws WriterException
*/ */
private function writeOverrideContentType(XMLWriter $objWriter, $pPartname, $pContentType) private function writeOverrideContentType(XMLWriter $objWriter, $pPartname, $pContentType)
{ {

View File

@ -12,8 +12,6 @@ class DocProps extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeDocPropsApp(Spreadsheet $spreadsheet) public function writeDocPropsApp(Spreadsheet $spreadsheet)
@ -111,8 +109,6 @@ class DocProps extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeDocPropsCore(Spreadsheet $spreadsheet) public function writeDocPropsCore(Spreadsheet $spreadsheet)
@ -180,8 +176,6 @@ class DocProps extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeDocPropsCustom(Spreadsheet $spreadsheet) public function writeDocPropsCustom(Spreadsheet $spreadsheet)

View File

@ -17,8 +17,6 @@ class Drawing extends WriterPart
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
* @param bool $includeCharts Flag indicating if we should include drawing details for charts * @param bool $includeCharts Flag indicating if we should include drawing details for charts
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeDrawings(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, $includeCharts = false) public function writeDrawings(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, $includeCharts = false)
@ -156,8 +154,6 @@ class Drawing extends WriterPart
* @param BaseDrawing $pDrawing * @param BaseDrawing $pDrawing
* @param int $pRelationId * @param int $pRelationId
* @param null|int $hlinkClickId * @param null|int $hlinkClickId
*
* @throws WriterException
*/ */
public function writeDrawing(XMLWriter $objWriter, BaseDrawing $pDrawing, $pRelationId = -1, $hlinkClickId = null) public function writeDrawing(XMLWriter $objWriter, BaseDrawing $pDrawing, $pRelationId = -1, $hlinkClickId = null)
{ {
@ -289,8 +285,6 @@ class Drawing extends WriterPart
* *
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeVMLHeaderFooterImages(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet) public function writeVMLHeaderFooterImages(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet)

View File

@ -14,8 +14,6 @@ class Rels extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeRelationships(Spreadsheet $spreadsheet) public function writeRelationships(Spreadsheet $spreadsheet)
@ -89,8 +87,6 @@ class Rels extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeWorkbookRelationships(Spreadsheet $spreadsheet) public function writeWorkbookRelationships(Spreadsheet $spreadsheet)
@ -172,8 +168,6 @@ class Rels extends WriterPart
* @param int $pWorksheetId * @param int $pWorksheetId
* @param bool $includeCharts Flag indicating if we should write charts * @param bool $includeCharts Flag indicating if we should write charts
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeWorksheetRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, $pWorksheetId = 1, $includeCharts = false) public function writeWorksheetRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, $pWorksheetId = 1, $includeCharts = false)
@ -301,8 +295,6 @@ class Rels extends WriterPart
* @param int &$chartRef Chart ID * @param int &$chartRef Chart ID
* @param bool $includeCharts Flag indicating if we should write charts * @param bool $includeCharts Flag indicating if we should write charts
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, &$chartRef, $includeCharts = false) public function writeDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet, &$chartRef, $includeCharts = false)
@ -370,8 +362,6 @@ class Rels extends WriterPart
* *
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet * @param \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeHeaderFooterDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet) public function writeHeaderFooterDrawingRelationships(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet)
@ -415,8 +405,6 @@ class Rels extends WriterPart
* @param string $pType Relationship type * @param string $pType Relationship type
* @param string $pTarget Relationship target * @param string $pTarget Relationship target
* @param string $pTargetMode Relationship target mode * @param string $pTargetMode Relationship target mode
*
* @throws WriterException
*/ */
private function writeRelationship(XMLWriter $objWriter, $pId, $pType, $pTarget, $pTargetMode = '') private function writeRelationship(XMLWriter $objWriter, $pId, $pType, $pTarget, $pTargetMode = '')
{ {
@ -442,8 +430,6 @@ class Rels extends WriterPart
* @param \PhpOffice\PhpSpreadsheet\Worksheet\Drawing $drawing * @param \PhpOffice\PhpSpreadsheet\Worksheet\Drawing $drawing
* @param $i * @param $i
* *
* @throws WriterException
*
* @return int * @return int
*/ */
private function writeDrawingHyperLink($objWriter, $drawing, $i) private function writeDrawingHyperLink($objWriter, $drawing, $i)

View File

@ -12,8 +12,6 @@ class RelsRibbon extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeRibbonRelationships(Spreadsheet $spreadsheet) public function writeRibbonRelationships(Spreadsheet $spreadsheet)

View File

@ -12,8 +12,6 @@ class RelsVBA extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeVBARelationships(Spreadsheet $spreadsheet) public function writeVBARelationships(Spreadsheet $spreadsheet)

View File

@ -8,7 +8,6 @@ use PhpOffice\PhpSpreadsheet\RichText\Run;
use PhpOffice\PhpSpreadsheet\Shared\StringHelper; use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
use PhpOffice\PhpSpreadsheet\Shared\XMLWriter; use PhpOffice\PhpSpreadsheet\Shared\XMLWriter;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Writer\Exception as WriterException;
class StringTable extends WriterPart class StringTable extends WriterPart
{ {
@ -62,8 +61,6 @@ class StringTable extends WriterPart
* *
* @param string[] $pStringTable * @param string[] $pStringTable
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeStringTable(array $pStringTable) public function writeStringTable(array $pStringTable)

View File

@ -20,8 +20,6 @@ class Style extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeStyles(Spreadsheet $spreadsheet) public function writeStyles(Spreadsheet $spreadsheet)
@ -369,8 +367,6 @@ class Style extends WriterPart
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param \PhpOffice\PhpSpreadsheet\Style\Style $pStyle Style * @param \PhpOffice\PhpSpreadsheet\Style\Style $pStyle Style
* @param Spreadsheet $spreadsheet Workbook * @param Spreadsheet $spreadsheet Workbook
*
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/ */
private function writeCellStyleXf(XMLWriter $objWriter, \PhpOffice\PhpSpreadsheet\Style\Style $pStyle, Spreadsheet $spreadsheet) private function writeCellStyleXf(XMLWriter $objWriter, \PhpOffice\PhpSpreadsheet\Style\Style $pStyle, Spreadsheet $spreadsheet)
{ {

View File

@ -111,8 +111,6 @@ class Theme extends WriterPart
* *
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* *
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*
* @return string XML Output * @return string XML Output
*/ */
public function writeTheme(Spreadsheet $spreadsheet) public function writeTheme(Spreadsheet $spreadsheet)

View File

@ -18,8 +18,6 @@ class Workbook extends WriterPart
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
* @param bool $recalcRequired Indicate whether formulas should be recalculated before writing * @param bool $recalcRequired Indicate whether formulas should be recalculated before writing
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeWorkbook(Spreadsheet $spreadsheet, $recalcRequired = false) public function writeWorkbook(Spreadsheet $spreadsheet, $recalcRequired = false)
@ -185,8 +183,6 @@ class Workbook extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
*
* @throws WriterException
*/ */
private function writeSheets(XMLWriter $objWriter, Spreadsheet $spreadsheet) private function writeSheets(XMLWriter $objWriter, Spreadsheet $spreadsheet)
{ {
@ -215,8 +211,6 @@ class Workbook extends WriterPart
* @param int $pSheetId Sheet id * @param int $pSheetId Sheet id
* @param int $pRelId Relationship ID * @param int $pRelId Relationship ID
* @param string $sheetState Sheet state (visible, hidden, veryHidden) * @param string $sheetState Sheet state (visible, hidden, veryHidden)
*
* @throws WriterException
*/ */
private function writeSheet(XMLWriter $objWriter, $pSheetname, $pSheetId = 1, $pRelId = 1, $sheetState = 'visible') private function writeSheet(XMLWriter $objWriter, $pSheetname, $pSheetId = 1, $pRelId = 1, $sheetState = 'visible')
{ {
@ -240,8 +234,6 @@ class Workbook extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
*
* @throws WriterException
*/ */
private function writeDefinedNames(XMLWriter $objWriter, Spreadsheet $spreadsheet) private function writeDefinedNames(XMLWriter $objWriter, Spreadsheet $spreadsheet)
{ {
@ -275,8 +267,6 @@ class Workbook extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param Spreadsheet $spreadsheet * @param Spreadsheet $spreadsheet
*
* @throws WriterException
*/ */
private function writeNamedRanges(XMLWriter $objWriter, Spreadsheet $spreadsheet) private function writeNamedRanges(XMLWriter $objWriter, Spreadsheet $spreadsheet)
{ {

View File

@ -12,7 +12,6 @@ use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column;
use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column\Rule; use PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\Column\Rule;
use PhpOffice\PhpSpreadsheet\Worksheet\SheetView; use PhpOffice\PhpSpreadsheet\Worksheet\SheetView;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet as PhpspreadsheetWorksheet; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet as PhpspreadsheetWorksheet;
use PhpOffice\PhpSpreadsheet\Writer\Exception as WriterException;
/** /**
* @category PhpSpreadsheet * @category PhpSpreadsheet
@ -28,8 +27,6 @@ class Worksheet extends WriterPart
* @param string[] $pStringTable * @param string[] $pStringTable
* @param bool $includeCharts Flag indicating if we should write charts * @param bool $includeCharts Flag indicating if we should write charts
* *
* @throws WriterException
*
* @return string XML Output * @return string XML Output
*/ */
public function writeWorksheet(PhpspreadsheetWorksheet $pSheet, $pStringTable = null, $includeCharts = false) public function writeWorksheet(PhpspreadsheetWorksheet $pSheet, $pStringTable = null, $includeCharts = false)
@ -194,8 +191,6 @@ class Worksheet extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param PhpspreadsheetWorksheet $pSheet Worksheet * @param PhpspreadsheetWorksheet $pSheet Worksheet
*
* @throws WriterException
*/ */
private function writeSheetViews(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet) private function writeSheetViews(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet)
{ {
@ -459,8 +454,6 @@ class Worksheet extends WriterPart
* *
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param PhpspreadsheetWorksheet $pSheet Worksheet * @param PhpspreadsheetWorksheet $pSheet Worksheet
*
* @throws WriterException
*/ */
private function writeConditionalFormatting(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet) private function writeConditionalFormatting(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet)
{ {
@ -956,8 +949,6 @@ class Worksheet extends WriterPart
* @param XMLWriter $objWriter XML Writer * @param XMLWriter $objWriter XML Writer
* @param PhpspreadsheetWorksheet $pSheet Worksheet * @param PhpspreadsheetWorksheet $pSheet Worksheet
* @param string[] $pStringTable String table * @param string[] $pStringTable String table
*
* @throws WriterException
*/ */
private function writeSheetData(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet, array $pStringTable) private function writeSheetData(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet, array $pStringTable)
{ {
@ -1044,8 +1035,6 @@ class Worksheet extends WriterPart
* @param PhpspreadsheetWorksheet $pSheet Worksheet * @param PhpspreadsheetWorksheet $pSheet Worksheet
* @param Cell $pCellAddress Cell Address * @param Cell $pCellAddress Cell Address
* @param string[] $pFlippedStringTable String table (flipped), for faster index searching * @param string[] $pFlippedStringTable String table (flipped), for faster index searching
*
* @throws WriterException
*/ */
private function writeCell(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet, $pCellAddress, array $pFlippedStringTable) private function writeCell(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet, $pCellAddress, array $pFlippedStringTable)
{ {

View File

@ -310,8 +310,6 @@ class CalculationTest extends TestCase
* be set in cache * be set in cache
* @param string[] $shouldNotBeSetInCacheCells coordinates of cells that must * @param string[] $shouldNotBeSetInCacheCells coordinates of cells that must
* not be set in cache because of pruning * not be set in cache because of pruning
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @dataProvider dataProviderBranchPruningFullExecution * @dataProvider dataProviderBranchPruningFullExecution
*/ */
public function testFullExecution( public function testFullExecution(

View File

@ -15,8 +15,6 @@ class DocumentGeneratorTest extends TestCase
* *
* @param array $phpSpreadsheetFunctions * @param array $phpSpreadsheetFunctions
* @param string $expected * @param string $expected
*
* @throws \ReflectionException
*/ */
public function testGenerateFunctionListByName(array $phpSpreadsheetFunctions, string $expected): void public function testGenerateFunctionListByName(array $phpSpreadsheetFunctions, string $expected): void
{ {
@ -28,8 +26,6 @@ class DocumentGeneratorTest extends TestCase
* *
* @param array $phpSpreadsheetFunctions * @param array $phpSpreadsheetFunctions
* @param string $expected * @param string $expected
*
* @throws \ReflectionException
*/ */
public function testGenerateFunctionListByCategory(array $phpSpreadsheetFunctions, string $expected): void public function testGenerateFunctionListByCategory(array $phpSpreadsheetFunctions, string $expected): void
{ {