CC: Add newline to end of file where missing

Following command was used:
    $ find application/ library/Icinga/ modules/ -name *.php | xargs sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba;$a\'
This commit is contained in:
Eric Lippmann 2013-08-07 10:27:50 +02:00
parent ab1673f198
commit 290c8c5225
67 changed files with 39 additions and 67 deletions

View File

@ -57,4 +57,4 @@ class ConfigurationController extends ActionController
} }
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -107,4 +107,4 @@ class ModulesController extends ActionController
} }
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -148,4 +148,4 @@ class StaticController extends ActionController
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -38,4 +38,4 @@ class Zend_View_Helper_Auth extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -52,4 +52,4 @@ class Zend_View_Helper_FormDate extends \Zend_View_Helper_FormText
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -52,4 +52,4 @@ class Zend_View_Helper_FormDateTime extends \Zend_View_Helper_FormText
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -52,4 +52,4 @@ class Zend_View_Helper_FormNumber extends \Zend_View_Helper_FormText
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -52,4 +52,4 @@ class Zend_View_Helper_FormTime extends \Zend_View_Helper_FormText
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -35,4 +35,4 @@ class Zend_View_Helper_Format extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -52,4 +52,4 @@ class Zend_View_Helper_Img extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreStart // @codingStandardsIgnoreStart

View File

@ -42,4 +42,4 @@ class Zend_View_Helper_QUrl extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -121,4 +121,4 @@ class Zend_View_Helper_Qlink extends Zend_View_Helper_Abstract
*/ */
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -71,4 +71,4 @@ class Zend_View_Helper_TimeSince extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -140,4 +140,4 @@ class Zend_View_Helper_Util extends Zend_View_Helper_Abstract
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -137,4 +137,4 @@ class Zend_View_Helper_Container extends Zend_View_Helper_Abstract
} }
} }

View File

@ -38,4 +38,3 @@ class Backend
return self::$instances[$name]; return self::$instances[$name];
} }
} }

View File

@ -43,4 +43,3 @@ class Csv
return $csv; return $csv;
} }
} }

View File

@ -115,4 +115,4 @@ class SessionStore implements SplObserver, LoadInterface
{ {
return $this->session->get(self::DEFAULT_SESSION_NAMESPACE, array()); return $this->session->get(self::DEFAULT_SESSION_NAMESPACE, array());
} }
} }

View File

@ -92,4 +92,4 @@ class Icinga_Web_Paginator_ScrollingStyle_SlidingWithBorder implements Zend_Pagi
} }
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -61,4 +61,3 @@ class View extends ZfViewAbstract
} }
} }
} }

View File

@ -16,4 +16,3 @@ function url($path = null, $params = null)
} }
return $url; return $url;
} }

View File

@ -7,4 +7,3 @@ use Zend_View_Stream as ZfViewStream;
class ViewStream extends ZfViewStream class ViewStream extends ZfViewStream
{ {
} }

View File

@ -192,4 +192,3 @@ class Dashboard extends AbstractWidget
} }
} }
} }

View File

@ -114,4 +114,3 @@ class Component
return $htm; return $htm;
} }
} }

View File

@ -102,4 +102,3 @@ class Pane
return implode('', $this->components); return implode('', $this->components);
} }
} }

View File

@ -79,4 +79,3 @@ class Form extends AbstractWidget
return (string) $this->form; return (string) $this->form;
} }
} }

View File

@ -777,4 +777,4 @@ class Monitoring_CommandController extends ModuleActionController
} }
} }
// @codingStandardsIgnoreStop // @codingStandardsIgnoreStop

View File

@ -509,4 +509,4 @@ class Monitoring_ShowController extends ModuleActionController
} }
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd

View File

@ -67,4 +67,3 @@ class Monitoring_SummaryController extends ModuleActionController
} }
} }

View File

@ -16,4 +16,3 @@ class Zend_View_Helper_CommandArguments extends Zend_View_Helper_Abstract
return "<dl>\n" . implode("\n", $parts) . "</dl>\n"; return "<dl>\n" . implode("\n", $parts) . "</dl>\n";
} }
} }

View File

@ -80,4 +80,4 @@ class Zend_View_Helper_MonitoringFlags extends Zend_View_Helper_Abstract
return $out; return $out;
} }
} }

View File

@ -88,4 +88,3 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
return $result; return $result;
} }
} }

View File

@ -84,4 +84,3 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
return self::$purifier; return self::$purifier;
} }
} }

View File

@ -29,4 +29,3 @@ class Zend_View_Helper_ResolveComments extends Zend_View_Helper_Abstract
return $ret; return $ret;
} }
} }

View File

@ -123,4 +123,3 @@ $out .= "\n";
$finished = true; $finished = true;
} }
} }

View File

@ -35,4 +35,4 @@ class StatusQuery extends Query
} }
} }

View File

@ -58,4 +58,3 @@ class Environment
return CommandPipe::getInstance(self::config($env, 'commandPipe')); return CommandPipe::getInstance(self::config($env, 'commandPipe'));
} }
} }

View File

@ -143,4 +143,3 @@ abstract class AbstractObject
return $this; return $this;
} }
} }

View File

@ -55,4 +55,3 @@ class Host extends AbstractObject
))->where('host_name', $this->name1)->fetchRow(); ))->where('host_name', $this->name1)->fetchRow();
} }
} }

View File

@ -66,4 +66,3 @@ class Service extends AbstractObject
->fetchRow(); ->fetchRow();
} }
} }

