Skip to content

A free open source IT asset/license management system

Fix code style: Remove whitespace in end block comments

Lukas Kraicfb18c1a0bea3
diff --git a/app/Http/Controllers/ViewAssetsController.php b/app/Http/Controllers/ViewAssetsController.php
index d73068afe7..ee4916f0a7 100755
--- a/app/Http/Controllers/ViewAssetsController.php
+++ b/app/Http/Controllers/ViewAssetsController.php
@@ -41,9 +41,9 @@ class ViewAssetsController extends Controller
if ($field->display_in_user_view == '1') {
$fieldArray[$field->db_column] = $field->name;
}
- }//end foreach
+ }//endforeach
}
- }//end foreach
+ }//endforeach
return array_unique($fieldArray);
}
@@ -80,7 +80,7 @@ class ViewAssetsController extends Controller
} else {
// User has no subordinates, so they only see themselves
$subordinates = collect([$authUser]);
- }//end if
+ }//endif
}
// If the user has subordinates and a user_id is provided in the request
diff --git a/app/Models/User.php b/app/Models/User.php
index affd76a729..825fba640b 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -1000,7 +1000,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
// Recursive call for this subordinate's subordinates
$this->fetchSubordinatesRecursive($directSubordinate, $subs);
}
- }//end foreach
+ }//endforeach
}
/**