mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-17 16:51:35 +00:00
Addendum to Shared Font
Forgot a couple of lines I intended to include.
This commit is contained in:
@@ -713,6 +713,7 @@ class Font
|
||||
if (file_exists("$startDirectory/$desiredFont")) {
|
||||
$fontPath = "$startDirectory/$desiredFont";
|
||||
} else {
|
||||
$iterations = 0;
|
||||
$it = new RecursiveDirectoryIterator(
|
||||
$startDirectory,
|
||||
RecursiveDirectoryIterator::SKIP_DOTS
|
||||
@@ -730,6 +731,12 @@ class Font
|
||||
|
||||
break;
|
||||
}
|
||||
++$iterations;
|
||||
if ($iterations > 5000) {
|
||||
// @codeCoverageIgnoreStart
|
||||
break;
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user