Failed Conditions
Pull Request — master (#347)
by Florian
02:17
created

pages/pokestops.page.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<header id="single-header">
2
	<div class="row">
3
		<div class="col-md-12 text-center">
4
			<h1>
5
				<?= sprintf($locales->POKESTOPS_TITLE, $config->infos->city); ?>
6
			</h1>
7
			
8
		</div>
9
	</div>
10
</header>
11
12
13
<div class="row area">
14
15
    <?php
16
    if (!$config->system->no_lures == true) {
0 ignored issues
show
Coding Style Best Practice introduced by
It seems like you are loosely comparing two booleans. Considering using the strict comparison === instead.

When comparing two booleans, it is generally considered safer to use the strict comparison operator.

Loading history...
17
       ?>
18
	    <div class="col-md-6 col-sm-6 col-xs-12 big-data" style="border-right:1px lightgray solid;"> <!-- POKESTOPS -->
19
            <?php
20
    } else {
21
        ?>
22
        <div class="big-data"> <!-- POKESTOPS -->
23
        <?php
24
    }
25
    ?>
26
		<img src="core/img/pokestop.png" alt="Pokestop" width=50 class="big-icon">
27
		<p><big><strong><?= $pokestop->total ?></strong> <?= $locales->POKESTOPS ?></big><br> <?= sprintf($locales->INCITY, $config->infos->city); ?></p>
28
	</div>
29
30
    <?php
31
    if (!$config->system->no_lures == true) {
0 ignored issues
show
Coding Style Best Practice introduced by
It seems like you are loosely comparing two booleans. Considering using the strict comparison === instead.

When comparing two booleans, it is generally considered safer to use the strict comparison operator.

Loading history...
32
        ?>
33
        <div class="col-md-6 col-sm-6 col-xs-12 big-data"> <!-- LURED STOPS -->
34
            <img src="core/img/lure-module.png" alt="Lured Pokestop" width=50 class="big-icon">
35
            <p><big><strong><?= $pokestop->lured ?></strong> <?= $locales->LURES ?></big><br> <?= $locales->POKESTOPS_LURES ?></p>
36
        </div>
37
        <?php
38
    }
39
    ?>
40
</div>
41
42
<?php
43
if (!$config->system->no_lures == true) {
0 ignored issues
show
Coding Style Best Practice introduced by
It seems like you are loosely comparing two booleans. Considering using the strict comparison === instead.

When comparing two booleans, it is generally considered safer to use the strict comparison operator.

Loading history...
44
    ?>
45
    <div class="row text-center subnav">
46
        <div class="btn-group" role="group">
47
            <a class="btn btn-default active" id="pokestopSelector"><i
48
                        class="fa fa-medkit"></i> <?= $locales->POKESTOPS ?></a>
49
            <a class="btn btn-default " id="lureSelector"><i class="fa fa-eye"></i> <?= $locales->LURES ?></a>
50
        </div>
51
    </div>
52
<?php
53
}
54
?>
55
56
<div class="row">
57
	
58
	<div class="col-md-12">
59
	
60
		<div id="map">
61
		
62
		</div>
63
	
64
	</div>
65
66
</div>
67