Skip to content

Commit 75c56a8

Browse files
committed
Another round of PHPCS adjustments
1 parent 0430e51 commit 75c56a8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/Package/Issues/Milestones.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ public function create($user, $repo, $title, $state = null, $description = null,
9797
'title' => $title,
9898
);
9999

100-
if (!\is_null($state))
100+
if ($state !== null)
101101
{
102102
$data['state'] = $state;
103103
}
104104

105-
if (!\is_null($description))
105+
if ($description !== null)
106106
{
107107
$data['description'] = $description;
108108
}
109109

110-
if (!\is_null($dueOn))
110+
if ($dueOn !== null)
111111
{
112112
$data['due_on'] = $dueOn;
113113
}
@@ -143,22 +143,22 @@ public function edit($user, $repo, $milestoneId, $title = null, $state = null, $
143143
// Build the request data.
144144
$data = array();
145145

146-
if (!\is_null($title))
146+
if ($title !== null)
147147
{
148148
$data['title'] = $title;
149149
}
150150

151-
if (!\is_null($state))
151+
if ($state !== null)
152152
{
153153
$data['state'] = $state;
154154
}
155155

156-
if (!\is_null($description))
156+
if ($description !== null)
157157
{
158158
$data['description'] = $description;
159159
}
160160

161-
if (!\is_null($dueOn))
161+
if ($dueOn !== null)
162162
{
163163
$data['due_on'] = $dueOn;
164164
}

src/Package/Repositories/Statuses.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ public function create($user, $repo, $sha, $state, $targetUrl = null, $descripti
5353
'state' => $state,
5454
);
5555

56-
if (!\is_null($targetUrl))
56+
if ($targetUrl !== null)
5757
{
5858
$data['target_url'] = $targetUrl;
5959
}
6060

61-
if (!\is_null($description))
61+
if ($description !== null)
6262
{
6363
$data['description'] = $description;
6464
}
6565

66-
if (!\is_null($context))
66+
if ($context !== null)
6767
{
6868
$data['context'] = $context;
6969
}

0 commit comments

Comments
 (0)