Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit fce92fc

Browse files
committed
Merge pull request #21 from burzum/master
Merging PRs made to master back to develop.
2 parents fd6cbfb + ed97a2a commit fce92fc

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Remove extra files for distribution archives
2+
.gitattributes export-ignore
3+
.gitignore export-ignore
4+
.travis.yml export-ignore
5+
phpunit.xml.dist export-ignore
6+
tests export-ignore
7+
docs export-ignore

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "burzum/cakephp-html-purifier",
33
"type": "cakephp-plugin",
44
"description": "HtmlPurifier plugin for CakePHP",
5-
"keywords": ["html", "sensitization", "purifier", "validation", "tidy", "markup"],
5+
"keywords": ["html", "sanitize", "purifier", "validation", "tidy", "markup"],
66
"homepage": "http://github.com/burzum/cakephp-html-purifier",
77
"license": "MIT",
88
"authors": [
@@ -27,8 +27,5 @@
2727
"Cake\\Test\\": "/vendor/cakephp/cakephp/tests",
2828
"Burzum\\HtmlPurifier\\Test\\": "tests"
2929
}
30-
},
31-
"scripts": {
32-
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
3330
}
3431
}

src/Lib/Purifier.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class Purifier {
1515
*
1616
* @var array
1717
*/
18-
protected $_configs = array();
18+
protected $_configs = [];
1919

2020
/**
2121
* HTMLPurifier instances
2222
*
2323
* @var array
2424
*/
25-
protected $_instances = array();
25+
protected $_instances = [];
2626

2727
/**
2828
* Return a singleton instance of the StorageManager.
@@ -31,7 +31,7 @@ class Purifier {
3131
*/
3232
public static function &getInstance()
3333
{
34-
static $instance = array();
34+
static $instance = [];
3535
if (!$instance) {
3636
$instance[0] = new Purifier();
3737
}

0 commit comments

Comments
 (0)