Skip to content

Commit

Permalink
change the pageTitle options to page_title to match the coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
zeuxisoo committed Feb 13, 2018
1 parent 6db27bf commit c229dcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Zeuxisoo/Whoops/Provider/Slim/WhoopsGuard.php
Expand Up @@ -50,8 +50,8 @@ public function install() {
$prettyPageHandler->setEditor($settings['whoops.editor']);
}

if (empty($settings['whoops.pageTitle']) === false) {
$prettyPageHandler->setPageTitle($settings['whoops.pageTitle']);
if (empty($settings['whoops.page_title']) === false) {
$prettyPageHandler->setPageTitle($settings['whoops.page_title']);
}

// Add more information to the PrettyPageHandler
Expand Down
2 changes: 1 addition & 1 deletion tests/WhoopsMiddlewareDICompatibilityTest.php
Expand Up @@ -78,7 +78,7 @@ public function testMiddlewareIsWorkingAndEditorIsSetDICompatibility() {
'settings' => [
'debug' => true,
'whoops.editor' => 'sublime',
'whoops.pageTitle' => 'Custom Page Title',
'whoops.page_title' => 'Custom Page Title',
]
]);
$container = $app->getContainer();
Expand Down
2 changes: 1 addition & 1 deletion tests/WhoopsMiddlewareTest.php
Expand Up @@ -78,7 +78,7 @@ public function testMiddlewareIsWorkingAndEditorIsSet() {
'settings' => [
'debug' => true,
'whoops.editor' => 'sublime',
'whoops.pageTitle' => 'Custom Page Title',
'whoops.page_title' => 'Custom Page Title',
]
]);
$container = $app->getContainer();
Expand Down

0 comments on commit c229dcc

Please sign in to comment.