Change API::getProjectByName() to reflect the documentation

This commit is contained in:
Frédéric Guillot
2014-12-09 19:54:43 -05:00
parent 3de00af088
commit 0cd31abbc4
2 changed files with 18 additions and 3 deletions

View File

@@ -52,12 +52,12 @@ class Project extends Base
* Get a project by the name
*
* @access public
* @param string $project_name Project name
* @param string $name Project name
* @return array
*/
public function getByName($project_name)
public function getByName($name)
{
return $this->db->table(self::TABLE)->eq('name', $project_name)->findOne();
return $this->db->table(self::TABLE)->eq('name', $name)->findOne();
}
/**