mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
782e2b7fdf
commit
0f3ba9b6a8
19 changed files with 109 additions and 139 deletions
|
@ -108,13 +108,13 @@ class Footprint extends PartsContainingDBElement
|
|||
*/
|
||||
public function get3dFilename(bool $absolute = true) : string
|
||||
{
|
||||
if ($absolute == true) {
|
||||
if ($absolute === true) {
|
||||
//TODO
|
||||
throw new \Exception("Not Implemented yet...");
|
||||
throw new \Exception('Not Implemented yet...');
|
||||
//return str_replace('%BASE%', BASE, $this->db_data['filename_3d']);
|
||||
} else {
|
||||
return $this->filename_3d;
|
||||
}
|
||||
|
||||
return $this->filename_3d;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -155,7 +155,7 @@ class Footprint extends PartsContainingDBElement
|
|||
}
|
||||
|
||||
//Check if file is X3D-Model (these has .x3d extension)
|
||||
if (strpos($this->get3dFilename(), '.x3d') == false) {
|
||||
if (strpos($this->get3dFilename(), '.x3d') === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue