Plugins: Improve onPagesLoaded() code styling
This commit is contained in:
parent
364b9066d9
commit
913cf3816f
2 changed files with 12 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue