diff --git a/Header.php b/Header.php deleted file mode 100644 index 80bb46b17..000000000 --- a/Header.php +++ /dev/null @@ -1,3 +0,0 @@ -isCli()) { diff --git a/samples/Engineering/DELTA.php b/samples/Engineering/DELTA.php index 3e1138b1b..24542e480 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 c555129e5..f16daec6d 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 bfb038fea..19da0c778 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 fad70fe48..024e9d594 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 6f24f6516..8b0bb189f 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 8cc738994..8e7951c46 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 c9e0c4c91..1b650b991 100644 --- a/samples/Financial1/AMORDEGRC.php +++ b/samples/Financial1/AMORDEGRC.php @@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; 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 3491eae02..17196fd05 100644 --- a/samples/Financial1/AMORLINC.php +++ b/samples/Financial1/AMORLINC.php @@ -4,7 +4,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers as DateHelper; 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 727d17d9d..ddf420e94 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 f6e148cce..c53ec66cc 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 dfb21dd7c..741a410be 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 b38faf032..c5d61360e 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 b1bd0d52a..495298f50 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 8ac786063..ef04955e0 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 f97caec85..c3b5b7e83 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 86de3070a..161314a93 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 0759c0aac..a8dd14944 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 d261d4bd5..d260e67a7 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 389d75e06..f5666af4f 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 d71874018..d47f049da 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 75424be03..f9121a333 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 a74f4500d..fd526bc7d 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 40b3366f5..ede445c08 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 dfd2abbce..e4516b469 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 594fb6cb8..1d40ae98a 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 138ec3785..80c5cd175 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 e489af934..7dfbcea48 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 cbede7cec..eaf76d68a 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 313e10bd1..47273244f 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 6b7951a17..9c24287d4 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 8acae4737..7d5833549 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 fa76d5422..a7016a712 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 8f7865ee4..4e37e2ef5 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 593999a21..fa2fc6eb7 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 be0196109..d24692342 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 05bcb4289..c560d9efb 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 9c0368887..21ec33fb9 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 f8b467e91..ffe82949f 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 629bdd023..4e800c210 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 cb9ec0f49..5fa5cfe16 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 86b45675f..358ac547a 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 7a2115bca..a97884d9b 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 c472523e4..bed5b1c08 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 8a55543e6..a29427b6e 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 7975063fb..56573f9f7 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 45b591ba2..5b257d606 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 b3e81fe0d..f8aa984bf 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 e0a734518..dea3ac74f 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 acfd5dd22..80e4fc1a2 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 175735335..283b4b7a5 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 fc7a500f0..9f66f323b 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 6d1be29f4..108715079 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 352790a7c..3ea79a0e8 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 000000000..432ab9d97 --- /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 313db3194..2c2b24852 100644 --- a/samples/Wizards/NumberFormat/Currency.php +++ b/samples/Wizards/NumberFormat/Currency.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Settings; 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 274f7904a..bf8237f5f 100644 --- a/samples/Wizards/NumberFormat/Number.php +++ b/samples/Wizards/NumberFormat/Number.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Settings; 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 71b5c6911..7295a7f13 100644 --- a/samples/Wizards/NumberFormat/Percentage.php +++ b/samples/Wizards/NumberFormat/Percentage.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Settings; 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 61e635d78..c3b84aed6 100644 --- a/samples/Wizards/NumberFormat/Scientific.php +++ b/samples/Wizards/NumberFormat/Scientific.php @@ -6,7 +6,7 @@ use PhpOffice\PhpSpreadsheet\Settings; 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 4e7728792..c772aface 100644 --- a/src/PhpSpreadsheet/Helper/Sample.php +++ b/src/PhpSpreadsheet/Helper/Sample.php @@ -91,7 +91,7 @@ class Sample $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 7ec3b37bf..f20c2163c 100644 --- a/tests/PhpSpreadsheetTests/Helper/SampleTest.php +++ b/tests/PhpSpreadsheetTests/Helper/SampleTest.php @@ -36,7 +36,6 @@ class SampleTest extends TestCase if (in_array('--coverage-clover', $argv)) { $tooLongToBeCovered = [ 'Basic/06_Largescale.php', - 'Basic/13_CalculationCyclicFormulae.php', ]; $skipped = array_merge($skipped, $tooLongToBeCovered); }