diff --git a/core/ApiController.php b/core/ApiController.php index b8e1f5740..b3af31ab0 100644 --- a/core/ApiController.php +++ b/core/ApiController.php @@ -51,7 +51,7 @@ protected function _exceptionHandler(Exception $e) { $errorInfo['code'] = $e->getCode(); $errorInfo['msg'] = $e->getMessage(); - switch ($errorInfo['code']) + switch($errorInfo['code']) { case MIDAS_INVALID_PARAMETER: case MIDAS_INVALID_POLICY: @@ -130,7 +130,7 @@ protected function _genericAction($args, $resource, $restAction, $apiFunctions, $calledFunction = $calledFunction . 'Wrapper'; } $resultsArray = $ApiComponent->$calledFunction($args, $userDao); - if (isset($resultsArray)) + if(isset($resultsArray)) { $apiResults['data'] = $resultsArray; } @@ -139,7 +139,7 @@ protected function _genericAction($args, $resource, $restAction, $apiFunctions, $apiResults['msg'] = "succeed!"; // there is no exception if code reaches here } } - catch (Exception $e) + catch(Exception $e) { list($apiResults['error'], $httpCode) = $this->_exceptionHandler($e); } diff --git a/core/constant/global.php b/core/constant/global.php index 5c2079a8e..4a7eafec3 100644 --- a/core/constant/global.php +++ b/core/constant/global.php @@ -18,7 +18,7 @@ limitations under the License. =========================================================================*/ -if (file_exists(BASE_PATH . '/core/configs/core.local.ini')) +if(file_exists(BASE_PATH . '/core/configs/core.local.ini')) { define('CORE_CONFIG', BASE_PATH . '/core/configs/core.local.ini'); } @@ -27,7 +27,7 @@ define('CORE_CONFIG', BASE_PATH . '/core/configs/core.ini'); } -if (file_exists(BASE_PATH . '/core/configs/application.local.ini')) +if(file_exists(BASE_PATH . '/core/configs/application.local.ini')) { define('APPLICATION_CONFIG', BASE_PATH . '/core/configs/application.local.ini'); } @@ -36,7 +36,7 @@ define('APPLICATION_CONFIG', BASE_PATH . '/core/configs/application.ini'); } -if (file_exists(BASE_PATH . '/core/configs/database.local.ini')) +if(file_exists(BASE_PATH . '/core/configs/database.local.ini')) { define('DATABASE_CONFIG', BASE_PATH . '/core/configs/database.local.ini'); } diff --git a/core/controllers/components/ExportComponent.php b/core/controllers/components/ExportComponent.php index 67c62f4c5..df8abe9b8 100644 --- a/core/controllers/components/ExportComponent.php +++ b/core/controllers/components/ExportComponent.php @@ -185,7 +185,7 @@ function exportBitstreams($userDao, $targetDir, $itemIds, $shouldSymLink) } } // end foreach($bitstreams as $bitstream) } // end if(!empty($bitstreams)) - } // end foreach ($revisions ... + } // end foreach($revisions ... } } // end function exportBitstreams } // end class diff --git a/core/layouts/empty.phtml b/core/layouts/empty.phtml index b0f7237e2..a83180c72 100644 --- a/core/layouts/empty.phtml +++ b/core/layouts/empty.phtml @@ -38,7 +38,7 @@ echo $this->doctype() smartoptimizer == 1) + if(Zend_Registry::get("configGlobal")->smartoptimizer == 1) { echo ' smartoptimizer == 1) + if(Zend_Registry::get("configGlobal")->smartoptimizer == 1) { echo 'closeregistration) || Zend_Registry::get('configGlobal')->closeregistration == "0") { echo ' '.$this->t('Register').''; } @@ -317,7 +317,7 @@ echo $this->doctype() echo "

{$this->t('Recently Viewed')}

"; $recentReverse=array_reverse($this->recentItems); echo '