Skip to content

Commit

Permalink
Fix #20: Adopt PSR-12 coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Jun 6, 2023
1 parent d743509 commit e03e23f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions auth.php
@@ -1,4 +1,5 @@
<?php

/**
* DokuWiki Plugin authwordpress (Auth Component)
*
Expand Down Expand Up @@ -26,7 +27,6 @@
* PhpMissingReturnTypeInspection
*/


// must be run within Dokuwiki
if (!defined('DOKU_INC')) {
die();
Expand All @@ -45,7 +45,6 @@
// @codingStandardsIgnoreLine
class auth_plugin_authwordpress extends DokuWiki_Auth_Plugin
{

/**
* SQL statement to retrieve User data from WordPress DB
* (including group memberships)
Expand Down
1 change: 1 addition & 0 deletions conf/default.php
@@ -1,4 +1,5 @@
<?php

/**
* Default settings for the authwordpress plugin
*
Expand Down
2 changes: 1 addition & 1 deletion conf/metadata.php
@@ -1,11 +1,11 @@
<?php

/**
* Options for the authwordpress plugin
*
* @author Damien Regad <dregad@mantisbt.org>
*/


$meta['hostname'] = array('string');
$meta['port'] = array('numericopt');
$meta['database'] = array('string');
Expand Down
3 changes: 2 additions & 1 deletion phpcs.xml.dist
Expand Up @@ -12,10 +12,11 @@
<file>.</file>
<!-- Ignoring file copied verbatim from Wordpress source code -->
<exclude-pattern>./class-phpass.php</exclude-pattern>
<exclude-pattern>./lang</exclude-pattern>

<arg name="encoding" value="utf-8"/>

<rule ref="PSR2">
<rule ref="PSR12">
<!-- Allow files to both declare symbols and execute code
Needed because of the if (!defined('DOKU_INC'))
-->
Expand Down

0 comments on commit e03e23f

Please sign in to comment.