Plugins: Improve onPagesLoaded() code styling

This commit is contained in:
Daniel Rudolf 2015-11-27 19:31:22 +01:00
parent 364b9066d9
commit 913cf3816f
2 changed files with 12 additions and 4 deletions

View file

@ -342,8 +342,12 @@ class PicoDeprecated extends AbstractPicoPlugin
*
* @see DummyPlugin::onPagesLoaded()
*/
public function onPagesLoaded(array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null)
{
public function onPagesLoaded(
array &$pages,
array &$currentPage = null,
array &$previousPage = null,
array &$nextPage = null
) {
// remove keys of pages array
$plainPages = array();
foreach ($pages as &$pageData) {

View file

@ -270,8 +270,12 @@ final class DummyPlugin extends AbstractPicoPlugin
* @param array|null &$nextPage data of the next page
* @return void
*/
public function onPagesLoaded(array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null)
{
public function onPagesLoaded(
array &$pages,
array &$currentPage = null,
array &$previousPage = null,
array &$nextPage = null
) {
// your code
}