Skip to content

Commit d94efcc

Browse files
lebedyncrssiroga
authored andcommitted
use ternary operator instead of if statement
1 parent 683bad4 commit d94efcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Asana.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,7 @@ public function getErrors()
667667
*/
668668
public function getCustomFields($workspaceId = null)
669669
{
670-
if (is_null($workspaceId)) {
671-
$workspaceId = $this->defaultWorkspaceId;
672-
}
670+
$workspaceId = $workspaceId ?: $this->defaultWorkspaceId;
673671

674672
return $this->curl->get("workspaces/{$workspaceId}/custom_fields");
675673
}

0 commit comments

Comments
 (0)