Skip to content

Commit 16801bc

Browse files
committed
Fix deprecation complaints from phan
1 parent 8175dbb commit 16801bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/api/php/endpoints/candidate/visit/image/format/raw.class.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ class Raw extends Endpoint implements \LORIS\Middleware\ETagCalculator
140140

141141
$callback = function () use ($mincpath, $fullpath) {
142142
return shell_exec(
143-
"${mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath"
143+
"{$mincpath}/bin/minctoraw -byte -unsigned -normalize $fullpath"
144144
);
145145
};
146146

147147
return (new \LORIS\Http\Response())
148148
->withHeader('Content-Type', 'application/x.raw')
149-
->withHeader('Content-Disposition', "attachment; filename=${filename}")
149+
->withHeader('Content-Disposition', "attachment; filename={$filename}")
150150
->withBody(new \Laminas\Diactoros\CallbackStream($callback));
151151
}
152152

php/installer/Database.class.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class Database
7474
if ($table == '*') {
7575
$table = '\*';
7676
}
77-
$pattern = "/GRANT .*(ALL|${privilege}).* ON" .
78-
" `?([*]|${database})`?[.]`?([*]|${table})`?/";
77+
$pattern = "/GRANT .*(ALL|{$privilege}).* ON" .
78+
" `?([*]|{$database})`?[.]`?([*]|{$table})`?/";
7979

8080
// Test all privileges return from SHOW GRANTS against the pattern
8181
return array_reduce(

0 commit comments

Comments
 (0)