Skip to content

Commit e69312d

Browse files
author
Dave MacFarlane
committed
phpcs
1 parent 56c01ae commit e69312d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

modules/timepoint_list/test/TimepointListIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class TimepointListIntegrationTest extends LorisIntegrationTestWithCandidate
4141
'',
4242
'',
4343
'',
44-
'Unknown',
44+
'Unknown',
4545
];
4646

4747
/**

php/libraries/TimePoint.class.inc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,21 +1392,22 @@ class TimePoint implements \LORIS\StudyEntities\AccessibleResource,
13921392
*
13931393
* @return \Language
13941394
*/
1395-
public function getLanguage() : \Language {
1395+
public function getLanguage() : \Language
1396+
{
13961397
$db = NDB_Factory::singleton()->database();
13971398

1398-
$vals = $db->pselectRow(
1399+
$vals = $db->pselectRow(
13991400
"SELECT language_label, language_code
14001401
FROM language l
14011402
JOIN session s ON (l.language_id=s.languageID)
1402-
WHERE s.ID=:sid",
1403-
['sid' => $this->getSessionID()]
1404-
);
1403+
WHERE s.ID=:sid",
1404+
['sid' => $this->getSessionID()],
1405+
);
14051406

1406-
if ($vals === null) {
1407+
if ($vals === null) {
14071408
return new \Language("Unknown", "en_CA");
1408-
}
1409-
return new \Language(
1409+
}
1410+
return new \Language(
14101411
label: $vals['language_label'],
14111412
code: $vals['language_code']
14121413
);

0 commit comments

Comments
 (0)