Fix codestyle
- return self insteead of return $this - missing licence header in Dimension.php refs #4192
This commit is contained in:
parent
886da7d0cb
commit
07717e9119
|
@ -1,15 +1,33 @@
|
||||||
<?php
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
/**
|
/**
|
||||||
* Created by JetBrains PhpStorm.
|
* This file is part of Icinga 2 Web.
|
||||||
* User: moja
|
*
|
||||||
* Date: 8/6/13
|
* Icinga 2 Web - Head for multiple monitoring backends.
|
||||||
* Time: 11:13 AM
|
* Copyright (C) 2013 Icinga Development Team
|
||||||
* To change this template use File | Settings | File Templates.
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2
|
||||||
|
* of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
* @copyright 2013 Icinga Development Team <info@icinga.org>
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2
|
||||||
|
* @author Icinga Development Team <info@icinga.org>
|
||||||
*/
|
*/
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Util;
|
namespace Icinga\Util;
|
||||||
|
|
||||||
|
|
||||||
class Dimension
|
class Dimension
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -159,7 +159,7 @@ class Dashboard implements Widget
|
||||||
*
|
*
|
||||||
* @param IcingaConfig $config The configuration file to populate this dashboard with
|
* @param IcingaConfig $config The configuration file to populate this dashboard with
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function readConfig(IcingaConfig $config)
|
public function readConfig(IcingaConfig $config)
|
||||||
{
|
{
|
||||||
|
@ -174,7 +174,7 @@ class Dashboard implements Widget
|
||||||
*
|
*
|
||||||
* @param string $title
|
* @param string $title
|
||||||
*
|
*
|
||||||
* @return Dashboard $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function createPane($title)
|
public function createPane($title)
|
||||||
{
|
{
|
||||||
|
@ -194,7 +194,7 @@ class Dashboard implements Widget
|
||||||
* @param Component|string $component The component to add or the title of the newly created component
|
* @param Component|string $component The component to add or the title of the newly created component
|
||||||
* @param $url The url to use for the component
|
* @param $url The url to use for the component
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setComponentUrl($pane, $component, $url)
|
public function setComponentUrl($pane, $component, $url)
|
||||||
{
|
{
|
||||||
|
@ -237,7 +237,7 @@ class Dashboard implements Widget
|
||||||
* @param string $pane The pane to remove the component from
|
* @param string $pane The pane to remove the component from
|
||||||
* @param Component|string $component The component to remove or it's name
|
* @param Component|string $component The component to remove or it's name
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function removeComponent($pane, $component)
|
public function removeComponent($pane, $component)
|
||||||
{
|
{
|
||||||
|
@ -271,7 +271,7 @@ class Dashboard implements Widget
|
||||||
*
|
*
|
||||||
* @param Pane $pane The pane to add
|
* @param Pane $pane The pane to add
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function addPane(Pane $pane)
|
public function addPane(Pane $pane)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
* @author Icinga Development Team <info@icinga.org>
|
* @author Icinga Development Team <info@icinga.org>
|
||||||
*/
|
*/
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Web\Widget\Dashboard;
|
namespace Icinga\Web\Widget\Dashboard;
|
||||||
|
|
||||||
use Icinga\Util\Dimension;
|
use Icinga\Util\Dimension;
|
||||||
|
@ -155,7 +156,7 @@ EOD;
|
||||||
*
|
*
|
||||||
* @param string|Url $url The url to use, either as an Url object or as a path
|
* @param string|Url $url The url to use, either as an Url object or as a path
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setUrl($url)
|
public function setUrl($url)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
* @author Icinga Development Team <info@icinga.org>
|
* @author Icinga Development Team <info@icinga.org>
|
||||||
*/
|
*/
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
namespace Icinga\Web\Widget\Dashboard;
|
namespace Icinga\Web\Widget\Dashboard;
|
||||||
|
|
||||||
use Icinga\Exception\ConfigurationError;
|
use Icinga\Exception\ConfigurationError;
|
||||||
|
@ -97,7 +98,7 @@ class Pane implements Widget
|
||||||
*
|
*
|
||||||
* @param string $title The new title to use for this pane
|
* @param string $title The new title to use for this pane
|
||||||
*
|
*
|
||||||
* @return Pane $this
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setTitle($title)
|
public function setTitle($title)
|
||||||
{
|
{
|
||||||
|
@ -176,7 +177,7 @@ class Pane implements Widget
|
||||||
* (if a new component will be created)
|
* (if a new component will be created)
|
||||||
* @param string|null $url An Url to be used when component is a string
|
* @param string|null $url An Url to be used when component is a string
|
||||||
*
|
*
|
||||||
* @return Pane $this
|
* @return self
|
||||||
* @throws \Icinga\Exception\ConfigurationError
|
* @throws \Icinga\Exception\ConfigurationError
|
||||||
*/
|
*/
|
||||||
public function addComponent($component, $url = null)
|
public function addComponent($component, $url = null)
|
||||||
|
|
Loading…
Reference in New Issue