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

Commit

Permalink
Merge pull request #21 from burzum/master
Browse files Browse the repository at this point in the history
Merging PRs made to master back to develop.
  • Loading branch information
burzum committed Sep 3, 2015
2 parents fd6cbfb + ed97a2a commit fce92fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Remove extra files for distribution archives
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpunit.xml.dist export-ignore
tests export-ignore
docs export-ignore
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "burzum/cakephp-html-purifier",
"type": "cakephp-plugin",
"description": "HtmlPurifier plugin for CakePHP",
"keywords": ["html", "sensitization", "purifier", "validation", "tidy", "markup"],
"keywords": ["html", "sanitize", "purifier", "validation", "tidy", "markup"],
"homepage": "http://github.com/burzum/cakephp-html-purifier",
"license": "MIT",
"authors": [
Expand All @@ -27,8 +27,5 @@
"Cake\\Test\\": "/vendor/cakephp/cakephp/tests",
"Burzum\\HtmlPurifier\\Test\\": "tests"
}
},
"scripts": {
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
}
}
6 changes: 3 additions & 3 deletions src/Lib/Purifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class Purifier {
*
* @var array
*/
protected $_configs = array();
protected $_configs = [];

/**
* HTMLPurifier instances
*
* @var array
*/
protected $_instances = array();
protected $_instances = [];

/**
* Return a singleton instance of the StorageManager.
Expand All @@ -31,7 +31,7 @@ class Purifier {
*/
public static function &getInstance()
{
static $instance = array();
static $instance = [];
if (!$instance) {
$instance[0] = new Purifier();
}
Expand Down

0 comments on commit fce92fc

Please sign in to comment.