X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FTagsAssigner.php;h=e6b4989f8d64ba638b30e6bd7554bb96d8aa799e;hb=ada5d5b2694ec95c6ca84aa91f22add1973343e0;hp=a2fb0b9a940c25588ec7d588b0ee0922daccb47d;hpb=d181bd728565454ec53d960f321ed0a4c3bf26c8;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php index a2fb0b9a..e6b4989f 100644 --- a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php +++ b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php @@ -32,7 +32,7 @@ class TagsAssigner { $tagsEntities = []; - if (!is_array($tags)) { + if (!\is_array($tags)) { $tags = explode(',', $tags); } @@ -45,10 +45,10 @@ class TagsAssigner } foreach ($tags as $label) { - $label = trim($label); + $label = trim(mb_convert_case($label, MB_CASE_LOWER)); // avoid empty tag - if (0 === strlen($label)) { + if (0 === \strlen($label)) { continue; }