Failed Conditions
Push — master ( 328b73...9cdd6e )
by Markus
04:54
created

pages/pokedex.page.php (4 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
				<?= $locales->POKEDEX_TITLE; ?>
6
			</h1>
7
			<h3>
8
				<?= sprintf($locales->POKEDEX_TOTAL, number_format($pokemons->total, 0, '.', ' '), $config->infos->city); ?>
9
			</h3>
10
		</div>
11
	</div>
12
</header>
13
14
<div class="row">
15
16
	<div class="col-md-12">
17
18
		<div class="search form-group">
19
			<input type="search" class="form-control" placeholder="<?= $locales->POKEDEX_SEARCH; ?>" required>
20
		</div>
21
22
	</div>
23
24
	<div class="col-md-12 flex-container results">
25
26
27
		<?php foreach ($pokedex as $pokemon) {
28
    ?>
29
30
			<div class="flex-item pokemon-single">
31
32
				<a href="<?= $pokemon->permalink; ?>"><img src="<?= $pokemon->img; ?>" alt="<?= $pokemon->name; ?>" class="img-responsive <?php if (0 == $pokemon->spawn) {
0 ignored issues
show
It is generally recommended to place each PHP statement on a line by itself.

Let’s take a look at an example:

// Bad
$a = 5; $b = 6; $c = 7;

// Good
$a = 5;
$b = 6;
$c = 7;
Loading history...
33
        echo 'unseen';
34
    } ?> "></a>
0 ignored issues
show
Closing brace indented incorrectly; expected 0 spaces, found 4
Loading history...
35
				<p class="pkmn-name"><a href="<?= $pokemon->permalink; ?>">#<?= sprintf('%03d<br>%s', $pokemon->id, $pokemon->name); ?></a></p>
0 ignored issues
show
It is generally recommended to place each PHP statement on a line by itself.

Let’s take a look at an example:

// Bad
$a = 5; $b = 6; $c = 7;

// Good
$a = 5;
$b = 6;
$c = 7;
Loading history...
36
				<p><?php if (0 == $pokemon->spawn) {
37
        echo $locales->UNSEEN;
38
    } else {
0 ignored issues
show
Closing brace indented incorrectly; expected 0 spaces, found 4
Loading history...
39
        echo $pokemon->spawn_count.$locales->SEEN;
40
    } ?> </p>
41
42
			</div>
43
44
		<?php
45
}?>
46
47
48
	</div>
49
50
</div>
51