Skip to content

Commit afbb9df

Browse files
committed
Fix: Run 'make coding-standards'
1 parent 81ae171 commit afbb9df

40 files changed

+274
-274
lines changed

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
$relativeClass = substr(
1717
$class,
18-
$length
18+
$length,
1919
);
2020

2121
$file = $directory . str_replace('\\', '/', $relativeClass) . '.php';

cal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
urlencode($month),
143143
urlencode($year),
144144
htmlentities($monthName),
145-
htmlentities($year));
145+
htmlentities($year), );
146146
})();
147147

148148
// Link to next month (but do not link to too early dates)
@@ -159,7 +159,7 @@
159159
urlencode($month),
160160
urlencode($year),
161161
htmlentities($monthName),
162-
htmlentities($year));
162+
htmlentities($year), );
163163
})();
164164

165165
// Print out navigation links for previous and next month

conferences/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@
5757
"atom" => "/feed.atom",
5858
"elephpants" => true,
5959
"sidebar" => $panels,
60-
)
60+
),
6161
);

credits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$credits = str_replace(
1717
array("</center>", "& "),
1818
array("</div>", "&amp; "),
19-
$credits
19+
$credits,
2020
);
2121

2222
// If there is something left, print it out

download-docs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
$link_to,
124124
(int) ($size/1024),
125125
date("j M Y", $changed),
126-
$extension
126+
$extension,
127127
);
128128
$found_formats[$formatname] = 1;
129129
}

downloads.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"rel" => "alternate",
3333
"type" => "application/atom+xml",
3434
"href" => $MYSITE . "releases/feed.php",
35-
"title" => "PHP Release feed"
35+
"title" => "PHP Release feed",
3636
),
3737
),
3838
"current" => "downloads",
39-
)
39+
),
4040
);
4141
?>
4242
<?php $i = 0; foreach ($RELEASES as $MAJOR => $major_releases): /* major releases loop start */

elephpant.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
// Print the common footer.
3838
site_footer(
3939
array(
40-
'elephpants' => true
41-
)
40+
'elephpants' => true,
41+
),
4242
);

error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
$fallback = (myphpnet_urlsearch() === MYPHPNET_URL_MANUAL ? "404manual" : "404quickref");
696696
mirror_redirect(
697697
'/search.php?show=' . $fallback . '&lang=' . urlencode($LANG) .
698-
'&pattern=' . substr($_SERVER['REQUEST_URI'], 1)
698+
'&pattern=' . substr($_SERVER['REQUEST_URI'], 1),
699699
);
700700
/*
701701
* vim: set et ts=4 sw=4 ft=php: :

git-php.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"note" => $_POST['realpurpose'],
8787
"yesno" => $_POST['yesno'],
8888
"group" => $_POST['group'],
89-
)
89+
),
9090
);
9191
// Error while posting
9292
if ($error) {
@@ -363,7 +363,7 @@ class="max" value="<?php if (isset($_POST['email'])) echo clean($_POST['email'])
363363
$purposes = array("Learning PHP", "Coding in PHP", "Reading the PHP source",
364364
"Using PHP extensions", "Creating experimental PHP extensions",
365365
"Submitting a patch to PHP", "Adding notes to the documentation",
366-
"Writing web pages with PHP");
366+
"Writing web pages with PHP", );
367367

368368
foreach ($purposes as $i => $p) { ?>
369369
<input type="checkbox" name="purpose[<?php echo $i?>]" value="1"

images/elephpants.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
} else {
4040
header('HTTP/1.1 400', true, 400);
4141
print json_encode(array(
42-
'error' => "Specify how many elephpants to serve via 'count'."
42+
'error' => "Specify how many elephpants to serve via 'count'.",
4343
));
4444
exit;
4545
}
@@ -53,7 +53,7 @@
5353
if (!$photos || !is_array($photos)) {
5454
header('HTTP/1.1 500', true, 500);
5555
print json_encode(array(
56-
'error' => "No elephpant metadata available."
56+
'error' => "No elephpant metadata available.",
5757
));
5858
exit;
5959
}
@@ -79,7 +79,7 @@
7979
$elephpants[] = array(
8080
'title' => $photo['title'],
8181
'url' => "http://flickr.com/photos/" . $photo['owner'] . "/" . $photo['id'],
82-
'data' => base64_encode(file_get_contents($path . '/' . $photo['filename']))
82+
'data' => base64_encode(file_get_contents($path . '/' . $photo['filename'])),
8383
);
8484
}
8585

0 commit comments

Comments
 (0)