diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2016-02-29 22:14:08 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2016-03-29 17:40:11 +0200 |
commit | dc76cfdcf0521552667d44395a2290a5c8e48281 (patch) | |
tree | f7f0eea869f1abd47b7a9aa5b3314c617df3dd57 /framework | |
parent | 0ec0d073c120a2db371dfd4cd6f2a81fd9068676 (diff) |
Fixed 10 "critical" issues found by scrutinizer
* create function => closures
* removed var_dump from tests
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index 88e7bb62..5c4d9388 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -400,9 +400,9 @@ class TClientScriptManager extends TApplicationComponent public function getStyleSheetUrls() { $stylesheets = array_values( - array_map( - create_function('$e', 'return is_array($e) ? $e[0] : $e;'), - $this->_styleSheetFiles) + array_map(function($e) { + return is_array($e) ? $e[0] : $e; + }, $this->_styleSheetFiles) ); foreach(Prado::getApplication()->getAssetManager()->getPublished() as $path=>$url) |