diff --git a/code/DocumentationPermalinks.php b/code/DocumentationPermalinks.php index 6e46c23..2d45b43 100755 --- a/code/DocumentationPermalinks.php +++ b/code/DocumentationPermalinks.php @@ -27,6 +27,8 @@ class DocumentationPermalinks { * * Do not need to include the language or the version current as it * will add it based off the language or version in the session + * + * @param array */ public static function add($map = array()) { if(ArrayLib::is_associative($map)) { @@ -40,7 +42,7 @@ class DocumentationPermalinks { /** * Return the location for a given short value. * - * @return String|false + * @return string|false */ public static function map($url) { return (isset(self::$mapping[$url])) ? self::$mapping[$url] : false; diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index 44ef8a0..c763e7b 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -341,7 +341,7 @@ class DocumentationViewer extends Controller { * * @return DataObject */ - function getEntities($version = false, $lang = false) { + public function getEntities($version = false, $lang = false) { $entities = DocumentationService::get_registered_entities($version, $lang); $output = new ArrayList(); @@ -376,7 +376,7 @@ class DocumentationViewer extends Controller { * * @return false|DocumentationEntity */ - function getEntity() { + public function getEntity() { if($this->entity) { return DocumentationService::is_registered_entity( $this->entity, @@ -396,7 +396,7 @@ class DocumentationViewer extends Controller { * * @return int */ - function locationExists() { + public function locationExists() { $entity = $this->getEntity(); if($entity) {