Skip to content

Commit 6f8e0d6

Browse files
donkiddm1guelpf
authored andcommitted
Fix error in CI, for style and error in Travis
1 parent e17d7bd commit 6f8e0d6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,8 @@ public function updateBadge($project_id, $badge_id, array $params = array())
887887
* @param array $params
888888
* @return mixed
889889
*/
890-
public function addProtectedBranch(int $project_id, array $params = [])
890+
public function addProtectedBranch($project_id, array $params = [])
891891
{
892-
return $this->post($this->getProjectPath($project_id,'protected_branches'),$params);
892+
return $this->post($this->getProjectPath($project_id, 'protected_branches'), $params);
893893
}
894894
}

test/Gitlab/Tests/Api/ProjectsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,6 @@ public function shouldAddProtectedBranch()
16951695
array('name' => 'master', 'push_access_level' => 0, 'merge_access_level' => 30))
16961696
->will($this->returnValue($expectedArray));
16971697
$this->assertEquals($expectedArray, $api->addProtectedBranch(1, array('name' => 'master', 'push_access_level' => 0, 'merge_access_level' => 30)));
1698-
16991698
}
17001699

17011700
protected function getApiClass()

0 commit comments

Comments
 (0)