Skip to content

Commit

Permalink
Fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Oct 21, 2021
1 parent 6cdabb0 commit 387a238
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"*": "dist"
}
},
"extra": {
"ssp-mixedcase-module-name": "Monitor"
},
"autoload": {
"psr-4": {
"SimpleSAML\\Module\\monitor\\": "lib/"
Expand Down
8 changes: 4 additions & 4 deletions lib/Controller/MonitorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* This class serves the different views available in the module.
*
* @package SimpleSAML\Module\Monitor
* @package SimpleSAML\Module\monitor
*/
class MonitorController
{
Expand Down Expand Up @@ -119,7 +119,7 @@ public function main(string $format): Response
$t = $this->processText();
break;
default:
$t = new Template($this->config, 'Monitor:monitor.twig');
$t = new Template($this->config, 'monitor:monitor.twig');
break;
}

Expand All @@ -139,7 +139,7 @@ public function main(string $format): Response
*/
private function processXml(): Template
{
$t = new Template($this->config, 'Monitor:monitor.xml.twig');
$t = new Template($this->config, 'monitor:monitor.xml.twig');
$t->headers->set('Content-Type', 'text/xml');
return $t;
}
Expand All @@ -164,7 +164,7 @@ private function processJson(array $results): JsonResponse
*/
private function processText(): Template
{
$t = new Template($this->config, 'Monitor:monitor.text.twig');
$t = new Template($this->config, 'monitor:monitor.text.twig');

if ($this->state === State::OK) {
$t->data['status'] = 'OK';
Expand Down
2 changes: 1 addition & 1 deletion lib/TestCase/Cert.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Cert extends \SimpleSAML\Module\monitor\TestCaseFactory


/**
* @var \SimpleSAML\Module\Monitor\TestData $testData
* @var \SimpleSAML\Module\monitor\TestData $testData
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/TestCaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getCategory(): string


/**
* @return \SimpleSAML\Module\Monitor\TestData
* @return \SimpleSAML\Module\monitor\TestData
*/
public function getTestData(): TestData
{
Expand Down
2 changes: 1 addition & 1 deletion lib/TestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use SimpleSAML\Configuration;
use SimpleSAML\Metadata\MetaDataStorageSource;
use SimpleSAML\Module\Monitor\DependencyInjection;
use SimpleSAML\Module\monitor\DependencyInjection;

use function array_merge;
use function array_shift;
Expand Down
2 changes: 1 addition & 1 deletion templates/monitor.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% extends "base.twig" %}

{% block preload %}
<link rel="stylesheet" type="text/css" href="{{ asset('css/monitor.css', 'Monitor') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('css/monitor.css', 'monitor') }}">
{% endblock %}

{% block content %}
Expand Down

0 comments on commit 387a238

Please sign in to comment.