A pure PHP library for reading and writing spreadsheet files
1230 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | infra/LocaleGenerator.php | 129 | protected function writeConfigArgumentSeparator($configFile, string $column): void |
| LOW | infra/LocaleGenerator.php | 145 | protected function writeConfigCurrencySymbol($configFile, string $column): void |
| LOW | infra/LocaleGenerator.php | 163 | protected function buildFunctionsFileForLocale(string $column, string $locale): void |
| LOW | infra/DocumentGenerator.php | 22 | public static function generateFunctionListByCategory($phpSpreadsheetFunctions): string |
| LOW | infra/DocumentGenerator.php | 74 | private static function getPhpSpreadsheetFunctionText(mixed $functionCall): string |
| LOW | infra/DocumentGenerator.php | 94 | public static function generateFunctionListByName(array $phpSpreadsheetFunctions, bool $compact = false): string |
| LOW | tests/Benchmark/SpreadsheetCopyBenchmarkTest.php | 31 | private function createPopulatedSpreadsheet(): Spreadsheet |
| LOW | tests/Benchmark/SpreadsheetCopyBenchmarkTest.php | 114 | public function testCloneVsSerializeBenchmark(): void |
| LOW | tests/Benchmark/FormulaTokenCacheBenchmarkTest.php | 41 | public function testParseFormulaCacheEnabledVsDisabled(): void |
| LOW | tests/Benchmark/FormulaTokenCacheBenchmarkTest.php | 108 | public function testParseFormulaCacheVsNocache(): void |
| LOW | tests/PhpSpreadsheetTests/IOFactoryRegisterTest.php | 36 | public function testRegisterInvalidWriter(): void |
| LOW | tests/PhpSpreadsheetTests/IOFactoryRegisterTest.php | 43 | public function testRegisterInvalidReader(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 41 | public function testAddDuplicateDefinedName(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 56 | public function testAddScopedDefinedNameWithSameName(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 89 | public function testRemoveGlobalDefinedName(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 101 | public function testRemoveGlobalDefinedNameWhenDuplicateNames(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 118 | public function testRemoveScopedDefinedNameWhenDuplicateNames(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameTest.php | 135 | public function testDefinedNameNoWorksheetNoScope(): void |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 42 | public function testAddDuplicateNamedRange(): void |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 60 | public function testAddScopedNamedFormulaWithSameName(): void |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 98 | public function testRemoveGlobalNamedFormulaWhenDuplicateNames(): void |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 118 | public function testRemoveScopedNamedFormulaWhenDuplicateNames(): void |
| LOW | tests/PhpSpreadsheetTests/NamedFormulaTest.php | 138 | public function testRemoveNonExistentNamedFormula(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 216 | public function testCopySheetCountMatches(string $type): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 268 | public function testCopyNamedRangesReferenceNewSpreadsheet(string $type): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 294 | public function testCopyCanBeSavedWithoutErrors(string $type): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCopyCloneTest.php | 333 | public function testCopyWorksheetsAreIndependent(string $type): void |
| LOW | tests/PhpSpreadsheetTests/RichTextTest.php | 15 | public function testConstructorSpecifyingCell(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 121 | public function testUpdateFormulaForMultipleWorksheets(string $formula, int $insertRows, int $insertColumns, string |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 130 | public static function providerMultipleWorksheetFormulaUpdates(): array |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 135 | public function testInsertNewBeforeRetainDataType(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 154 | public function testRemoveColumnShiftsCorrectColumnValueIntoRemovedColumnCoordinates(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 183 | public function testInsertRowsWithPageBreaks(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 199 | public function testDeleteRowsWithPageBreaks(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 214 | public function testInsertRowsWithComments(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 233 | public function testDeleteRowsWithComments(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 252 | public function testInsertRowsWithHyperlinks(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 278 | public function testDeleteRowsWithHyperlinks(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 297 | public function testInsertRowsWithConditionalFormatting(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 321 | public function testInsertColumnssWithConditionalFormatting(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 345 | public function testDeleteRowsWithConditionalFormatting(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 369 | public function testDeleteColumnsWithConditionalFormatting(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 413 | public function testInsertRowsWithPrintArea(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 426 | public function testInsertColumnsWithPrintArea(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 439 | public function testDeleteRowsWithPrintArea(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 452 | public function testDeleteColumnsWithPrintArea(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 465 | public function testInsertDeleteRowsWithDefinedNames(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 514 | public function testInsertDeleteColumnsWithDefinedNames(): void |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 555 | private function buildDefinedNamesTestWorkbook(): Spreadsheet |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 590 | private function buildDefinedNamesAbsoluteWorkbook(): Spreadsheet |
| LOW | tests/PhpSpreadsheetTests/ReferenceHelperTest.php | 627 | public function testInsertBothWithDefinedNamesAbsolute(): void |
| LOW | tests/PhpSpreadsheetTests/NamedRange3Test.php | 13 | public function testSheetNamePlusDefinedName(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameFormulaTest.php | 116 | public function testGetScopedNamedFormula(): void |
| LOW | tests/PhpSpreadsheetTests/DefinedNameFormulaTest.php | 133 | public function testGetGlobalNamedFormula(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCoverageTest.php | 86 | public function testInvalidRemoveCellXfByIndex(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCoverageTest.php | 100 | public function testInvalidRemoveDefaultStyle(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCoverageTest.php | 122 | public function testInvalidRemoveCellStyleXfByIndex(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetCoverageTest.php | 130 | public function testInvalidFirstSheetIndex(): void |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetTest.php | 40 | public static function dataProviderForSheetNames(): array |
| LOW | tests/PhpSpreadsheetTests/SpreadsheetTest.php | 66 | public function testAddSheetDuplicateTitle(): void |
| 1070 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/PhpSpreadsheetTests/Chart/ChartCloneTest.php | 201 | ), // 2011 |
| LOW | tests/PhpSpreadsheetTests/Chart/ChartMethodTest.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // 2010 |
| LOW | …/PhpSpreadsheetTests/Chart/GridlinesShadowGlowTest.php | 61 | // Cell reference for data |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 41 | ['Q4', 30, 32, 0], |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 61 | // Number of datapoints in series |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisGlowTest.php | 181 | ]; |
| LOW | tests/PhpSpreadsheetTests/Chart/LegendColorTest.php | 61 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisPropertiesTest.php | 61 | // Format Code |
| LOW | tests/PhpSpreadsheetTests/Chart/MultiplierTest.php | 41 | $dataSeriesLabels = [ |
| LOW | tests/PhpSpreadsheetTests/Chart/PR3163Test.php | 61 | // Datatype |
| LOW | tests/PhpSpreadsheetTests/Chart/PieFillTest.php | 61 | DataSeriesValues::DATASERIES_TYPE_STRING, |
| LOW | …s/PhpSpreadsheetTests/Chart/GridlinesLineStyleTest.php | 61 | // Cell reference for data |
| LOW | …s/PhpSpreadsheetTests/Chart/GridlinesLineStyleTest.php | 241 | ); |
| LOW | tests/PhpSpreadsheetTests/Chart/DataSeriesColorTest.php | 61 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // was 2010 |
| LOW | …ts/PhpSpreadsheetTests/Chart/DataSeriesValues2Test.php | 41 | ] |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisShadowTest.php | 41 | ['Q4', 30, 32, 0], |
| LOW | tests/PhpSpreadsheetTests/Chart/AxisShadowTest.php | 61 | // Number of datapoints in series |
| LOW | …s/PhpSpreadsheetTests/Calculation/ParseFormulaTest.php | 341 | [ |
| LOW | …s/PhpSpreadsheetTests/Calculation/ParseFormulaTest.php | 361 | // [ |
| LOW | tests/data/Calculation/Statistical/LINEST.php | 81 | ], |
| LOW | tests/data/Calculation/Statistical/LINEST.php | 101 | // [2517, 4, 4, 55], |
| LOW | tests/data/Calculation/Statistical/COUNTIFS.php | 21 | ['C', 'B', 'A', 'B', 'B'], |
| LOW | tests/data/Calculation/Statistical/LOGEST.php | 41 | [ |
| LOW | tests/data/Calculation/Statistical/LOGEST.php | 61 | // [ |
| LOW | samples/Chart33a/33_Chart_create_area.php | 21 | ['Q4', 30, 32, 0], |
| LOW | samples/Chart33a/33_Chart_create_area.php | 41 | // Number of datapoints in series |
| LOW | samples/Chart33a/33_Chart_create_column.php | 21 | ['Q4', 30, 32, 0], |
| LOW | samples/Chart33a/33_Chart_create_column.php | 41 | // Number of datapoints in series |
| LOW | samples/Chart33a/33_Chart_create_bar_stacked.php | 21 | ['Q4', 30, 32, 0], |
| LOW | samples/Chart33a/33_Chart_create_bar_stacked.php | 41 | // Number of datapoints in series |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 41 | // Set the X-Axis Labels |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 101 | // Add the chart to the worksheet |
| LOW | samples/Chart33a/33_Chart_create_bar_custom_colors.php | 121 | // Data values |
| LOW | samples/Chart33a/33_Chart_create_line.php | 41 | // Cell reference for data |
| LOW | samples/Chart33a/33_Chart_create_column_2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$C$1', null, 1), // 'Budget' |
| LOW | samples/Chart33a/33_Chart_create_bubble.php | 41 | |
| LOW | samples/Chart33a/33_Chart_create_area_2.php | 41 | // Datatype |
| LOW | samples/Chart33a/33_Chart_create_bar_labels_lines.php | 41 | $dataSeriesLabels1 = [ |
| LOW | samples/Chart33a/33_Chart_create_bar_labels_lines.php | 141 | // Set the X-Axis Labels |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 21 | ['Q4', 30, 32, 0], |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 41 | // Number of datapoints in series |
| LOW | samples/Chart33b/33_Chart_create_multiple_charts.php | 101 | // Cell reference for data |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 41 | // Set the X-Axis Labels |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 101 | // Add the chart to the worksheet |
| LOW | samples/Chart33b/33_Chart_create_pie_custom_colors.php | 121 | // Data values |
| LOW | …mples/Chart33b/33_Chart_create_scatter5_trendlines.php | 61 | // Datatype |
| LOW | samples/Chart33b/33_Chart_create_scatter3.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$C$1', null, 1), // was 2011 |
| LOW | samples/Chart33b/33_Chart_create_scatter2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), // was 2010 |
| LOW | samples/Chart33b/33_Chart_create_stock2.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open |
| LOW | samples/Chart33b/33_Chart_create_pie.php | 21 | ['Q3', 52, 61, 69], |
| LOW | samples/Chart33b/33_Chart_create_pie.php | 101 | // Datatype |
| LOW | samples/Chart33b/33_Chart_create_radar.php | 41 | $dataSeriesLabels = [ |
| LOW | samples/Chart33b/33_Chart_create_stock.php | 41 | new DataSeriesValues(DataSeriesValues::DATASERIES_TYPE_STRING, 'Worksheet!$B$1', null, 1), //Max / Open |
| LOW | samples/templates/chartSpreadsheet.php | 21 | ); |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 41 | // Modelled moreso after Perl Excel Parse/Write modules |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 401 | // offset: 4; size: 2; OS version |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 541 | { |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 2961 | // offset: 20: size: variable; formula structure |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 3461 | // offset: 0; size: 2; rt |
| LOW | src/PhpSpreadsheet/Reader/Xls.php | 3561 | |
| 21 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/PhpSpreadsheetTests/Writer/Ods/ContentTest.php | 66 | $worksheet1->setCellValue('E1', 'Lorem ipsum'); // String |
| LOW | tests/PhpSpreadsheetTests/Writer/Ods/ContentTest.php | 88 | $worksheet1->setCellValueExplicit('G1', 'Lorem ipsum', DataType::TYPE_INLINE); |
| LOW | …s/PhpSpreadsheetTests/Writer/Html/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); |
| LOW | …s/PhpSpreadsheetTests/Writer/Mpdf/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); |
| LOW | …PhpSpreadsheetTests/Writer/Dompdf/TextRotationTest.php | 19 | $sheet->setCellValue('A7', 'Lorem Ipsum'); |
| LOW | …pSpreadsheetTests/Writer/Dompdf/PaperSizeArrayTest.php | 36 | $sheet->setCellValue('A7', 'Lorem Ipsum'); |
| LOW | …pSpreadsheetTests/Writer/Dompdf/PaperSizeArrayTest.php | 56 | $sheet->setCellValue('A7', 'Lorem Ipsum'); |
| LOW | tests/data/Writer/Ods/content-with-data.xml | 87 | <text:p>Lorem ipsum</text:p> |
| LOW | tests/data/Writer/Ods/content-with-data.xml | 93 | <text:p>Lorem ipsum</text:p> |
| LOW | samples/Pdf/21b_Pdf.php | 12 | $lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol |
| LOW | samples/Pdf/21b_Pdf.php | 12 | $lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol |
| LOW | samples/templates/sampleSpreadsheet2.php | 322 | // Llorem ipsum... |
| LOW | samples/templates/sampleSpreadsheet2.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor |
| LOW | samples/templates/sampleSpreadsheet2.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor |
| LOW | samples/templates/sampleSpreadsheet.php | 322 | // Llorem ipsum... |
| LOW | samples/templates/sampleSpreadsheet.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor |
| LOW | samples/templates/sampleSpreadsheet.php | 323 | $sLloremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus eget ante. Sed cursus nunc semper tor |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | samples/bootstrap/js/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/PhpSpreadsheet/Reader/Xlsx.php | 918 | // But in some cases, this attribute isn't set; so we need to delve a level |