Coding style fixes

This commit is contained in:
Rouslan Placella 2012-06-12 14:04:39 +01:00
parent ffe5d7fdc3
commit 1c01c222ef
3 changed files with 14 additions and 11 deletions

View File

@ -257,11 +257,13 @@ class PMA_Footer
* Set the ajax flag to indicate whether
* we are sevicing an ajax request
*
* @param bool $isAjax Whether we are sevicing an ajax request
*
* @return void
*/
public function setAjax($isAjax)
{
$this->_isAjax = $isAjax;
$this->_isAjax = ($isAjax == true);
}
/**

View File

@ -1,6 +1,7 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Used to render the header of PMA's pages
*
* @package PhpMyAdmin
*/
@ -194,11 +195,13 @@ class PMA_Header
* Set the ajax flag to indicate whether
* we are sevicing an ajax request
*
* @param bool $isAjax Whether we are sevicing an ajax request
*
* @return void
*/
public function setAjax($isAjax)
{
$this->_isAjax = $isAjax;
$this->_isAjax = ($isAjax == true);
}
/**
@ -431,7 +434,7 @@ class PMA_Header
*/
private function _getTitleTag()
{
$retval = "<title>";
$retval = "<title>";
$retval .= $this->_getPageTitle();
$retval .= "</title>";
return $retval;

View File

@ -97,7 +97,7 @@ class PMA_Response
$this->_footer = new PMA_Footer();
$this->_isSuccess = true;
$this->_isAjax = false;
$this->_isAjax = false;
if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
$this->_isAjax = true;
}
@ -123,15 +123,13 @@ class PMA_Response
* Set the status of an ajax response,
* whether it is a success or an error
*
* @param bool $state Whether the request was successfully processed
*
* @return void
*/
public function isSuccess($state)
{
if ($state) {
$this->_isSuccess = true;
} else {
$this->_isSuccess = false;
}
$this->_isSuccess = ($state == true);
}
/**
@ -276,7 +274,7 @@ class PMA_Response
$this->_JSON['success'] = true;
} else {
$this->_JSON['success'] = false;
$this->_JSON['error'] = $this->_JSON['message'];
$this->_JSON['error'] = $this->_JSON['message'];
unset($this->_JSON['message']);
}
@ -300,7 +298,7 @@ class PMA_Response
{
$response = PMA_Response::getInstance();
chdir($response->getCWD());
$buffer = PMA_OutputBuffering::getInstance();
$buffer = PMA_OutputBuffering::getInstance();
if (empty($response->_HTML)) {
$response->_HTML = $buffer->getContents();
}