Remove unnecessary spaces at end of line

This commit is contained in:
Alexander Klimov 2014-03-06 13:08:11 +01:00
parent a3ce5f2e52
commit b410ebeed6
32 changed files with 76 additions and 76 deletions

View File

@ -13,7 +13,7 @@ use Icinga\Web\StyleSheet;
<body> <body>
<script type="text/php"> <script type="text/php">
// This attempt doesn't work :( // This attempt doesn't work :(
if ( isset($pdf) ) if ( isset($pdf) )
{ {
$w = $pdf->get_width(); $w = $pdf->get_width();
$h = $pdf->get_height(); $h = $pdf->get_height();

View File

@ -71,7 +71,7 @@ foreach ($this->pagesInRange as $page) {
); );
} }
} }
if (isset($this->next)) { if (isset($this->next)) {
printf( printf(
$li, $li,

View File

@ -256,10 +256,10 @@ select.input-sm {
========================================================================== */ ========================================================================== */
.pagination > .active > a, .pagination > .active > a,
.pagination > .active > span, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > a:hover,
.pagination > .active > span:hover, .pagination > .active > span:hover,
.pagination > .active > a:focus, .pagination > .active > a:focus,
.pagination > .active > span:focus { .pagination > .active > span:focus {
background-color: #049baf !important; background-color: #049baf !important;
@ -410,27 +410,27 @@ select.input-sm {
.icon-flapping { .icon-flapping {
background-image: url('images/flapping.png'); background-image: url('images/flapping.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-comment { .icon-comment {
background-image: url('images/comment.png'); background-image: url('images/comment.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-unhandled { .icon-unhandled {
background-image: url('images/unhandled.png'); background-image: url('images/unhandled.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-host { .icon-host {
background-image: url('images/host.png'); background-image: url('images/host.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-acknowledgement { .icon-acknowledgement {
background-image: url('images/acknowledgement.png'); background-image: url('images/acknowledgement.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-remove { .icon-remove {
background-image: url('images/remove.png'); background-image: url('images/remove.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-submit { .icon-submit {
background-image: url('images/submit.png'); background-image: url('images/submit.png');
background-repeat: no-repeat; background-repeat: no-repeat;
@ -438,35 +438,35 @@ select.input-sm {
.icon-create { .icon-create {
background-image: url('images/create.png'); background-image: url('images/create.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-dashboard { .icon-dashboard {
background-image: url('images/dashboard.png'); background-image: url('images/dashboard.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-disable { .icon-disable {
background-image: url('images/disable.png'); background-image: url('images/disable.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-edit { .icon-edit {
background-image: url('images/edit.png'); background-image: url('images/edit.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-error { .icon-error {
background-image: url('images/error.png'); background-image: url('images/error.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-downtime { .icon-downtime {
background-image: url('images/in_downtime.png'); background-image: url('images/in_downtime.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-save { .icon-save {
background-image: url('images/save.png'); background-image: url('images/save.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-service { .icon-service {
background-image: url('images/service.png'); background-image: url('images/service.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-user { .icon-user {
background-image: url('images/user.png'); background-image: url('images/user.png');
background-repeat: no-repeat; background-repeat: no-repeat;
@ -474,11 +474,11 @@ select.input-sm {
.icon-reschedule { .icon-reschedule {
background-image: url('images/reschedule.png'); background-image: url('images/reschedule.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.icon-refresh { .icon-refresh {
background-image: url('images/refresh.png'); background-image: url('images/refresh.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
/* ========================================================================== /* ==========================================================================
@ -525,7 +525,7 @@ select.input-sm {
padding-right: 10px; padding-right: 10px;
width: 30%; width: 30%;
clear: left; clear: left;
} }
.panel-content { .panel-content {
float: left; float: left;
@ -679,16 +679,16 @@ ul.icinga-subnavigation {
border-left: 6px solid red !important; border-left: 6px solid red !important;
} }
.nav-stacked > li > a:hover, .nav-stacked > li > a:hover,
.icinga-subnavigation > li > a:focus { .icinga-subnavigation > li > a:focus {
/* font-weight: bold;*/ /* font-weight: bold;*/
background-color: transparent; !important; background-color: transparent; !important;
display: inline-block; display: inline-block;
} }
.nav-stacked > li:hover, .nav-stacked > li:hover,
.nav-stacked > li:focus, .nav-stacked > li:focus,
.icinga-subnavigation > li:hover, .icinga-subnavigation > li:hover,
.icinga-subnavigation > li:focus { .icinga-subnavigation > li:focus {
background-color: #fff; background-color: #fff;
@ -707,45 +707,45 @@ background-color: #fff;
background-image: url('images/host_petrol.png'); background-image: url('images/host_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.nav-icon-services { .nav-icon-services {
background-image: url('images/service_petrol.png'); background-image: url('images/service_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.nav-icon-downtimes { .nav-icon-downtimes {
background-image: url('images/in_downtime_petrol.png'); background-image: url('images/in_downtime_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.nav-icon-notifications { .nav-icon-notifications {
background-image: url('images/notification_petrol.png'); background-image: url('images/notification_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 20px; background-position: 19px 20px;
} }
.nav-icon-comments { .nav-icon-comments {
background-image: url('images/comment_petrol.png'); background-image: url('images/comment_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.nav-icon-dashboard { .nav-icon-dashboard {
background-image: url('images/dashboard_petrol.png'); background-image: url('images/dashboard_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.nav-icon-configuration { .nav-icon-configuration {
background-image: url('images/configuration_petrol.png'); background-image: url('images/configuration_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }
.subnav-icon-configuration { .subnav-icon-configuration {
background-image: url('images/configuration_petrol.png'); background-image: url('images/configuration_petrol.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 19px 50%; background-position: 19px 50%;
} }

View File

@ -287,7 +287,7 @@ class Module
*/ */
public function getDependencies() public function getDependencies()
{ {
return $this->metadata()->depends; return $this->metadata()->depends;
} }

View File

@ -120,4 +120,4 @@ class Inline {
} }
} }
} }

View File

@ -45,4 +45,4 @@ class PieChart extends Inline {
$pie->setWidth($this->width)->setHeight($this->height); $pie->setWidth($this->width)->setHeight($this->height);
echo $pie->render(); echo $pie->render();
} }
} }

View File

@ -20,7 +20,7 @@ abstract class Command
protected $moduleName; protected $moduleName;
protected $commandName; protected $commandName;
protected $actionName; protected $actionName;
protected $defaultActionName = 'default'; protected $defaultActionName = 'default';
public function __construct(App $app, $moduleName, $commandName, $actionName, $initialize = true) public function __construct(App $app, $moduleName, $commandName, $actionName, $initialize = true)

View File

@ -64,7 +64,7 @@ class Documentation
public function moduleUsage($module, $command = null, $action = null) public function moduleUsage($module, $command = null, $action = null)
{ {
$commands = $this->loader->listModuleCommands($module); $commands = $this->loader->listModuleCommands($module);
if (empty($commands)) { if (empty($commands)) {
return "The '$module' module does not provide any CLI commands\n"; return "The '$module' module does not provide any CLI commands\n";
} }

View File

@ -44,7 +44,7 @@ class CommentParser
if ($p === null && empty($this->paragraphs)) { if ($p === null && empty($this->paragraphs)) {
$p = & $this->paragraphs[]; $p = & $this->paragraphs[];
} }
if ($line === '') { if ($line === '') {
if ($p !== null) { if ($p !== null) {
$p = & $this->paragraphs[]; $p = & $this->paragraphs[];

View File

@ -11,7 +11,7 @@ use Icinga\Cli\Documentation;
use Exception; use Exception;
/** /**
* *
*/ */
class Loader class Loader
{ {

View File

@ -11,7 +11,7 @@ class PivotTable
protected $horizontalColumn; protected $horizontalColumn;
protected $limit; protected $limit;
protected $offset; protected $offset;
protected $verticalLimit; protected $verticalLimit;

View File

@ -68,7 +68,7 @@ class Pdf extends DOMPDF
$html = $layout->render(); $html = $layout->render();
$imgDir = Url::fromPath('img'); $imgDir = Url::fromPath('img');
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . $imgDir . '/', $html); $html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . $imgDir . '/', $html);
//echo $html; exit; //echo $html; exit;
$this->load_html($html); $this->load_html($html);

View File

@ -311,7 +311,7 @@ class ActionController extends Zend_Controller_Action
$this->_helper->layout()->setLayout('body'); $this->_helper->layout()->setLayout('body');
header('X-Icinga-Container: layout'); header('X-Icinga-Container: layout');
} }
if ($this->autorefreshInterval !== null) { if ($this->autorefreshInterval !== null) {
header('X-Icinga-Refresh: ' . $this->autorefreshInterval); header('X-Icinga-Refresh: ' . $this->autorefreshInterval);
} }
} }

View File

@ -34,7 +34,7 @@ use \Zend_Form_Element_Xhtml;
/** /**
* A checkbox that can display three different states: * A checkbox that can display three different states:
* true, false and mixed. When there is no JavaScript * true, false and mixed. When there is no JavaScript
* available to display the checkbox properly, a radio * available to display the checkbox properly, a radio
* button-group with all three possible states will be * button-group with all three possible states will be
* displayed. * displayed.

View File

@ -58,7 +58,7 @@ class LessCompiler
private $lessc; private $lessc;
private $baseUrl; private $baseUrl;
private $source; private $source;
/** /**

View File

@ -39,7 +39,7 @@ class AlertMessageBox implements \Icinga\Web\Widget\Widget
* @var array * @var array
*/ */
private $messages = array(); private $messages = array();
/** /**
* The user to fetch the messages from * The user to fetch the messages from
* *

View File

@ -13,7 +13,7 @@ use Exception;
/** /**
* Icinga monitoring objects * Icinga monitoring objects
* *
* This module is your interface to the Icinga monitoring application. * This module is your interface to the Icinga monitoring application.
*/ */
class ListCommand extends Command class ListCommand extends Command
{ {
@ -157,7 +157,7 @@ class ListCommand extends Command
->order('host_name'); ->order('host_name');
echo $this->renderStatusQuery($query); echo $this->renderStatusQuery($query);
} }
protected function renderStatusQuery($query) protected function renderStatusQuery($query)
{ {
$out = ''; $out = '';
@ -217,7 +217,7 @@ class ListCommand extends Command
); );
} }
} }
$last_host = $row->host_name; $last_host = $row->host_name;
if (! isset($row->service_description)) { if (! isset($row->service_description)) {
continue; continue;

View File

@ -196,7 +196,7 @@ class Zend_View_Helper_CommandForm extends Zend_View_Helper_Abstract
} }
$formCode = (string) $form; $formCode = (string) $form;
$jsLessSubmit = '<noscript>' $jsLessSubmit = '<noscript>'
. '<input type="submit" value="Change" class="button btn btn-cta" />' . '<input type="submit" value="Change" class="button btn btn-cta" />'
. '</noscript></form>'; . '</noscript></form>';

View File

@ -14,7 +14,7 @@ $viewHelper = $this->getHelper('MonitoringState');
<div class="content"> <div class="content">
<table class="action"> <table class="action">
<tbody> <tbody>
<?php foreach ($comments as $comment): <?php foreach ($comments as $comment):
$objectType = ($comment->comment_objecttype_id === '1') ? 'host' : 'service'; $objectType = ($comment->comment_objecttype_id === '1') ? 'host' : 'service';
$objectName = ($objectType === 'host') ? $comment->host_name : $comment->service_name; $objectName = ($objectType === 'host') ? $comment->host_name : $comment->service_name;

View File

@ -123,7 +123,7 @@ $services_not_processing_event_handlers = $total_services - $summary->services_p
</a> </a>
<?php endif ?> <?php endif ?>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -62,7 +62,7 @@ class AllcontactsQuery extends IdoQuery
array($this->contacts, $this->contactgroups), array($this->contacts, $this->contactgroups),
Zend_Db_Select::SQL_UNION_ALL Zend_Db_Select::SQL_UNION_ALL
); );
$this->baseQuery = $this->db->select()->distinct()->from( $this->baseQuery = $this->db->select()->distinct()->from(
array('c' => $sub), array('c' => $sub),
array() array()

View File

@ -90,7 +90,7 @@ form ul.errors {
padding: 0; padding: 0;
} }
form ul.errors li { form ul.errors li {
color: @colorCritical; color: @colorCritical;
font-weight: bold; font-weight: bold;
line-height: 1.5em; line-height: 1.5em;

View File

@ -284,7 +284,7 @@ a.critical {
display: inline-block; display: inline-block;
padding: 0.5em; padding: 0.5em;
margin: 0.5em; margin: 0.5em;
background: #555; background: #555;
border-radius: 0.5em; border-radius: 0.5em;
-moz-border-radius: 0.5em; -moz-border-radius: 0.5em;
@ -293,7 +293,7 @@ a.critical {
/* Box caption */ /* Box caption */
.boxview div.box h2 { .boxview div.box h2 {
margin: 0.5em 0 1em; margin: 0.5em 0 1em;
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
@ -317,7 +317,7 @@ a.critical {
/* Box separator */ /* Box separator */
.boxview div.box-separator:first-child { .boxview div.box-separator:first-child {
border-top-width: 0; border-top-width: 0;
border-top-left-radius: 0.5em; border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em; border-top-right-radius: 0.5em;
-moz-border-top-left-radius: 0.5em; -moz-border-top-left-radius: 0.5em;
@ -346,7 +346,7 @@ a.critical {
/* Any line of a box entry */ /* Any line of a box entry */
.boxview div.box.entry a { .boxview div.box.entry a {
display: block; display: block;
color: inherit; color: inherit;
} }

View File

@ -25,7 +25,7 @@ ul.pagination {
.pagination > li > a { .pagination > li > a {
color: #555; color: #555;
text-decoration: none; text-decoration: none;
outline: 0; outline: 0;
} }

View File

@ -3,15 +3,15 @@
'use strict'; 'use strict';
Object.keys = Object.keys || function(o) { Object.keys = Object.keys || function(o) {
var result = []; var result = [];
for(var name in o) { for(var name in o) {
if (o.hasOwnProperty(name)) { if (o.hasOwnProperty(name)) {
result.push(name); result.push(name);
} }
} }
return result; return result;
}; };
})(Object); })(Object);

View File

@ -234,16 +234,16 @@
icinga.events.layout2col(); icinga.events.layout2col();
} }
} }
icinga.loader.loadUrl(href, $target); icinga.loader.loadUrl(href, $target);
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
if ($a.closest('#menu').length) { if ($a.closest('#menu').length) {
icinga.events.layout1col(); icinga.events.layout1col();
return false; return false;
} }
if ($a.closest('table.action').length) { if ($a.closest('table.action').length) {
if ($('#layout').hasClass('twocols')) { if ($('#layout').hasClass('twocols')) {
if ($target.attr('id') === 'col2') { if ($target.attr('id') === 'col2') {

View File

@ -173,7 +173,7 @@
} }
interval = interval * 1000; interval = interval * 1000;
// TODO: // TODO:
if ((lastUpdate + interval) > (new Date()).getTime()) { if ((lastUpdate + interval) > (new Date()).getTime()) {
// self.icinga.logger.info( // self.icinga.logger.info(
// 'Skipping refresh', // 'Skipping refresh',
@ -402,7 +402,7 @@
this.icinga.utils.timeShort() + this.icinga.utils.timeShort() +
'.' '.'
); );
this.icinga.ui.fixControls(); this.icinga.ui.fixControls();
} }

View File

@ -72,7 +72,7 @@
}, },
/** /**
* Write a log message with the given level to the console * Write a log message with the given level to the console
*/ */
writeToConsole: function (level, args) { writeToConsole: function (level, args) {

View File

@ -125,7 +125,7 @@
}; };
Icinga.Timer.Interval = function (callback, interval) { Icinga.Timer.Interval = function (callback, interval) {
if ('undefined' === typeof interval) { if ('undefined' === typeof interval) {
throw 'Timer interval is required'; throw 'Timer interval is required';
} }
@ -156,7 +156,7 @@
this.scheduledNextRun += this.interval; this.scheduledNextRun += this.interval;
} }
this.callback(); this.callback();
}, },
destroy: function () { destroy: function () {

View File

@ -133,7 +133,7 @@
$('#main > .container').css({ $('#main > .container').css({
width: '100%' width: '100%'
}); });
} }
}, },
setTitle: function (title) { setTitle: function (title) {

View File

@ -54,7 +54,7 @@
}, },
/** /**
* Parse a given Url and return an object * Parse a given Url and return an object
*/ */
parseUrl: function (url) { parseUrl: function (url) {

File diff suppressed because one or more lines are too long