@@ -21,7 +21,7 @@ class Deployment extends AbstractApi
2121 * @return array the deployments requested
2222 */
2323 public function all ($ username , $ repository , array $ params = array ())
24- {
24+ {
2525 return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments ' , $ params );
2626 }
2727
@@ -41,11 +41,11 @@ public function all($username, $repository, array $params = array())
4141 */
4242 public function create ($ username , $ repository , array $ params )
4343 {
44- if (!isset ($ params ['ref ' ])) {
45- throw new MissingArgumentException (array ('ref ' ));
46- }
44+ if (!isset ($ params ['ref ' ])) {
45+ throw new MissingArgumentException (array ('ref ' ));
46+ }
4747
48- return $ this ->post ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments ' , $ params );
48+ return $ this ->post ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments ' , $ params );
4949 }
5050
5151 /**
@@ -64,10 +64,10 @@ public function create($username, $repository, array $params)
6464 */
6565 public function updateStatus ($ username , $ repository , $ id , array $ params )
6666 {
67- if (!isset ($ params ['state ' ])) {
68- throw new MissingArgumentException (array ('state ' ));
69- }
70- return $ this ->post ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments/ ' .rawurlencode ($ id ).'/statuses ' , $ params );
67+ if (!isset ($ params ['state ' ])) {
68+ throw new MissingArgumentException (array ('state ' ));
69+ }
70+ return $ this ->post ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments/ ' .rawurlencode ($ id ).'/statuses ' , $ params );
7171 }
7272
7373 /**
@@ -78,7 +78,8 @@ public function updateStatus($username, $repository, $id, array $params)
7878 * @param int $id the deployment identifier
7979 * @return array the deployment statuses
8080 */
81- public function getStatuses ($ username , $ repository , $ id ) {
81+ public function getStatuses ($ username , $ repository , $ id )
82+ {
8283 return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/deployments/ ' .rawurlencode ($ id ).'/statuses ' );
8384 }
8485}
0 commit comments