mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Removed unused variables.
This commit is contained in:
parent
3671c94844
commit
0fe83c7b3a
18 changed files with 14 additions and 29 deletions
|
@ -383,7 +383,7 @@ class EntityURLGenerator
|
|||
//Check if we have an direct mapping for the given class
|
||||
if (! array_key_exists($class, $map)) {
|
||||
//Check if we need to check inheritance by looping through our map
|
||||
foreach ($map as $key => $value) {
|
||||
foreach (array_keys($map) as $key) {
|
||||
if (is_a($entity, $key)) {
|
||||
return $map[$key];
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ class EventCommentHelper
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$message = null;
|
||||
$this->message = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,7 +37,7 @@ class EventUndoHelper
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$undone_event = null;
|
||||
$this->undone_event = null;
|
||||
$this->mode = self::MODE_UNDO;
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ class ParameterExtractor
|
|||
$matches = [];
|
||||
\preg_match($regex, $input, $matches);
|
||||
if (! empty($matches)) {
|
||||
[$raw, $name, $value] = $matches;
|
||||
[, $name, $value] = $matches;
|
||||
$value = trim($value);
|
||||
|
||||
//Dont allow empty names or values (these are a sign of an invalid extracted string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue