Fix some PHPCS errors
This commit is contained in:
parent
03f053bf77
commit
114fc00763
|
@ -1226,7 +1226,8 @@ class MathTrig
|
||||||
* @param string $condition The criteria that defines which cells will be summed.
|
* @param string $condition The criteria that defines which cells will be summed.
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function SUMIFS() {
|
public static function SUMIFS()
|
||||||
|
{
|
||||||
$arrayList = func_get_args();
|
$arrayList = func_get_args();
|
||||||
|
|
||||||
// Return value
|
// Return value
|
||||||
|
|
|
@ -2,25 +2,25 @@
|
||||||
|
|
||||||
namespace PHPExcel\Reader\Excel5\Style;
|
namespace PHPExcel\Reader\Excel5\Style;
|
||||||
|
|
||||||
use \PHPExcel\Style\Border;
|
use \PHPExcel\Style\Border as StyleBorder;
|
||||||
|
|
||||||
class Border
|
class Border
|
||||||
{
|
{
|
||||||
protected static $map = array(
|
protected static $map = array(
|
||||||
0x00 => Border::BORDER_NONE,
|
0x00 => StyleBorder::BORDER_NONE,
|
||||||
0x01 => Border::BORDER_THIN,
|
0x01 => StyleBorder::BORDER_THIN,
|
||||||
0x02 => Border::BORDER_MEDIUM,
|
0x02 => StyleBorder::BORDER_MEDIUM,
|
||||||
0x03 => Border::BORDER_DASHED,
|
0x03 => StyleBorder::BORDER_DASHED,
|
||||||
0x04 => Border::BORDER_DOTTED,
|
0x04 => StyleBorder::BORDER_DOTTED,
|
||||||
0x05 => Border::BORDER_THICK,
|
0x05 => StyleBorder::BORDER_THICK,
|
||||||
0x06 => Border::BORDER_DOUBLE,
|
0x06 => StyleBorder::BORDER_DOUBLE,
|
||||||
0x07 => Border::BORDER_HAIR,
|
0x07 => StyleBorder::BORDER_HAIR,
|
||||||
0x08 => Border::BORDER_MEDIUMDASHED,
|
0x08 => StyleBorder::BORDER_MEDIUMDASHED,
|
||||||
0x09 => Border::BORDER_DASHDOT,
|
0x09 => StyleBorder::BORDER_DASHDOT,
|
||||||
0x0A => Border::BORDER_MEDIUMDASHDOT,
|
0x0A => StyleBorder::BORDER_MEDIUMDASHDOT,
|
||||||
0x0B => Border::BORDER_DASHDOTDOT,
|
0x0B => StyleBorder::BORDER_DASHDOTDOT,
|
||||||
0x0C => Border::BORDER_MEDIUMDASHDOTDOT,
|
0x0C => StyleBorder::BORDER_MEDIUMDASHDOTDOT,
|
||||||
0x0D => Border::BORDER_SLANTDASHDOT,
|
0x0D => StyleBorder::BORDER_SLANTDASHDOT,
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,6 +35,6 @@ class Border
|
||||||
if (isset(self::$map[$index])) {
|
if (isset(self::$map[$index])) {
|
||||||
return self::$map[$index];
|
return self::$map[$index];
|
||||||
}
|
}
|
||||||
return Border::BORDER_NONE;
|
return StyleBorder::BORDER_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -154,7 +154,8 @@ class ZipArchive
|
||||||
return $contents;
|
return $contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFromIndex($index) {
|
public function getFromIndex($index)
|
||||||
|
{
|
||||||
$extracted = $this->zip->extractByIndex($index, PCLZIP_OPT_EXTRACT_AS_STRING);
|
$extracted = $this->zip->extractByIndex($index, PCLZIP_OPT_EXTRACT_AS_STRING);
|
||||||
$contents = '';
|
$contents = '';
|
||||||
if ((is_array($extracted)) && ($extracted != 0)) {
|
if ((is_array($extracted)) && ($extracted != 0)) {
|
||||||
|
|
|
@ -447,11 +447,13 @@ class NumberFormat extends Supervisor implements \PHPExcel\IComparable
|
||||||
'h' => 'g'
|
'h' => 'g'
|
||||||
);
|
);
|
||||||
|
|
||||||
private static function setLowercaseCallback($matches) {
|
private static function setLowercaseCallback($matches)
|
||||||
|
{
|
||||||
return mb_strtolower($matches[0]);
|
return mb_strtolower($matches[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function escapeQuotesCallback($matches) {
|
private static function escapeQuotesCallback($matches)
|
||||||
|
{
|
||||||
return '\\' . implode('\\', str_split($matches[1]));
|
return '\\' . implode('\\', str_split($matches[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace PHPExcel\Writer\Excel2007;
|
namespace PHPExcel\Writer\Excel2007;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel
|
* PHPExcel
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace PHPExcel\Writer\Excel2007;
|
namespace PHPExcel\Writer\Excel2007;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel
|
* PHPExcel
|
||||||
*
|
*
|
||||||
|
|
|
@ -3233,7 +3233,8 @@ class Worksheet extends BIFFwriter
|
||||||
$dataBlockFont .= pack('C', 0x21);
|
$dataBlockFont .= pack('C', 0x21);
|
||||||
$fontUnderline = 0;
|
$fontUnderline = 0;
|
||||||
break;
|
break;
|
||||||
default: $dataBlockFont .= pack('C', 0x00);
|
default:
|
||||||
|
$dataBlockFont .= pack('C', 0x00);
|
||||||
$fontUnderline = 1;
|
$fontUnderline = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_HTML
|
* PHPExcel_Writer_HTML
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
|
class HTML extends BaseWriter implements IWriter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* PHPExcel object
|
* PHPExcel object
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument
|
* PHPExcel_Writer_OpenDocument
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
|
class OpenDocument extends BaseWriter implements IWriter
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Private writer parts
|
* Private writer parts
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument\Cell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel
|
* PHPExcel
|
||||||
*
|
*
|
||||||
|
@ -34,7 +37,7 @@
|
||||||
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
|
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
|
||||||
* @author Alexander Pervakov <frost-nzcr4@jagmort.com>
|
* @author Alexander Pervakov <frost-nzcr4@jagmort.com>
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Cell_Comment
|
class Comment
|
||||||
{
|
{
|
||||||
public static function write(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell)
|
public static function write(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel
|
* PHPExcel
|
||||||
*
|
*
|
||||||
|
@ -34,7 +37,7 @@
|
||||||
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
|
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
|
||||||
* @author Alexander Pervakov <frost-nzcr4@jagmort.com>
|
* @author Alexander Pervakov <frost-nzcr4@jagmort.com>
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Content extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Content extends WriterPart
|
||||||
{
|
{
|
||||||
const NUMBER_COLS_REPEATED_MAX = 1024;
|
const NUMBER_COLS_REPEATED_MAX = 1024;
|
||||||
const NUMBER_ROWS_REPEATED_MAX = 1048576;
|
const NUMBER_ROWS_REPEATED_MAX = 1048576;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_Meta
|
* PHPExcel_Writer_OpenDocument_Meta
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Meta extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Meta extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write meta.xml to XML format
|
* Write meta.xml to XML format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_MetaInf
|
* PHPExcel_Writer_OpenDocument_MetaInf
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_MetaInf extends PHPExcel_Writer_OpenDocument_WriterPart
|
class MetaInf extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write META-INF/manifest.xml to XML format
|
* Write META-INF/manifest.xml to XML format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel
|
* PHPExcel
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Mimetype extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Mimetype extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write mimetype to plain text format
|
* Write mimetype to plain text format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_Settings
|
* PHPExcel_Writer_OpenDocument_Settings
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Settings extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Settings extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write settings.xml to XML format
|
* Write settings.xml to XML format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_Styles
|
* PHPExcel_Writer_OpenDocument_Styles
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Styles extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Styles extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write styles.xml to XML format
|
* Write styles.xml to XML format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_Thumbnails
|
* PHPExcel_Writer_OpenDocument_Thumbnails
|
||||||
*
|
*
|
||||||
|
@ -25,7 +27,7 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
class PHPExcel_Writer_OpenDocument_Thumbnails extends PHPExcel_Writer_OpenDocument_WriterPart
|
class Thumbnails extends WriterPart
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Write Thumbnails/thumbnail.png to PNG format
|
* Write Thumbnails/thumbnail.png to PNG format
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace PHPExcel\Writer\OpenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Writer_OpenDocument_WriterPart
|
* PHPExcel_Writer_OpenDocument_WriterPart
|
||||||
*
|
*
|
||||||
|
@ -25,6 +27,6 @@
|
||||||
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
||||||
* @version ##VERSION##, ##DATE##
|
* @version ##VERSION##, ##DATE##
|
||||||
*/
|
*/
|
||||||
abstract class PHPExcel_Writer_OpenDocument_WriterPart extends \PHPExcel\Writer\Excel2007\WriterPart
|
abstract class WriterPart extends \PHPExcel\Writer\Excel2007\WriterPart
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue