mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 10:57:40 +02:00
Removed unused variables.
This commit is contained in:
parent
3671c94844
commit
0fe83c7b3a
18 changed files with 14 additions and 29 deletions
|
@ -69,9 +69,6 @@ class OrderdetailType extends AbstractType
|
|||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
/** @var Orderdetail $orderdetail */
|
||||
$orderdetail = $builder->getData();
|
||||
|
||||
$builder->add('supplierpartnr', TextType::class, [
|
||||
'label' => 'orderdetails.edit.supplierpartnr',
|
||||
'attr' => [
|
||||
|
|
|
@ -86,7 +86,7 @@ class PermissionsType extends AbstractType
|
|||
{
|
||||
$groups = $this->perm_structure['groups'];
|
||||
|
||||
foreach ($groups as $key => $group) {
|
||||
foreach (array_keys($groups) as $key) {
|
||||
$builder->add($key, PermissionGroupType::class, [
|
||||
'group_name' => $key,
|
||||
'mapped' => false,
|
||||
|
|
|
@ -102,7 +102,7 @@ class CurrencyEntityType extends StructuralEntityType
|
|||
$level -= $parent->getLevel() - 1;
|
||||
}
|
||||
|
||||
$tmp = str_repeat(' ', $choice->getLevel()); //Use 3 spaces for intendation
|
||||
$tmp = str_repeat(' ', $level); //Use 3 spaces for intendation
|
||||
if (empty($choice->getIsoCode())) {
|
||||
$tmp .= htmlspecialchars($choice->getName());
|
||||
} else {
|
||||
|
|
|
@ -272,7 +272,7 @@ class StructuralEntityType extends AbstractType
|
|||
$level -= $parent->getLevel() - 1;
|
||||
}
|
||||
|
||||
$tmp = str_repeat(' ', $choice->getLevel()); //Use 3 spaces for intendation
|
||||
$tmp = str_repeat(' ', $level); //Use 3 spaces for intendation
|
||||
$tmp .= htmlspecialchars($choice->getName());
|
||||
|
||||
return $tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue