mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -59,7 +59,7 @@ final class StructuralDBElementIterator extends ArrayIterator implements Recursi
|
|||
/** @var AbstractStructuralDBElement $element */
|
||||
$element = $this->current();
|
||||
|
||||
return ! empty($element->getSubelements());
|
||||
return !empty($element->getSubelements());
|
||||
}
|
||||
|
||||
public function getChildren()
|
||||
|
|
|
@ -81,8 +81,6 @@ final class TreeViewNode implements JsonSerializable
|
|||
/**
|
||||
* Return the ID of the entity associated with this node.
|
||||
* Null if this node is not connected with an entity.
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId(): ?int
|
||||
{
|
||||
|
@ -104,8 +102,6 @@ final class TreeViewNode implements JsonSerializable
|
|||
|
||||
/**
|
||||
* Returns the node text.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getText(): string
|
||||
{
|
||||
|
@ -115,7 +111,7 @@ final class TreeViewNode implements JsonSerializable
|
|||
/**
|
||||
* Sets the node text.
|
||||
*
|
||||
* @param string $text The new node text.
|
||||
* @param string $text the new node text
|
||||
*
|
||||
* @return TreeViewNode
|
||||
*/
|
||||
|
@ -128,8 +124,6 @@ final class TreeViewNode implements JsonSerializable
|
|||
|
||||
/**
|
||||
* Returns the href link.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getHref(): ?string
|
||||
{
|
||||
|
@ -139,7 +133,7 @@ final class TreeViewNode implements JsonSerializable
|
|||
/**
|
||||
* Sets the href link.
|
||||
*
|
||||
* @param string|null $href The new href link.
|
||||
* @param string|null $href the new href link
|
||||
*
|
||||
* @return TreeViewNode
|
||||
*/
|
||||
|
|
|
@ -60,7 +60,7 @@ final class TreeViewNodeIterator extends ArrayIterator implements RecursiveItera
|
|||
/** @var TreeViewNode $element */
|
||||
$element = $this->current();
|
||||
|
||||
return ! empty($element->getNodes());
|
||||
return !empty($element->getNodes());
|
||||
}
|
||||
|
||||
public function getChildren()
|
||||
|
|
|
@ -61,9 +61,6 @@ final class TreeViewNodeState implements JsonSerializable
|
|||
*/
|
||||
private $selected = null;
|
||||
|
||||
/**
|
||||
* @return bool|null
|
||||
*/
|
||||
public function getDisabled(): ?bool
|
||||
{
|
||||
return $this->disabled;
|
||||
|
@ -74,9 +71,6 @@ final class TreeViewNodeState implements JsonSerializable
|
|||
$this->disabled = $disabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|null
|
||||
*/
|
||||
public function getExpanded(): ?bool
|
||||
{
|
||||
return $this->expanded;
|
||||
|
@ -87,9 +81,6 @@ final class TreeViewNodeState implements JsonSerializable
|
|||
$this->expanded = $expanded;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|null
|
||||
*/
|
||||
public function getSelected(): ?bool
|
||||
{
|
||||
return $this->selected;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue