Skip to content

Commit

Permalink
Merge pull request #34 from CodeLingoBot/rewrite-techsneeze-dmarcts-r…
Browse files Browse the repository at this point in the history
…eport-viewer-psr2-lower-case-constant-values

Change PHP keywords to comply with PSR2
  • Loading branch information
techsneeze authored Jun 28, 2019
2 parents dd546a5 + df0bd63 commit 17067ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dmarcts-report-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function tmpl_page ($body, $reportid, $host_lookup = 1, $sort_order, $dom_select
while($row = $query->fetch_assoc()) {
$domains[] = $row['domain'];
}
if( $dom_select <> '' && array_search($dom_select, $domains) === FALSE ) {
if( $dom_select <> '' && array_search($dom_select, $domains) === false ) {
$dom_select = '';
}
if( $dom_select <> '' ) {
Expand All @@ -430,7 +430,7 @@ function tmpl_page ($body, $reportid, $host_lookup = 1, $sort_order, $dom_select
while($row = $query->fetch_assoc()) {
$orgs[] = $row['org'];
}
if( $org_select <> '' && array_search($org_select, $orgs) === FALSE ) {
if( $org_select <> '' && array_search($org_select, $orgs) === false ) {
$org_select = '';
}
if( $org_select <> '' ) {
Expand All @@ -446,7 +446,7 @@ function tmpl_page ($body, $reportid, $host_lookup = 1, $sort_order, $dom_select
while($row = $query->fetch_assoc()) {
$periods[] = sprintf( "%'.04d-%'.02d", $row['year'], $row['month'] );
}
if( $per_select <> '' && array_search($per_select, $periods) === FALSE ) {
if( $per_select <> '' && array_search($per_select, $periods) === false ) {
$per_select = '';
}
if( $per_select <> '' ) {
Expand Down

0 comments on commit 17067ff

Please sign in to comment.