Scrutinizer fixes (also test that CI triggers work)

This commit is contained in:
2018-06-08 13:32:33 +03:00
parent bf00e32704
commit 85dae26c29
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ class BBCodeParser
{ {
use ArrayTrait; use ArrayTrait;
/**
* @var array[] These are our BBCode parsers
*/
public $parsers = [ public $parsers = [
'bold' => [ 'bold' => [
'pattern' => '/\[b\](.*?)\[\/b\]/s', 'pattern' => '/\[b\](.*?)\[\/b\]/s',
@@ -114,6 +117,9 @@ class BBCodeParser
] ]
]; ];
/**
* @var array[] Our enabled parsers available with getParsers()
*/
private $enabledParsers; private $enabledParsers;
public function __construct() public function __construct()

View File

@@ -14,7 +14,7 @@ class BBCodeParserTest extends TestCase
/** /**
* @see \ivuorinen\BBCode\BBCodeParser::$parsers * @see \ivuorinen\BBCode\BBCodeParser::$parsers
* @var array Easier to maintain basic tests * @var array[] Easier to maintain basic tests
*/ */
public $testedParsers = array( public $testedParsers = array(
'bold' => array( 'bold' => array(