Skip to content

Commit

Permalink
Merge pull request #146 from splitbrain/bot/autofix
Browse files Browse the repository at this point in the history
🤖 Automatic code style fixes
  • Loading branch information
splitbrain authored Dec 13, 2023
2 parents d045ee9 + 8a7c82a commit 33ea059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class action_plugin_pluginrepo extends ActionPlugin
/**
* Registers a callback function for a given event
*
* @param Doku_Event_Handler $controller
* @param EventHandler $controller
*/
public function register(EventHandler $controller)
{
Expand All @@ -28,7 +28,7 @@ public function register(EventHandler $controller)
* Handles the page write event and removes the database info
* when the plugin or template code is no longer in the source
*
* @param Doku_Event $event event object
* @param Event $event event object
*/
public function _cleanOldEntry(Event $event)
{
Expand Down
1 change: 1 addition & 0 deletions syntax/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function render($format, Doku_Renderer $R, $data)
$fields = preg_split("/[;,\s]+/", $data['select']);
$fields = array_filter($fields);
$fields = array_unique($fields);

$counter = count($fields);
for ($fieldItr = 0; $fieldItr < $counter; $fieldItr++) {
if (!in_array($fields[$fieldItr], $this->allowedfields)) {
Expand Down

0 comments on commit 33ea059

Please sign in to comment.