mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Fixed some inspection issues
This commit is contained in:
parent
c6f1758a18
commit
8ae4e9fe05
39 changed files with 46 additions and 56 deletions
|
@ -185,7 +185,7 @@ abstract class Attachment extends AbstractNamedDBElement
|
|||
//After the %PLACEHOLDER% comes a slash, so we can check if we have a placeholder via explode
|
||||
$tmp = explode('/', $this->path);
|
||||
|
||||
return !in_array($tmp[0], array_merge(static::INTERNAL_PLACEHOLDER, static::BUILTIN_PLACEHOLDER));
|
||||
return !in_array($tmp[0], array_merge(static::INTERNAL_PLACEHOLDER, static::BUILTIN_PLACEHOLDER), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -331,7 +331,7 @@ abstract class Attachment extends AbstractNamedDBElement
|
|||
*/
|
||||
public function getShowInTable(): bool
|
||||
{
|
||||
return (bool) $this->show_in_table;
|
||||
return $this->show_in_table;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue