Skip to content

Commit

Permalink
fixed code sniffing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ridz1208 committed Aug 14, 2023
1 parent e4911a4 commit 3fa1f6b
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Data/Filters/UserProjectOrSiteMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/
class UserProjectOrSiteMatch implements \LORIS\Data\Filter
{
/**
* Implements the \LORIS\Data\Filter interface
*
class UserProjectOrSiteMatch implements \LORIS\Data\Filter
{
/**
* Implements the \LORIS\Data\Filter interface
*
* @param \User $user The user that the data is being
* filtered for.
* @param \LORIS\Data\DataInstance $resource The data being filtered.
*
* @return bool true if the user has a project or site in common with the
* data
*/
* filtered for.
* @param \LORIS\Data\DataInstance $resource The data being filtered.
*
* @return bool true if the user has a project or site in common with the
* data
*/
public function filter(\User $user, \Loris\Data\DataInstance $resource) : bool
{
$siteMatch = (new \LORIS\Data\Filters\UserSiteMatch())
->filter($user, $resource);
{
$siteMatch = (new \LORIS\Data\Filters\UserSiteMatch())
->filter($user, $resource);
$projectMatch = (new \LORIS\Data\Filters\UserProjectMatch())
->filter($user, $resource);
return $siteMatch || $projectMatch;
}
}

return $siteMatch || $projectMatch;
}
}

0 comments on commit 3fa1f6b

Please sign in to comment.