summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:47:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:47:41 -0400
commit1a0465cb57818fd302da8bd7a27b9a78415d1804 (patch)
treebc56dd3ded941267fe034374283f893438ba74f7 /app/Model
parent03fc8a1bce033cc8334f588f3c95baffa1291b54 (diff)
Fix PhpAnalyzer issues
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Currency.php4
-rw-r--r--app/Model/Project.php4
-rw-r--r--app/Model/User.php8
3 files changed, 9 insertions, 7 deletions
diff --git a/app/Model/Currency.php b/app/Model/Currency.php
index bc423337..6ae842e7 100644
--- a/app/Model/Currency.php
+++ b/app/Model/Currency.php
@@ -35,7 +35,9 @@ class Currency extends Base
* Calculate the price for the reference currency
*
* @access public
- * @return array
+ * @param string $currency
+ * @param double $price
+ * @return double
*/
public function getPrice($currency, $price)
{
diff --git a/app/Model/Project.php b/app/Model/Project.php
index 80e17437..71c660b9 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -64,7 +64,7 @@ class Project extends Base
*
* @access public
* @param string $identifier
- * @return array
+ * @return array|boolean
*/
public function getByIdentifier($identifier)
{
@@ -80,7 +80,7 @@ class Project extends Base
*
* @access public
* @param string $token Token
- * @return array
+ * @return array|boolean
*/
public function getByToken($token)
{
diff --git a/app/Model/User.php b/app/Model/User.php
index 845efac0..83cf065b 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -111,7 +111,7 @@ class User extends Base
*
* @access public
* @param string $google_id Google unique id
- * @return array
+ * @return array|boolean
*/
public function getByGoogleId($google_id)
{
@@ -127,7 +127,7 @@ class User extends Base
*
* @access public
* @param string $github_id GitHub user id
- * @return array
+ * @return array|boolean
*/
public function getByGitHubId($github_id)
{
@@ -155,7 +155,7 @@ class User extends Base
*
* @access public
* @param string $email Email
- * @return array
+ * @return array|boolean
*/
public function getByEmail($email)
{
@@ -171,7 +171,7 @@ class User extends Base
*
* @access public
* @param string $token Token
- * @return array
+ * @return array|boolean
*/
public function getByToken($token)
{