Skip to content

Commit

Permalink
🤖 Automatic code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain authored Feb 1, 2024
1 parent 957fa14 commit cac277a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bureaucracy_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*/
class syntax_plugin_bureaucracy_field_dataplugin extends helper_plugin_bureaucracy_field
{
public $opt;
public $tpl;
public $error;
private $args = [];
private $additional;

Expand Down
3 changes: 3 additions & 0 deletions helper/aliastextbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*/
class helper_plugin_data_aliastextbox extends helper_plugin_bureaucracy_field
{
public $opt;
public $tpl;
public $error;
private $args;
private $additional;

Expand Down
5 changes: 2 additions & 3 deletions syntax/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ public function saveData($data, $id, $title)
* @fixme replace this madness
* @return bool|mixed
*/
public function replaceQuery()
public function replaceQuery(...$args)
{
$args = func_get_args();
$argc = func_num_args();

if ($argc > 1) {
Expand All @@ -320,7 +319,7 @@ public function replaceQuery()
$sqlite = $this->dthlp->getDB();
if (!$sqlite) return false;

return call_user_func_array(array(&$sqlite, 'query'), $args);
return call_user_func_array([&$sqlite, 'query'], $args);
}


Expand Down

0 comments on commit cac277a

Please sign in to comment.