Skip to content

Commit 3c5dbb9

Browse files
committed
replaced logical operators: 'and' with '&&' ; 'or' with '||'
1 parent cbb8b17 commit 3c5dbb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Bitbucket/API/Privileges.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function grant($owner, $repo, $account, $privilege)
139139
*/
140140
public function delete($owner, $repo = null, $account = null)
141141
{
142-
if (!is_null($account) and is_null($repo)) {
142+
if (!is_null($account) && is_null($repo)) {
143143
throw new \InvalidArgumentException("To delete an account privileges, you need to specify a repository.");
144144
}
145145

lib/Bitbucket/API/Repositories/BranchRestrictions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function create($account, $repo, $params = array())
6363
);
6464
}
6565

66-
if (empty($params['kind']) or !in_array($params['kind'], array('push', 'delete', 'force'))) {
66+
if (empty($params['kind']) || !in_array($params['kind'], array('push', 'delete', 'force'))) {
6767
throw new \InvalidArgumentException('Invalid restriction kind.');
6868
}
6969

lib/Bitbucket/API/Repositories/Issues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function followers($account, $repo, $issueID)
8888
*/
8989
public function create($account, $repo, $options = array())
9090
{
91-
if (!isset($options['title']) or !isset($options['content'])) {
91+
if (!isset($options['title']) || !isset($options['content'])) {
9292
throw new \InvalidArgumentException(
9393
'Arguments: "title" and "content" are mandatory.'
9494
);

0 commit comments

Comments
 (0)