summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-03-21 06:44:11 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-03-21 06:44:11 +0100
commit20e3b5ebd785793d154c21b8d4499aff68206d65 (patch)
treeda47b8700fcdf53bca7d397f07198af6dfc273c2 /src/SemanticScuttle/Service
parent2f865db5132c65311f277586459bcbf4c026a8e6 (diff)
downloadsemanticscuttle-20e3b5ebd785793d154c21b8d4499aff68206d65.tar.gz
semanticscuttle-20e3b5ebd785793d154c21b8d4499aff68206d65.tar.bz2
fix some CS, remove unneeded include - file is included in header.php
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r--src/SemanticScuttle/Service/Bookmark2Tag.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark2Tag.php b/src/SemanticScuttle/Service/Bookmark2Tag.php
index ed5e328..49517b0 100644
--- a/src/SemanticScuttle/Service/Bookmark2Tag.php
+++ b/src/SemanticScuttle/Service/Bookmark2Tag.php
@@ -92,16 +92,14 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
}
}
- $tagservice =SemanticScuttle_Service_Factory::get('Tag');
+ $tagservice = SemanticScuttle_Service_Factory::get('Tag');
$tags = $tagservice->normalize($tags);
-
$tags_count = is_array($tags)?count($tags):0;
if (is_array($tags)) {
- foreach($tags as $i => $tag) {
+ foreach ($tags as $i => $tag) {
$tags[$i] = trim(utf8_strtolower($tags[$i]));
if ($fromApi) {
- include_once 'SemanticScuttle/functions.php';
$tags[$i] = convertTag($tags[$i], 'in');
}
}
@@ -655,7 +653,7 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
// Attach new tags
$new = $tagservice->normalize($new);
- foreach(array_keys($bookmarks) as $key) {
+ foreach (array_keys($bookmarks) as $key) {
$row = $bookmarks[$key];
$this->attachTags($row['bId'], $new, $fromApi, NULL, false);
}