[Pkg-owncloud-commits] [owncloud] 82/95: add phpdoc
David Prévot
taffit at moszumanska.debian.org
Wed Mar 11 15:49:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.1
in repository owncloud.
commit d29234382fd37d1c983f79493d9433c69f188782
Author: Bernhard Posselt <dev at bernhard-posselt.com>
Date: Thu Feb 26 11:49:51 2015 +0100
add phpdoc
---
lib/private/app/dependencyanalyzer.php | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/lib/private/app/dependencyanalyzer.php b/lib/private/app/dependencyanalyzer.php
index 949d3c1..c270636 100644
--- a/lib/private/app/dependencyanalyzer.php
+++ b/lib/private/app/dependencyanalyzer.php
@@ -71,6 +71,14 @@ class DependencyAnalyzer {
return [implode('.', $first), implode('.', $second)];
}
+ /**
+ * Parameters will be normalized and then passed into version_compare
+ * in the same order they are specified in the method header
+ * @param string $first
+ * @param string $second
+ * @param string $operator
+ * @return bool result similar to version_compare
+ */
private function compare($first, $second, $operator) {
// we cant normalize versions if one of the given parameters is not a
// version string but null. In case one parameter is null normalization
@@ -82,10 +90,22 @@ class DependencyAnalyzer {
return version_compare($first, $second, $operator);
}
+ /**
+ * Checks if a version is bigger than another version
+ * @param string $first
+ * @param string $second
+ * @return bool true if the first version is bigger than the second
+ */
private function compareBigger($first, $second) {
return $this->compare($first, $second, '>');
}
+ /**
+ * Checks if a version is smaller than another version
+ * @param string $first
+ * @param string $second
+ * @return bool true if the first version is smaller than the second
+ */
private function compareSmaller($first, $second) {
return $this->compare($first, $second, '<');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list