@@ -177,7 +177,7 @@ public function unarchive($project_id)
177177
178178 /**
179179 * @param int $project_id
180- * @param array $parameters (
180+ * @param array $parameters {
181181 *
182182 * @var string $scope The scope of pipelines, one of: running, pending, finished, branches, tags.
183183 * @var string $status The status of pipelines, one of: running, pending, success, failed, canceled, skipped.
@@ -188,7 +188,7 @@ public function unarchive($project_id)
188188 * @var string $username The username of the user who triggered pipelines.
189189 * @var string $order_by Order pipelines by id, status, ref, or user_id (default: id).
190190 * @var string $order Sort pipelines in asc or desc order (default: desc).
191- * )
191+ * }
192192 * @return mixed
193193 */
194194 public function pipelines ($ project_id , array $ parameters = [])
@@ -235,13 +235,12 @@ public function pipeline($project_id, $pipeline_id)
235235 /**
236236 * @param int $project_id
237237 * @param string $commit_ref
238- * @param array $variables (
239- * @var array (
240- * @var string $key The name of the variable
241- * @var mixed $value The value of the variable
242- * @var string $variable_type env_var (default) or file
243- * )
244- * )
238+ * @param array|null $variables {
239+ *
240+ * @var string $key The name of the variable
241+ * @var mixed $value The value of the variable
242+ * @var string $variable_type env_var (default) or file
243+ * }
245244 * @return mixed
246245 */
247246 public function createPipeline ($ project_id , $ commit_ref , $ variables = null )
@@ -250,7 +249,7 @@ public function createPipeline($project_id, $commit_ref, $variables = null)
250249 'ref ' => $ commit_ref ,
251250 );
252251
253- if ($ variables !== null ) {
252+ if (null !== $ variables ) {
254253 $ parameters ['variables ' ] = $ variables ;
255254 }
256255
@@ -302,10 +301,10 @@ public function allMembers($project_id, $parameters = [])
302301
303302 /**
304303 * @param int $project_id
305- * @param array $parameters (
304+ * @param array $parameters {
306305 *
307306 * @var string $query The query you want to search members for.
308- * )
307+ * }
309308 *
310309 * @return mixed
311310 */
@@ -555,14 +554,14 @@ public function enableDeployKey($project_id, $key_id)
555554
556555 /**
557556 * @param int $project_id
558- * @param array $parameters (
557+ * @param array $parameters {
559558 *
560559 * @var string $action Include only events of a particular action type.
561560 * @var string $target_type Include only events of a particular target type.
562561 * @var \DateTimeInterface $before Include only events created before a particular date.
563562 * @var \DateTimeInterface $after Include only events created after a particular date.
564563 * @var string $sort Sort events in asc or desc order by created_at. Default is desc.
565- * )
564+ * }
566565 *
567566 * @return mixed
568567 */
@@ -662,12 +661,12 @@ public function forks($project_id, array $parameters = [])
662661
663662 /**
664663 * @param int $project_id
665- * @param array $parameters (
664+ * @param array $parameters {
666665 *
667666 * @var string $namespace The ID or path of the namespace that the project will be forked to
668667 * @var string $path The path of the forked project (optional)
669668 * @var string $name The name of the forked project (optional)
670- * )
669+ * }
671670 * @return mixed
672671 */
673672 public function fork ($ project_id , array $ parameters = [])
@@ -746,8 +745,8 @@ public function variable($project_id, $key)
746745 * @param int $project_id
747746 * @param string $key
748747 * @param string $value
749- * @param bool $protected
750- * @param string $environment_scope
748+ * @param bool|null $protected
749+ * @param string|null $environment_scope
751750 * @return mixed
752751 */
753752 public function addVariable ($ project_id , $ key , $ value , $ protected = null , $ environment_scope = null )
@@ -772,8 +771,8 @@ public function addVariable($project_id, $key, $value, $protected = null, $envir
772771 * @param int $project_id
773772 * @param string $key
774773 * @param string $value
775- * @param bool $protected
776- * @param string $environment_scope
774+ * @param bool|null $protected
775+ * @param string|null $environment_scope
777776 * @return mixed
778777 */
779778 public function updateVariable ($ project_id , $ key , $ value , $ protected = null , $ environment_scope = null )
0 commit comments