Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2019-03-20 22:53:06 +01:00
parent 782e2b7fdf
commit 0f3ba9b6a8
19 changed files with 109 additions and 139 deletions

View file

@ -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;
}