View File

@ -66,4 +66,3 @@ class PerfdataSet
} }
} }
} }

View File

@ -98,4 +98,4 @@ class ListControllerHostMySQLTest extends MonitoringControllerTest
$this->assertEquals(2, $hostToTest->host_unhandled_service_count, 'Testing correct open problems count (backend '.$backend.')'); $this->assertEquals(2, $hostToTest->host_unhandled_service_count, 'Testing correct open problems count (backend '.$backend.')');
} }
} }

View File

@ -66,4 +66,4 @@ class ListControllerServiceMySQLTest extends MonitoringControllerTest
} }
} }

View File

@ -120,4 +120,3 @@ class AcknowledgeFormTest extends BaseFormTest
); );
} }
} }

View File

@ -58,4 +58,4 @@ namespace Test\Monitoring\Forms\Command {
} }
} }
} }

View File

@ -66,4 +66,3 @@ class CommentFormTest extends BaseFormTest
); );
} }
} }

View File

@ -26,4 +26,3 @@ class CustomNotificationFormTest extends BaseFormTest
$this->assertTrue($form->isSubmittedAndValid()); $this->assertTrue($form->isSubmittedAndValid());
} }
} }

View File

@ -55,4 +55,3 @@ class DelayNotificationFormFormTest extends BaseFormTest
$this->assertEquals('notBetween', $errors[0], "Assert correct error message"); $this->assertEquals('notBetween', $errors[0], "Assert correct error message");
} }
} }

View File

@ -100,4 +100,3 @@ class RescheduleNextCheckFormTest extends BaseFormTest
$this->assertNotEquals($notes1, $notes2); $this->assertNotEquals($notes1, $notes2);
} }
} }

View File

@ -323,4 +323,3 @@ class ScheduleDowntimeFormTest extends BaseFormTest
$this->assertEquals(3600, ($time2 - $time1)); $this->assertEquals(3600, ($time2 - $time1));
} }
} }

View File

@ -101,4 +101,3 @@ class SubmitPassiveCheckResultFormTest extends BaseFormTest
); );
} }
} }

View File

@ -113,4 +113,4 @@ class MonitoringCommandsTest extends \PHPUnit_Framework_TestCase {
$nodes = $xpath->query('//button'); $nodes = $xpath->query('//button');
$this->assertEquals(20, $nodes->length); $this->assertEquals(20, $nodes->length);
} }
} }

View File

@ -113,4 +113,4 @@ class MonitoringFlagsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expected, $returnArray); $this->assertEquals($expected, $returnArray);
} }
} }

View File

@ -174,4 +174,3 @@ class ServicegroupsummaryqueryTest extends \PHPUnit_Framework_TestCase
)); ));
} }
} }

View File

@ -182,4 +182,4 @@ class MetaTest extends \PHPUnit_Framework_TestCase
$commands = $meta->getCommandForObject($test, Meta::TYPE_FULL); $commands = $meta->getCommandForObject($test, Meta::TYPE_FULL);
} }
} }

View File

@ -280,4 +280,4 @@ namespace Test\Monitoring\Testlib
} }
} }
} }
} }

View File

@ -127,4 +127,4 @@ class DataSourceTestSetup implements SetupStrategy, InsertionStrategy
{ {
$this->insertionStrategy->setConnection($connection); $this->insertionStrategy->setConnection($connection);
} }
} }

View File

@ -558,4 +558,4 @@ class TestFixture
$this->servicegroups[$groupname]["members"][] = &$service; $this->servicegroups[$groupname]["members"][] = &$service;
return new TestFixtureObjectClosure($this, $serviceHostPair); return new TestFixtureObjectClosure($this, $serviceHostPair);
} }
} }

View File

@ -97,4 +97,4 @@ EOF;
} }
EOF; EOF;
}; };

View File

@ -171,4 +171,4 @@ EOF;
comment_data={{TEXT}} comment_data={{TEXT}}
} }
EOF; EOF;
} }

View File

@ -30,4 +30,4 @@ interface InsertionStrategy {
* @param TestFixture $fixture * @param TestFixture $fixture
*/ */
public function insert(TestFixture $fixture); public function insert(TestFixture $fixture);
} }

View File

@ -79,4 +79,4 @@ class MySQLSetupStrategy implements SetupStrategy {
$connection->query("DROP TABLE ".$table[0]); $connection->query("DROP TABLE ".$table[0]);
} }
} }
} }

View File

@ -300,4 +300,4 @@ class PDOInsertionStrategy
$this->objectId++; $this->objectId++;
} }
} }
} }

View File

@ -74,4 +74,4 @@ class PgSQLSetupStrategy implements SetupStrategy {
$connection->query('DROP TABLE '.$table['table_name']); $connection->query('DROP TABLE '.$table['table_name']);
} }
} }
} }

View File

@ -32,4 +32,4 @@ interface SetupStrategy {
* @param mixed $resource * @param mixed $resource
*/ */
public function teardown($resource = null); public function teardown($resource = null);
} }

View File

@ -295,4 +295,4 @@ class StatusdatInsertionStrategy implements InsertionStrategy {
$this->statusDat .= "\n".$commentDefinition; $this->statusDat .= "\n".$commentDefinition;
} }
} }
} }

View File

@ -99,4 +99,4 @@ class StatusdatSetupStrategy implements SetupStrategy {
unlink($resource["objects_file"]); unlink($resource["objects_file"]);
} }
} }
} }