diff --git a/modules/api/php/endpoints/candidate/visit/image/format/raw.class.inc b/modules/api/php/endpoints/candidate/visit/image/format/raw.class.inc index f215e56694e..9720c0086e1 100644 --- a/modules/api/php/endpoints/candidate/visit/image/format/raw.class.inc +++ b/modules/api/php/endpoints/candidate/visit/image/format/raw.class.inc @@ -140,13 +140,13 @@ class Raw extends Endpoint implements \LORIS\Middleware\ETagCalculator $callback = function () use ($mincpath, $fullpath) { return shell_exec( - "${mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath" + "{$mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath" ); }; return (new \LORIS\Http\Response()) ->withHeader('Content-Type', 'application/x.raw') - ->withHeader('Content-Disposition', "attachment; filename=${filename}") + ->withHeader('Content-Disposition', "attachment; filename={$filename}") ->withBody(new \Laminas\Diactoros\CallbackStream($callback)); } diff --git a/php/installer/Database.class.inc b/php/installer/Database.class.inc index 12f0afe39f6..44afdbb29dc 100644 --- a/php/installer/Database.class.inc +++ b/php/installer/Database.class.inc @@ -74,8 +74,8 @@ class Database if ($table == '*') { $table = '\*'; } - $pattern = "/GRANT .*(ALL|${privilege}).* ON" . - " `?([*]|${database})`?[.]`?([*]|${table})`?/"; + $pattern = "/GRANT .*(ALL|{$privilege}).* ON" . + " `?([*]|{$database})`?[.]`?([*]|{$table})`?/"; // Test all privileges return from SHOW GRANTS against the pattern return array_reduce(