summaryrefslogtreecommitdiffstats
path: root/lib/vcategories.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r--lib/vcategories.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php
index 20d9e3b5d61..f5123adeeb6 100644
--- a/lib/vcategories.php
+++ b/lib/vcategories.php
@@ -125,11 +125,11 @@ class OC_VCategories {
* $result = $stmt->execute();
* $objects = array();
* if(!is_null($result)) {
- * while( $row = $result->fetchRow()){
+ * while( $row = $result->fetchRow()) {
* $objects[] = $row['carddata'];
* }
* }
- * $categories->rescan($objects);
+ * $categories->rescan($objects);
*/
public function rescan($objects, $sync=true, $reset=true) {
if($reset === true) {
@@ -183,7 +183,7 @@ class OC_VCategories {
if(!is_null($objects)) {
foreach($objects as $key=>&$value) {
$vobject = OC_VObject::parse($value[1]);
- if(!is_null($vobject)){
+ if(!is_null($vobject)) {
$categories = $vobject->getAsArray('CATEGORIES');
//OC_Log::write('core','OC_VCategories::delete, before: '.$key.': '.print_r($categories, true), OC_Log::DEBUG);
foreach($names as $name) {
@@ -219,7 +219,7 @@ class OC_VCategories {
if(!is_array($haystack)) {
return false;
}
- return array_search(strtolower($needle),array_map('strtolower',$haystack));
+ return array_search(strtolower($needle),array_map('strtolower',$haystack));
}
}