Correction is no longer required in php7
This commit is contained in:
parent
c91aebc437
commit
58dd278b4e
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,7 @@ class PreviewTest extends TestCase {
|
|||
$filename = $this->samples[$sampleId]['sampleFileName'];
|
||||
$splitFileName = pathinfo($filename);
|
||||
$extension = $splitFileName['extension'];
|
||||
$correction = ($extension === 'eps') ? 1 : 0;
|
||||
$correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0;
|
||||
$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
|
||||
$maxPreviewHeight = $maxPreviewHeight - $correction;
|
||||
|
||||
|
|
Loading…
Reference in a new issue