Skip to content

Commit

Permalink
bugfix: fixed source code formating to make it PSR-2 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Dec 4, 2019
1 parent a4e8191 commit c0d63b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/LMSManagers/LMSNetNodeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function NetNodeUpdate($netnodedata)
);
} else {
if (!$netnodedata['address_id'] || $netnodedata['address_id']
&& $this->db->GetOne('SELECT 1 FROM customer_addresses WHERE address_id = ?', array($netnodedata['address_id'])) ) {
&& $this->db->GetOne('SELECT 1 FROM customer_addresses WHERE address_id = ?', array($netnodedata['address_id']))) {
$address_id = $location_manager->InsertAddress($netnodedata);

$this->db->Execute(
Expand Down
2 changes: 1 addition & 1 deletion modules/netedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}

if (($node['first'] && $node['first'] < $networkdata['addresslong']) ||
($node['last'] && $node['last'] >= ip_long(getbraddr($networkdata['address'], prefix2mask($networkdata['prefix'])))) ) {
($node['last'] && $node['last'] >= ip_long(getbraddr($networkdata['address'], prefix2mask($networkdata['prefix']))))) {
$shift = $networkdata['addresslong'] - $network['addresslong'];
if ($node['first'] + $shift < $networkdata['addresslong'] ||
$node['last'] + $shift >= ip_long(getbraddr($networkdata['address'], prefix2mask($networkdata['prefix'])))
Expand Down
2 changes: 1 addition & 1 deletion modules/taxrateedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
$error['value'] = trans('Incorrect tax rate percentage value (0-100)!');
} elseif ($taxrateedit['value'] != $taxrate['value']) {
if ($DB->GetOne('SELECT COUNT(*) FROM cash WHERE taxid=?', array($taxrateedit['id'])) +
$DB->GetOne('SELECT COUNT(*) FROM invoicecontents WHERE taxid=?', array($taxrateedit['id'])) > 0 ) {
$DB->GetOne('SELECT COUNT(*) FROM invoicecontents WHERE taxid=?', array($taxrateedit['id'])) > 0) {
$error['value'] = trans('Can\'t change value of tax rate which was used in the past!');
}
}
Expand Down

0 comments on commit c0d63b4

Please sign in to comment.