Skip to content

Commit a64c205

Browse files
committed
Merge pull request cakephp#1506 from oldskool/master
View file conventions. Fixes cakephp#3949.
2 parents af1c2a1 + 39a1d76 commit a64c205

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

app/View/Layouts/flash.ctp

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<?php echo $this->Html->charset(); ?>
2424
<title><?php echo $page_title; ?></title>
2525

26-
<?php if (Configure::read('debug') == 0) { ?>
26+
<?php if (Configure::read('debug') == 0): ?>
2727
<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
28-
<?php } ?>
28+
<?php endif; ?>
2929
<style><!--
3030
P { text-align:center; font:bold 1.1em sans-serif }
3131
A { color:#444; text-decoration:none }
@@ -35,4 +35,4 @@ A:HOVER { text-decoration: underline; color:#44E }
3535
<body>
3636
<p><a href="<?php echo $url; ?>"><?php echo $message; ?></a></p>
3737
</body>
38-
</html>
38+
</html>

app/View/Layouts/rss/default.ctp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
if (!isset($channel)) {
2+
if (!isset($channel)):
33
$channel = array();
4-
}
5-
if (!isset($channel['title'])) {
4+
endif;
5+
if (!isset($channel['title'])):
66
$channel['title'] = $title_for_layout;
7-
}
7+
endif;
88

99
echo $this->Rss->document(
1010
$this->Rss->channel(

app/View/Pages/home.ctp

+6-6
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ if (isset($filePresent)):
101101
} catch (Exception $connectionError) {
102102
$connected = false;
103103
$errorMsg = $connectionError->getMessage();
104-
if (method_exists($connectionError, 'getAttributes')) {
104+
if (method_exists($connectionError, 'getAttributes')):
105105
$attributes = $connectionError->getAttributes();
106-
if (isset($errorMsg['message'])) {
106+
if (isset($errorMsg['message'])):
107107
$errorMsg .= '<br />' . $attributes['message'];
108-
}
109-
}
108+
endif;
109+
endif;
110110
}
111111
?>
112112
<p>
@@ -127,13 +127,13 @@ if (isset($filePresent)):
127127
<?php endif; ?>
128128
<?php
129129
App::uses('Validation', 'Utility');
130-
if (!Validation::alphaNumeric('cakephp')) {
130+
if (!Validation::alphaNumeric('cakephp')):
131131
echo '<p><span class="notice">';
132132
echo __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
133133
echo '<br/>';
134134
echo __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
135135
echo '</span></p>';
136-
}
136+
endif;
137137
?>
138138

139139
<p>

0 commit comments

Comments
 (0)