]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
fix some CS, remove unneeded include - file is included in header.php
authorChristian Weiske <cweiske@cweiske.de>
Thu, 21 Mar 2013 05:44:11 +0000 (06:44 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 21 Mar 2013 05:44:11 +0000 (06:44 +0100)
src/SemanticScuttle/Service/Bookmark2Tag.php

index ed5e3285da6e9e31b4514c5cbe11e139f662464e..49517b018c7970426fe20ae5c6b7a9e947a6c02c 100644 (file)
@@ -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);
         }