Skip to content

Commit

Permalink
[5.2] Cleanup of return types for phpstan (#43350)
Browse files Browse the repository at this point in the history
* Cleanup of return types

* Return nothing instead of an empty string

* Update OverridesModel.php
  • Loading branch information
Hackwar authored May 29, 2024
1 parent 4c4f5b5 commit dfb572d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ private function migrateTinymceConfiguration(): bool
/**
* setup Guided Tours Unique Identifiers
*
* @return boolean True on success
* @return void
*
* @since 5.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ public function publish(&$pks, $value = 1)

return true;
}

return false;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function delete($cids)
/**
* Removes all of the cached strings from the table.
*
* @return boolean result of operation
* @return void|\RuntimeException
*
* @since 3.4.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public function save($key = null, $urlVar = null)
$this->setRedirect(Route::_('index.php?option=com_menus&view=menus', false));
break;
}

return true;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function save($key = null, $urlVar = null)
/**
* Method to get the other modules in the same position
*
* @return string The data for the Ajax request.
* @return void
*
* @since 3.6.3
*/
Expand Down Expand Up @@ -303,7 +303,7 @@ public function orderPosition()
} catch (\RuntimeException $e) {
$app->enqueueMessage($e->getMessage(), 'error');

return '';
return;
}

$orders2 = [];
Expand Down

0 comments on commit dfb572d

Please sign in to comment.