Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ridz1208 committed Nov 25, 2024
1 parent 54d62cc commit 5bd629f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/biobank/php/specimendao.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ class SpecimenDAO extends \LORIS\Data\ProvisionerInstance
*
* @throws \InvalidArgumentException If required data is missing or invalid.
*
* @return Specimen $specimen The Specimen Object that was saved
* @return ?Specimen $specimen The Specimen Object that was saved
* to the database.
*/
public function saveInstance(Specimen $specimen) : Specimen
public function saveInstance(Specimen $specimen) : ?Specimen
{
// Converts Specimen Object into SQL format.
$data = $this->_getSQLFromInstance($specimen);
Expand Down
8 changes: 6 additions & 2 deletions modules/biobank/test/BiobankTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ public function testPermissions(): void
{
$this->checkPagePermissions(
'/biobank/',
['biobank_specimen_view'],
"Imaging Quality Control"
[
'biobank_specimen_view',
'biobank_container_view',
'biobank_pool_view',
],
"Biobank"
);
}
}

0 comments on commit 5bd629f

Please sign in to comment.