parent
e0ed25d6b2
commit
043327bb7d
|
@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||
|
||||
- Xlsx reader crashed when reading a file with workbook protection - [#553](https://github.com/PHPOffice/PhpSpreadsheet/pull/553)
|
||||
- Cell formats with escaped spaces were causing incorrect date formatting - [#557](https://github.com/PHPOffice/PhpSpreadsheet/issues/557)
|
||||
- Could not open CSV file containing HTML fragment - [##564](https://github.com/PHPOffice/PhpSpreadsheet/issues/564)
|
||||
- Could not open CSV file containing HTML fragment - [#564](https://github.com/PHPOffice/PhpSpreadsheet/issues/564)
|
||||
- Exclude the vendor folder in migration - [#481](https://github.com/PHPOffice/PhpSpreadsheet/issues/481)
|
||||
|
||||
## [1.3.1] - 2018-06-12
|
||||
|
||||
|
|
|
@ -249,10 +249,14 @@ class Migrator
|
|||
{
|
||||
$patterns = [
|
||||
'/*.md',
|
||||
'/*.php',
|
||||
'/*.phtml',
|
||||
'/*.txt',
|
||||
'/*.TXT',
|
||||
'/*.php',
|
||||
'/*.phpt',
|
||||
'/*.php3',
|
||||
'/*.php4',
|
||||
'/*.php5',
|
||||
'/*.phtml',
|
||||
];
|
||||
|
||||
$from = array_keys($this->getMapping());
|
||||
|
@ -260,6 +264,11 @@ class Migrator
|
|||
|
||||
foreach ($patterns as $pattern) {
|
||||
foreach (glob($path . $pattern) as $file) {
|
||||
if (strpos($path, '/vendor/') !== false) {
|
||||
echo $file . " skipped\n";
|
||||
|
||||
continue;
|
||||
}
|
||||
$original = file_get_contents($file);
|
||||
$converted = str_replace($from, $to, $original);
|
||||
|
||||
|
|
Loading…
Reference in New Issue