Skip to content

Commit

Permalink
phpstan lvl 1
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Oct 30, 2023
1 parent f9a6eb8 commit 3195b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion inc/entity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ public static function showForItemtype(Entity $entity, $itemtype = 'Entity')

$out .= "<div class='spaced'>";
$number = self::countForItem($entity);
$rand = mt_rand();

if ($number) {
if ($canedit) {
$rand = mt_rand();
$out .= Html::getOpenMassiveActionsForm('mass' . __CLASS__ . $rand);

$specific_actions = [
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
parallel:
maximumNumberOfProcesses: 2
level: 0
level: 1
bootstrapFiles:
- ../../inc/based_config.php
- setup.php
Expand Down

0 comments on commit 3195b42

Please sign in to comment.