Skip to content

Commit

Permalink
Minor cleanup and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Oct 1, 2024
1 parent 7331cf4 commit f306236
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
3 changes: 0 additions & 3 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

/** @var \Icinga\Application\Modules\Module $this */

use Icinga\Module\Toplevelview\ViewConfig;
use Icinga\Web\Url;

$this->providePermission('toplevelview/edit', $this->translate('Allow the user to edit Top Level Views'));

$this->provideRestriction(
Expand Down
3 changes: 2 additions & 1 deletion library/Toplevelview/Model/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
use Icinga\Module\Toplevelview\Tree\TLVTree;

/**
* View represents a single Top Level View
* View represents a single Top Level View.
* It contains the actual Tree and metadata.
*/
class View
{
Expand Down
1 change: 1 addition & 0 deletions library/Toplevelview/Tree/TLVIcingaNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Icinga\Exception\NotImplementedError;

/**
* Leaves nodes that fetch data from the database are TLVIcingaNodes.
* @codeCoverageIgnore
*/
class TLVIcingaNode extends TLVTreeNode
Expand Down
8 changes: 8 additions & 0 deletions library/Toplevelview/Tree/TLVTreeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class TLVTreeNode extends TreeNode
*/
protected $type = 'node';

/**
* @var string
*/
protected $key = null;

/**
Expand Down Expand Up @@ -48,6 +51,11 @@ class TLVTreeNode extends TreeNode
*/
protected $properties = array();

/**
* Determine if this node is a leaf
*
* @var bool
*/
protected static $canHaveChildren = true;

/**
Expand Down
1 change: 1 addition & 0 deletions library/Toplevelview/Util/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Str
{
/**
* Str::limit method truncates the given string to the specified length.
* Used in cases where CSS text-overflow cannot be used.
*
* @param string $str
* @param int $len
Expand Down

0 comments on commit f306236

Please sign in to comment.