mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -84,7 +84,7 @@ class LabelProfileRepository extends NamedDBElementRepository
|
|||
$type_children[] = $node;
|
||||
}
|
||||
|
||||
if (!empty($type_children)) {
|
||||
if ($type_children !== []) {
|
||||
//Use default label e.g. 'part_label'. $$ marks that it will be translated in TreeViewGenerator
|
||||
$tmp = new TreeViewNode('$$'.$type.'.label', null, $type_children);
|
||||
|
||||
|
@ -112,7 +112,6 @@ class LabelProfileRepository extends NamedDBElementRepository
|
|||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for parts
|
||||
* @return array
|
||||
*/
|
||||
public function getPartLabelProfiles(): array
|
||||
{
|
||||
|
@ -121,7 +120,6 @@ class LabelProfileRepository extends NamedDBElementRepository
|
|||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for part lots
|
||||
* @return array
|
||||
*/
|
||||
public function getPartLotsLabelProfiles(): array
|
||||
{
|
||||
|
@ -130,7 +128,6 @@ class LabelProfileRepository extends NamedDBElementRepository
|
|||
|
||||
/**
|
||||
* Returns all LabelProfiles that can be used for storelocations
|
||||
* @return array
|
||||
*/
|
||||
public function getStorelocationsLabelProfiles(): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue