Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Apr 4, 2023

No description provided.

* @return bool true if the function is succesfully deleted, otherwise false
*/
public function delete($retries = 3)
public function delete(array $flags = [], $retries = 3)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to make sure we're not setting this anywhere. My guess is that we aren't, and so changing the order is fine.

$flattenedFlags = [];
foreach ($flags as $name => $value) {
$flattenedFlags[] = empty($value) ? $name : "$name=$value";
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we now do this twice, maybe abstract to a private function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant