Mass removal of useless @param/@return PHPDoc annotations, pass 1

This commit is contained in:
Dylan K. Taylor
2020-01-21 15:10:18 +00:00
parent 7532c609fb
commit c4793241f5
322 changed files with 0 additions and 5360 deletions

View File

@ -40,10 +40,6 @@ class WritableBook extends Item{
/**
* Returns whether the given page exists in this book.
*
* @param int $pageId
*
* @return bool
*/
public function pageExists(int $pageId) : bool{
return $this->getPagesTag()->isset($pageId);
@ -51,10 +47,6 @@ class WritableBook extends Item{
/**
* Returns a string containing the content of a page (which could be empty), or null if the page doesn't exist.
*
* @param int $pageId
*
* @return string|null
*/
public function getPageText(int $pageId) : ?string{
$pages = $this->getNamedTag()->getListTag(self::TAG_PAGES);
@ -73,9 +65,6 @@ class WritableBook extends Item{
/**
* Sets the text of a page in the book. Adds the page if the page does not yet exist.
*
* @param int $pageId
* @param string $pageText
*
* @return bool indicating whether the page was created or not.
*/
public function setPageText(int $pageId, string $pageText) : bool{
@ -99,8 +88,6 @@ class WritableBook extends Item{
/**
* Adds a new page with the given page ID.
* Creates a new page for every page between the given ID and existing pages that doesn't yet exist.
*
* @param int $pageId
*/
public function addPage(int $pageId) : void{
if($pageId < 0){
@ -122,8 +109,6 @@ class WritableBook extends Item{
/**
* Deletes an existing page with the given page ID.
*
* @param int $pageId
*
* @return bool indicating success
*/
public function deletePage(int $pageId) : bool{
@ -137,9 +122,6 @@ class WritableBook extends Item{
/**
* Inserts a new page with the given text and moves other pages upwards.
*
* @param int $pageId
* @param string $pageText
*
* @return bool indicating success
*/
public function insertPage(int $pageId, string $pageText = "") : bool{
@ -158,9 +140,6 @@ class WritableBook extends Item{
/**
* Switches the text of two pages with each other.
*
* @param int $pageId1
* @param int $pageId2
*
* @return bool indicating success
*/
public function swapPages(int $pageId1, int $pageId2) : bool{