From 06293c784ab81f461e5c68c771deff67507bb7cc Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Sat, 24 Nov 2012 09:44:56 +0100 Subject: [PATCH] __DIR__ -> dirname(__FILE__) --- Build/build-phar.php | 2 +- Examples/32chartreadwrite.php | 2 +- Examples/35chartrender.php | 2 +- Examples/36chartreadwriteHTML.php | 2 +- Examples/36chartreadwritePDF.php | 2 +- unitTests/custom/complexAssert.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Build/build-phar.php b/Build/build-phar.php index 5e505aa7..d2e5063c 100644 --- a/Build/build-phar.php +++ b/Build/build-phar.php @@ -36,7 +36,7 @@ if (ini_get('phar.readonly')) { $pharName = 'PHPExcel.phar'; // target folder -$sourceDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Classes' . DIRECTORY_SEPARATOR; +$sourceDir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Classes' . DIRECTORY_SEPARATOR; // default meta information $metaData = array( diff --git a/Examples/32chartreadwrite.php b/Examples/32chartreadwrite.php index 614dc6e0..797612e9 100644 --- a/Examples/32chartreadwrite.php +++ b/Examples/32chartreadwrite.php @@ -48,7 +48,7 @@ $inputFileNames = 'templates/32readwrite*[0-9].xlsx'; if ((isset($argc)) && ($argc > 1)) { $inputFileNames = array(); for($i = 1; $i < $argc; ++$i) { - $inputFileNames[] = __DIR__ . '/templates/' . $argv[$i]; + $inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i]; } } else { $inputFileNames = glob($inputFileNames); diff --git a/Examples/35chartrender.php b/Examples/35chartrender.php index bb3ec5f2..601fb4c8 100644 --- a/Examples/35chartrender.php +++ b/Examples/35chartrender.php @@ -68,7 +68,7 @@ $inputFileNames = 'templates/32readwrite*[0-9].xlsx'; if ((isset($argc)) && ($argc > 1)) { $inputFileNames = array(); for($i = 1; $i < $argc; ++$i) { - $inputFileNames[] = __DIR__ . '/templates/' . $argv[$i]; + $inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i]; } } else { $inputFileNames = glob($inputFileNames); diff --git a/Examples/36chartreadwriteHTML.php b/Examples/36chartreadwriteHTML.php index d2c0a703..3998378c 100644 --- a/Examples/36chartreadwriteHTML.php +++ b/Examples/36chartreadwriteHTML.php @@ -68,7 +68,7 @@ $inputFileNames = 'templates/36write*.xlsx'; if ((isset($argc)) && ($argc > 1)) { $inputFileNames = array(); for($i = 1; $i < $argc; ++$i) { - $inputFileNames[] = __DIR__ . '/templates/' . $argv[$i]; + $inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i]; } } else { $inputFileNames = glob($inputFileNames); diff --git a/Examples/36chartreadwritePDF.php b/Examples/36chartreadwritePDF.php index f1b41302..bdac4713 100644 --- a/Examples/36chartreadwritePDF.php +++ b/Examples/36chartreadwritePDF.php @@ -91,7 +91,7 @@ $inputFileNames = 'templates/36write*.xlsx'; if ((isset($argc)) && ($argc > 1)) { $inputFileNames = array(); for($i = 1; $i < $argc; ++$i) { - $inputFileNames[] = __DIR__ . '/templates/' . $argv[$i]; + $inputFileNames[] = dirname(__FILE__) . '/templates/' . $argv[$i]; } } else { $inputFileNames = glob($inputFileNames); diff --git a/unitTests/custom/complexAssert.php b/unitTests/custom/complexAssert.php index 486e0929..5b813d25 100644 --- a/unitTests/custom/complexAssert.php +++ b/unitTests/custom/complexAssert.php @@ -1,6 +1,6 @@