summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorbastei <bastei@users.noreply.github.com>2013-09-06 19:06:22 +0200
committerbastei <bastei@users.noreply.github.com>2013-09-06 19:06:22 +0200
commita73b7da2ec8ceaf6716ed8e6a3041bfee726f71a (patch)
tree0c64e5ba1b55dada88f14d358c3813b3c3cbc496 /utility
parente57fe91d2af61367f5eb78cf4051172e8335b8bc (diff)
curly braces are beautiful
Diffstat (limited to 'utility')
-rw-r--r--utility/articleenhancer/articleenhancer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/utility/articleenhancer/articleenhancer.php b/utility/articleenhancer/articleenhancer.php
index c9b61a135..e0d60d4c4 100644
--- a/utility/articleenhancer/articleenhancer.php
+++ b/utility/articleenhancer/articleenhancer.php
@@ -63,10 +63,11 @@ abstract class ArticleEnhancer {
// convert encoding by detecting charset from header
$contentType = $file->headers['content-type'];
- if( preg_match( '/(?<=charset=)[^;]*/', $contentType, $matches ) )
+ if( preg_match( '/(?<=charset=)[^;]*/', $contentType, $matches ) ) {
$body = mb_convert_encoding($file->body, 'HTML-ENTITIES', $matches[0]);
- else
+ } else {
$body = $file->body;
+ }
$dom = new \DOMDocument();
@$dom->loadHTML($body);