diff --git a/Header.php b/Header.php deleted file mode 100644 index 80bb46b17d..0000000000 --- a/Header.php +++ /dev/null @@ -1,3 +0,0 @@ -isCli()) { diff --git a/samples/Engineering/DELTA.php b/samples/Engineering/DELTA.php index 3e1138b1b4..24542e4800 100644 --- a/samples/Engineering/DELTA.php +++ b/samples/Engineering/DELTA.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'DELTA'; diff --git a/samples/Engineering/ERF.php b/samples/Engineering/ERF.php index c555129e5b..f16daec6dc 100644 --- a/samples/Engineering/ERF.php +++ b/samples/Engineering/ERF.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'ERF'; diff --git a/samples/Engineering/ERFC.php b/samples/Engineering/ERFC.php index bfb038fea9..19da0c778f 100644 --- a/samples/Engineering/ERFC.php +++ b/samples/Engineering/ERFC.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'ERFC'; diff --git a/samples/Engineering/GESTEP.php b/samples/Engineering/GESTEP.php index fad70fe48a..024e9d5947 100644 --- a/samples/Engineering/GESTEP.php +++ b/samples/Engineering/GESTEP.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'GESTEP'; diff --git a/samples/Financial1/ACCRINT.php b/samples/Financial1/ACCRINT.php index 6f24f65160..8b0bb189f4 100644 --- a/samples/Financial1/ACCRINT.php +++ b/samples/Financial1/ACCRINT.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the accrued interest for a security that pays periodic interest.'); diff --git a/samples/Financial1/ACCRINTM.php b/samples/Financial1/ACCRINTM.php index 8cc738994a..8e7951c460 100644 --- a/samples/Financial1/ACCRINTM.php +++ b/samples/Financial1/ACCRINTM.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the accrued interest for a security that pays interest at maturity.'); diff --git a/samples/Financial1/AMORDEGRC.php b/samples/Financial1/AMORDEGRC.php index c9e0c4c91e..1b650b9918 100644 --- a/samples/Financial1/AMORDEGRC.php +++ b/samples/Financial1/AMORDEGRC.php @@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\Financial\Constants as FinancialConstants; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the prorated linear depreciation of an asset for a specified accounting period.'); diff --git a/samples/Financial1/AMORLINC.php b/samples/Financial1/AMORLINC.php index 3491eae02c..17196fd059 100644 --- a/samples/Financial1/AMORLINC.php +++ b/samples/Financial1/AMORLINC.php @@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\Financial\Constants as FinancialConstants; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the prorated linear depreciation of an asset for a specified accounting period.'); diff --git a/samples/Financial1/COUPDAYBS.php b/samples/Financial1/COUPDAYBS.php index 727d17d9d9..ddf420e94b 100644 --- a/samples/Financial1/COUPDAYBS.php +++ b/samples/Financial1/COUPDAYBS.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of days from the beginning of a coupon\'s period to the settlement date.'); diff --git a/samples/Financial1/COUPDAYS.php b/samples/Financial1/COUPDAYS.php index f6e148cce2..c53ec66cc3 100644 --- a/samples/Financial1/COUPDAYS.php +++ b/samples/Financial1/COUPDAYS.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of days in the coupon period that contains the settlement date.'); diff --git a/samples/Financial1/COUPDAYSNC.php b/samples/Financial1/COUPDAYSNC.php index dfb21dd7c5..741a410be2 100644 --- a/samples/Financial1/COUPDAYSNC.php +++ b/samples/Financial1/COUPDAYSNC.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of days from the settlement date to the next coupon date.'); diff --git a/samples/Financial1/COUPNCD.php b/samples/Financial1/COUPNCD.php index b38faf032b..c5d61360ef 100644 --- a/samples/Financial1/COUPNCD.php +++ b/samples/Financial1/COUPNCD.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the next coupon date, after the settlement date.'); diff --git a/samples/Financial1/COUPNUM.php b/samples/Financial1/COUPNUM.php index b1bd0d52ab..495298f50a 100644 --- a/samples/Financial1/COUPNUM.php +++ b/samples/Financial1/COUPNUM.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of coupons payable, between a security\'s settlement date and maturity date,'); $helper->log('rounded up to the nearest whole coupon.'); diff --git a/samples/Financial1/COUPPCD.php b/samples/Financial1/COUPPCD.php index 8ac7860638..ef04955e01 100644 --- a/samples/Financial1/COUPPCD.php +++ b/samples/Financial1/COUPPCD.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the previous coupon date, before the settlement date for a security.'); diff --git a/samples/Financial1/CUMIPMT.php b/samples/Financial1/CUMIPMT.php index f97caec85c..c3b5b7e832 100644 --- a/samples/Financial1/CUMIPMT.php +++ b/samples/Financial1/CUMIPMT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the cumulative interest paid on a loan or investment, between two specified periods.'); diff --git a/samples/Financial1/CUMPRINC.php b/samples/Financial1/CUMPRINC.php index 86de3070ae..161314a937 100644 --- a/samples/Financial1/CUMPRINC.php +++ b/samples/Financial1/CUMPRINC.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the cumulative payment on the principal of a loan or investment, between two specified periods.'); diff --git a/samples/Financial2/DB.php b/samples/Financial2/DB.php index 0759c0aac8..a8dd14944a 100644 --- a/samples/Financial2/DB.php +++ b/samples/Financial2/DB.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the depreciation of an asset, using the Fixed Declining Balance Method,'); $helper->log('for each period of the asset\'s lifetime.'); diff --git a/samples/Financial2/DDB.php b/samples/Financial2/DDB.php index d261d4bd59..d260e67a76 100644 --- a/samples/Financial2/DDB.php +++ b/samples/Financial2/DDB.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the depreciation of an asset, using the Double Declining Balance Method,'); $helper->log('for each period of the asset\'s lifetime.'); diff --git a/samples/Financial2/DISC.php b/samples/Financial2/DISC.php index 389d75e068..f5666af4ff 100644 --- a/samples/Financial2/DISC.php +++ b/samples/Financial2/DISC.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the the Discount Rate for a security.'); diff --git a/samples/Financial2/DOLLARDE.php b/samples/Financial2/DOLLARDE.php index d71874018f..d47f049da9 100644 --- a/samples/Financial2/DOLLARDE.php +++ b/samples/Financial2/DOLLARDE.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the dollar value in fractional notation, into a dollar value expressed as a decimal.'); diff --git a/samples/Financial2/DOLLARFR.php b/samples/Financial2/DOLLARFR.php index 75424be03f..f9121a3337 100644 --- a/samples/Financial2/DOLLARFR.php +++ b/samples/Financial2/DOLLARFR.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the dollar value expressed as a decimal number, into a dollar price, expressed as a fraction.'); diff --git a/samples/Financial2/EFFECT.php b/samples/Financial2/EFFECT.php index a74f4500d8..fd526bc7da 100644 --- a/samples/Financial2/EFFECT.php +++ b/samples/Financial2/EFFECT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the effective annual interest rate for a given nominal interest rate and number of'); $helper->log('compounding periods per year.'); diff --git a/samples/Financial2/FV.php b/samples/Financial2/FV.php index 40b3366f5f..ede445c081 100644 --- a/samples/Financial2/FV.php +++ b/samples/Financial2/FV.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the Future Value of an investment with periodic constant payments and a constant interest rate.'); diff --git a/samples/Financial2/FVSCHEDULE.php b/samples/Financial2/FVSCHEDULE.php index dfd2abbced..e4516b4690 100644 --- a/samples/Financial2/FVSCHEDULE.php +++ b/samples/Financial2/FVSCHEDULE.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the Future Value of an initial principal, after applying a series of compound interest rates.'); diff --git a/samples/Financial3/INTRATE.php b/samples/Financial3/INTRATE.php index 594fb6cb89..1d40ae98ae 100644 --- a/samples/Financial3/INTRATE.php +++ b/samples/Financial3/INTRATE.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the interest rate for a fully invested security.'); diff --git a/samples/Financial3/IPMT.php b/samples/Financial3/IPMT.php index 138ec37857..80c5cd1755 100644 --- a/samples/Financial3/IPMT.php +++ b/samples/Financial3/IPMT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the interest payment, during a specific period of a loan or investment that is paid in,'); $helper->log('constant periodic payments, with a constant interest rate.'); diff --git a/samples/Financial3/IRR.php b/samples/Financial3/IRR.php index e489af934c..7dfbcea488 100644 --- a/samples/Financial3/IRR.php +++ b/samples/Financial3/IRR.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the Internal Rate of Return for a supplied series of periodic cash flows.'); diff --git a/samples/Financial3/ISPMT.php b/samples/Financial3/ISPMT.php index cbede7cece..eaf76d68a5 100644 --- a/samples/Financial3/ISPMT.php +++ b/samples/Financial3/ISPMT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the interest paid during a specific period of a loan or investment.'); diff --git a/samples/Financial3/MIRR.php b/samples/Financial3/MIRR.php index 313e10bd11..47273244fe 100644 --- a/samples/Financial3/MIRR.php +++ b/samples/Financial3/MIRR.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the Modified Internal Rate of Return for a supplied series of periodic cash flows.'); diff --git a/samples/Financial3/NOMINAL.php b/samples/Financial3/NOMINAL.php index 6b7951a174..9c24287d4f 100644 --- a/samples/Financial3/NOMINAL.php +++ b/samples/Financial3/NOMINAL.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the nominal interest rate for a given effective interest rate and number of'); $helper->log('compounding periods per year.'); diff --git a/samples/Financial3/NPER.php b/samples/Financial3/NPER.php index 8acae4737c..7d58335497 100644 --- a/samples/Financial3/NPER.php +++ b/samples/Financial3/NPER.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\Financial\Constants as FinancialConstants; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of periods required to pay off a loan, for a constant periodic payment'); $helper->log('and a constant interest rate.'); diff --git a/samples/Financial3/NPV.php b/samples/Financial3/NPV.php index fa76d54224..a7016a7129 100644 --- a/samples/Financial3/NPV.php +++ b/samples/Financial3/NPV.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the Net Present Value of an investment, based on a supplied discount rate,'); $helper->log('and a series of future payments and income.'); diff --git a/samples/HexEtcConversions/BIN2DEC.php b/samples/HexEtcConversions/BIN2DEC.php index 8f7865ee4d..4e37e2ef51 100644 --- a/samples/HexEtcConversions/BIN2DEC.php +++ b/samples/HexEtcConversions/BIN2DEC.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'BIN2DEC'; diff --git a/samples/HexEtcConversions/BIN2HEX.php b/samples/HexEtcConversions/BIN2HEX.php index 593999a211..fa2fc6eb76 100644 --- a/samples/HexEtcConversions/BIN2HEX.php +++ b/samples/HexEtcConversions/BIN2HEX.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'BIN2HEX'; diff --git a/samples/HexEtcConversions/BIN2OCT.php b/samples/HexEtcConversions/BIN2OCT.php index be01961092..d24692342e 100644 --- a/samples/HexEtcConversions/BIN2OCT.php +++ b/samples/HexEtcConversions/BIN2OCT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'BIN2OCT'; diff --git a/samples/HexEtcConversions/DEC2BIN.php b/samples/HexEtcConversions/DEC2BIN.php index 05bcb4289f..c560d9efb7 100644 --- a/samples/HexEtcConversions/DEC2BIN.php +++ b/samples/HexEtcConversions/DEC2BIN.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'DEC2BIN'; diff --git a/samples/HexEtcConversions/DEC2HEX.php b/samples/HexEtcConversions/DEC2HEX.php index 9c0368887a..21ec33fb95 100644 --- a/samples/HexEtcConversions/DEC2HEX.php +++ b/samples/HexEtcConversions/DEC2HEX.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'DEC2HEX'; diff --git a/samples/HexEtcConversions/DEC2OCT.php b/samples/HexEtcConversions/DEC2OCT.php index f8b467e913..ffe82949f4 100644 --- a/samples/HexEtcConversions/DEC2OCT.php +++ b/samples/HexEtcConversions/DEC2OCT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'DEC2OCT'; diff --git a/samples/HexEtcConversions/HEX2BIN.php b/samples/HexEtcConversions/HEX2BIN.php index 629bdd0235..4e800c2109 100644 --- a/samples/HexEtcConversions/HEX2BIN.php +++ b/samples/HexEtcConversions/HEX2BIN.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'HEX2BIN'; diff --git a/samples/HexEtcConversions/HEX2DEC.php b/samples/HexEtcConversions/HEX2DEC.php index cb9ec0f496..5fa5cfe16a 100644 --- a/samples/HexEtcConversions/HEX2DEC.php +++ b/samples/HexEtcConversions/HEX2DEC.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'HEX2DEC'; diff --git a/samples/HexEtcConversions/HEX2OCT.php b/samples/HexEtcConversions/HEX2OCT.php index 86b45675f5..358ac547a8 100644 --- a/samples/HexEtcConversions/HEX2OCT.php +++ b/samples/HexEtcConversions/HEX2OCT.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'HEX2OCT'; diff --git a/samples/HexEtcConversions/OCT2BIN.php b/samples/HexEtcConversions/OCT2BIN.php index 7a2115bca4..a97884d9b7 100644 --- a/samples/HexEtcConversions/OCT2BIN.php +++ b/samples/HexEtcConversions/OCT2BIN.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'OCT2BIN'; diff --git a/samples/HexEtcConversions/OCT2DEC.php b/samples/HexEtcConversions/OCT2DEC.php index c472523e41..bed5b1c088 100644 --- a/samples/HexEtcConversions/OCT2DEC.php +++ b/samples/HexEtcConversions/OCT2DEC.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'OCT2DEC'; diff --git a/samples/HexEtcConversions/OCT2HEX.php b/samples/HexEtcConversions/OCT2HEX.php index 8a55543e60..a29427b6e0 100644 --- a/samples/HexEtcConversions/OCT2HEX.php +++ b/samples/HexEtcConversions/OCT2HEX.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $category = 'Engineering'; $functionName = 'OCT2HEX'; diff --git a/samples/LookupRef/ADDRESS.php b/samples/LookupRef/ADDRESS.php index 7975063fb3..56573f9f70 100644 --- a/samples/LookupRef/ADDRESS.php +++ b/samples/LookupRef/ADDRESS.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns a text reference to a single cell in a worksheet.'); diff --git a/samples/LookupRef/COLUMN.php b/samples/LookupRef/COLUMN.php index 45b591ba2c..5b257d606c 100644 --- a/samples/LookupRef/COLUMN.php +++ b/samples/LookupRef/COLUMN.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the column index of a cell.'); diff --git a/samples/LookupRef/COLUMNS.php b/samples/LookupRef/COLUMNS.php index b3e81fe0d7..f8aa984bf3 100644 --- a/samples/LookupRef/COLUMNS.php +++ b/samples/LookupRef/COLUMNS.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the number of columns in an array or reference.'); diff --git a/samples/LookupRef/INDEX.php b/samples/LookupRef/INDEX.php index e0a734518b..dea3ac74f5 100644 --- a/samples/LookupRef/INDEX.php +++ b/samples/LookupRef/INDEX.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the row index of a cell.'); diff --git a/samples/LookupRef/INDIRECT.php b/samples/LookupRef/INDIRECT.php index acfd5dd22c..80e4fc1a23 100644 --- a/samples/LookupRef/INDIRECT.php +++ b/samples/LookupRef/INDIRECT.php @@ -3,7 +3,7 @@ use PhpOffice\PhpSpreadsheet\NamedRange; use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the cell specified by a text string.'); diff --git a/samples/LookupRef/OFFSET.php b/samples/LookupRef/OFFSET.php index 1757353358..283b4b7a53 100644 --- a/samples/LookupRef/OFFSET.php +++ b/samples/LookupRef/OFFSET.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns a cell range that is a specified number of rows and columns from a cell or range of cells.'); diff --git a/samples/LookupRef/ROW.php b/samples/LookupRef/ROW.php index fc7a500f0e..9f66f323bb 100644 --- a/samples/LookupRef/ROW.php +++ b/samples/LookupRef/ROW.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the row index of a cell.'); diff --git a/samples/LookupRef/ROWS.php b/samples/LookupRef/ROWS.php index 6d1be29f4e..1087150798 100644 --- a/samples/LookupRef/ROWS.php +++ b/samples/LookupRef/ROWS.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Returns the row index of a cell.'); diff --git a/samples/LookupRef/VLOOKUP.php b/samples/LookupRef/VLOOKUP.php index 352790a7c7..3ea79a0e8b 100644 --- a/samples/LookupRef/VLOOKUP.php +++ b/samples/LookupRef/VLOOKUP.php @@ -2,7 +2,7 @@ use PhpOffice\PhpSpreadsheet\Spreadsheet; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper->log('Searches for a value in the top row of a table or an array of values, and then returns a value in the same column from a row you specify diff --git a/samples/Wizards/Header.php b/samples/Wizards/Header.php new file mode 100644 index 0000000000..432ab9d975 --- /dev/null +++ b/samples/Wizards/Header.php @@ -0,0 +1,3 @@ +isCli()) { diff --git a/samples/Wizards/NumberFormat/Currency.php b/samples/Wizards/NumberFormat/Currency.php index 313db31949..2c2b248525 100644 --- a/samples/Wizards/NumberFormat/Currency.php +++ b/samples/Wizards/NumberFormat/Currency.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Style\NumberFormat; use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper = new Sample(); if ($helper->isCli()) { diff --git a/samples/Wizards/NumberFormat/Number.php b/samples/Wizards/NumberFormat/Number.php index 274f7904a1..bf8237f5fc 100644 --- a/samples/Wizards/NumberFormat/Number.php +++ b/samples/Wizards/NumberFormat/Number.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Style\NumberFormat; use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper = new Sample(); if ($helper->isCli()) { diff --git a/samples/Wizards/NumberFormat/Percentage.php b/samples/Wizards/NumberFormat/Percentage.php index 71b5c69113..7295a7f137 100644 --- a/samples/Wizards/NumberFormat/Percentage.php +++ b/samples/Wizards/NumberFormat/Percentage.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Style\NumberFormat; use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper = new Sample(); if ($helper->isCli()) { diff --git a/samples/Wizards/NumberFormat/Scientific.php b/samples/Wizards/NumberFormat/Scientific.php index 61e635d782..c3b84aed6f 100644 --- a/samples/Wizards/NumberFormat/Scientific.php +++ b/samples/Wizards/NumberFormat/Scientific.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Style\NumberFormat; use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard; -require __DIR__ . '/../../Header.php'; +require __DIR__ . '/../Header.php'; $helper = new Sample(); if ($helper->isCli()) { diff --git a/src/PhpSpreadsheet/Helper/Sample.php b/src/PhpSpreadsheet/Helper/Sample.php index 4e7728792c..c772aface1 100644 --- a/src/PhpSpreadsheet/Helper/Sample.php +++ b/src/PhpSpreadsheet/Helper/Sample.php @@ -91,7 +91,7 @@ public function getSamples(): array $info = pathinfo($file); $category = str_replace('_', ' ', $info['dirname'] ?? ''); $name = str_replace('_', ' ', (string) preg_replace('/(|\.php)/', '', $info['filename'])); - if (!in_array($category, ['.', 'boostrap', 'templates'])) { + if (!in_array($category, ['.', 'bootstrap', 'templates']) && $name !== 'Header') { if (!isset($files[$category])) { $files[$category] = []; } diff --git a/tests/PhpSpreadsheetTests/Helper/SampleTest.php b/tests/PhpSpreadsheetTests/Helper/SampleTest.php index 7ec3b37bfb..f20c2163c7 100644 --- a/tests/PhpSpreadsheetTests/Helper/SampleTest.php +++ b/tests/PhpSpreadsheetTests/Helper/SampleTest.php @@ -36,7 +36,6 @@ public static function providerSample(): array if (in_array('--coverage-clover', $argv)) { $tooLongToBeCovered = [ 'Basic/06_Largescale.php', - 'Basic/13_CalculationCyclicFormulae.php', ]; $skipped = array_merge($skipped, $tooLongToBeCovered); }