Skip to content

Commit

Permalink
Coding standards: placed space after control keyword
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.habariproject.org/habari/trunk/htdocs/system@4519 653ae4dd-d31e-0410-96ef-6bf7bf53c507
  • Loading branch information
lildude committed Nov 7, 2010
1 parent d688f20 commit 87a124c
Show file tree
Hide file tree
Showing 93 changed files with 333 additions and 333 deletions.
2 changes: 1 addition & 1 deletion admin/blank.php
Expand Up @@ -2,4 +2,4 @@

<?php echo $content; ?>

<?php include('footer.php'); ?>
<?php include('footer.php'); ?>
4 changes: 2 additions & 2 deletions admin/block_areas.php
Expand Up @@ -2,7 +2,7 @@
<option value="0"><?php _e('Default'); ?></option>
<?php foreach($scopes as $scope): ?>
<option value="<?php echo $scope->id; ?>"
<?php if(isset($scopeid) && $scopeid == $scope->id): ?>selected="selected"<?php endif; ?>><?php echo $scope->name; ?></option>
<?php if (isset($scopeid) && $scopeid == $scope->id): ?>selected="selected"<?php endif; ?>><?php echo $scope->name; ?></option>
<?php endforeach; ?>
</select></label>

Expand All @@ -12,7 +12,7 @@
<div class="area_drop_outer">
<h2><?php echo $area['name']; ?></h2>
<div class="area_drop">
<?php $area = (string)$area['name']; if(isset($blocks_areas[$scopeid]) && is_array($blocks_areas[$scopeid]) && isset($blocks_areas[$scopeid][$area]) && is_array($blocks_areas[$scopeid][$area])): ?>
<?php $area = (string)$area['name']; if (isset($blocks_areas[$scopeid]) && is_array($blocks_areas[$scopeid]) && isset($blocks_areas[$scopeid][$area]) && is_array($blocks_areas[$scopeid][$area])): ?>
<?php foreach($blocks_areas[$scopeid][$area] as $block): ?>
<div class="area_block"><h3 class="block_instance_<?php echo $block->id; ?>"><?php echo $block->title; ?><small><?php echo Utils::htmlspecialchars($block->type); ?></small></h3></div>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion admin/comment.php
Expand Up @@ -3,4 +3,4 @@
<?php $form->out(); ?>
</div>

<?php include('footer.php'); ?>
<?php include('footer.php'); ?>
2 changes: 1 addition & 1 deletion admin/comments_items.php
Expand Up @@ -22,7 +22,7 @@
foreach($comment->menu as $act_id => $action):
$url = str_replace('__commentid__', $comment->id, $action['url']);
?>
<li class="<?php echo $act_id; if(isset($action['nodisplay']) && $action['nodisplay'] == true) { echo ' nodisplay'; } ?>"><a href="<?php echo $url; ?>" title="<?php echo $action['title']; ?>"><?php echo $action['label']; ?></a></li>
<li class="<?php echo $act_id; if (isset($action['nodisplay']) && $action['nodisplay'] == true) { echo ' nodisplay'; } ?>"><a href="<?php echo $url; ?>" title="<?php echo $action['title']; ?>"><?php echo $action['label']; ?></a></li>
<?php endforeach;?>
<?php $theme->admin_comment_actions($comment); ?>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion admin/db_profiling.php
Expand Up @@ -57,4 +57,4 @@
</div>
<?php
}
?>
?>
2 changes: 1 addition & 1 deletion admin/formcontrols/admincontrol_submit.php
@@ -1,5 +1,5 @@
<div class="container transparent <?php echo ($class) ? $class : ''?>" <?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="submit" name="<?php echo $field; ?>" class="button" value="<?php echo Utils::htmlspecialchars($caption); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
6 changes: 3 additions & 3 deletions admin/formcontrols/formcontrol_button.php
@@ -1,11 +1,11 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="button" <?php if(isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>"
<?php if(isset($onclick) && $onclick != ''): ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="button" <?php if (isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>"
<?php if (isset($onclick) && $onclick != ''): ?>
<script type="text/javascript">function onclick_<?php echo Utils::slugify($id, '_') ?>() {
<?php echo $onclick; ?>
}</script>
<?php endif; ?>
>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_checkbox.php
Expand Up @@ -3,4 +3,4 @@
<input type="checkbox" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="1" <?php echo $value ? 'checked' : ''; ?>>
<input type="hidden" name="<?php echo $field; ?>_submitted" value="1" >
<?php $control->errors_out('<li>%s</li>', '<ul class="error">%s</ul>'); ?>
</div>
</div>
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_form.php
Expand Up @@ -7,7 +7,7 @@ class="<?php echo $class; ?>"
accept-charset="<?php echo $accept_charset; ?>"
<?php echo $onsubmit; ?>
>
<?php if(isset($message) && $message != ''): ?>
<?php if (isset($message) && $message != ''): ?>
<div class="form_message"><?php echo $message; ?></div>
<?php endif; ?>
<input type="hidden" name="FormUI" value="<?php echo $salted_name; ?>">
Expand Down
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_password.php
@@ -1,6 +1,6 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label><input type="password" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($outvalue); ?>">
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_radio.php
Expand Up @@ -2,7 +2,7 @@
<?php foreach($options as $key => $text) : ?>
<input type="radio" name="<?php echo $field; ?>" id="<?php echo Utils::slugify($key, '_'); ?>" value="<?php echo $key; ?>"<?php echo ( ( $value == $key ) ? ' checked' : '' ); ?>><label for="<?php echo Utils::slugify($key); ?>"><?php echo Utils::htmlspecialchars($text); ?></label>
<?php endforeach; ?>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_select.php
Expand Up @@ -13,7 +13,7 @@
<?php endif; ?>
<?php endforeach; ?>
</select>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_silos.php
@@ -1,6 +1,6 @@
<div class="container pagesplitter">
<ul id="mediatabs" class="tabs">
<?php foreach($silos as $ct => $silodir): ?><li><a href="#silo_<?php echo $ct; ?>"<?php if($silodir->icon != NULL): ?> style="background-image: url(<?php echo $silodir->icon; ?>)"<?php endif; ?>><?php echo $silodir->path; ?></a></li><?php endforeach; ?>
<?php foreach($silos as $ct => $silodir): ?><li><a href="#silo_<?php echo $ct; ?>"<?php if ($silodir->icon != NULL): ?> style="background-image: url(<?php echo $silodir->icon; ?>)"<?php endif; ?>><?php echo $silodir->path; ?></a></li><?php endforeach; ?>
</ul>

<?php foreach($silos as $ct => $silodir): ?>
Expand Down
4 changes: 2 additions & 2 deletions admin/formcontrols/formcontrol_submit.php
@@ -1,5 +1,5 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="submit"<?php if(isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>">
<?php if($message != '') : ?>
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>><input type="submit"<?php if (isset($disabled) && $disabled) { ?>disabled <?php } if ( isset( $tabindex ) ) { ?> tabindex="<?php echo $tabindex; ?>"<?php } ?> name="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars($caption); ?>">
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
4 changes: 2 additions & 2 deletions admin/formcontrols/formcontrol_textmulti.php
@@ -1,10 +1,10 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
<p><?php echo $this->caption; ?></p>
<?php
if(!is_array($value)) {
if (!is_array($value)) {
$value = array($value);
}
$i = 0;
Expand Down
2 changes: 1 addition & 1 deletion admin/formcontrols/formcontrol_wrapper.php
@@ -1,3 +1,3 @@
<div id="<?php echo $id; ?>" class="<?php echo $class; ?>">
<?php echo $contents; ?>
</div>
</div>
4 changes: 2 additions & 2 deletions admin/formcontrols/optionscontrol_checkbox.php
@@ -1,11 +1,11 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $this->caption; ?></label></span>
<span class="pct5"><input type="checkbox" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="1" <?php echo $value ? 'checked' : ''; ?> <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>></span>
<?php if(!empty($helptext)) : ?>
<?php if (!empty($helptext)) : ?>
<span class="pct60 helptext"><?php echo $helptext; ?></span>
<?php endif; ?>
<input type="hidden" name="<?php echo $field; ?>_submitted" value="1" >
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
4 changes: 2 additions & 2 deletions admin/formcontrols/optionscontrol_select.php
Expand Up @@ -13,10 +13,10 @@
<?php endif; ?>
<?php endforeach; ?>
</select></span>
<?php if(!empty($helptext)) : ?>
<?php if (!empty($helptext)) : ?>
<span class="pct40 helptext"><?php echo $helptext; ?></span>
<?php endif; ?>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
4 changes: 2 additions & 2 deletions admin/formcontrols/optionscontrol_submit.php
@@ -1,6 +1,6 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?> <?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<input type="submit" name="<?php echo $field; ?>" class="button" value="<?php echo Utils::htmlspecialchars($caption); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
</div>
4 changes: 2 additions & 2 deletions admin/formcontrols/optionscontrol_text.php
@@ -1,10 +1,10 @@
<div<?php echo ($class) ? ' class="' . $class . '"' : ''?><?php echo ($id) ? ' id="' . $id . '"' : ''?>>
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $caption; ?></label></span>
<span class="pct25"><input type="<?php echo (isset($this->type)) ? $type : 'text'?>" name="<?php echo $field; ?>" id="<?php echo $field; ?>" value="<?php echo Utils::htmlspecialchars( $value ); ?>" <?php echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>></span>
<?php if(!empty($helptext)) : ?>
<?php if (!empty($helptext)) : ?>
<span class="pct40 helptext"><?php echo $helptext; ?></span>
<?php endif; ?>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion admin/formcontrols/optionscontrol_textarea.php
Expand Up @@ -2,7 +2,7 @@
<span class="pct25"><label for="<?php echo $field; ?>"><?php echo $caption; ?></label></span>
<span class="pct50"><textarea name="<?php echo $field; ?>" id="<?php echo $field; ?>" class="resizable"<?php
echo isset($tabindex) ? ' tabindex="' . $tabindex . '"' : ''?>><?php echo Utils::htmlspecialchars( $value ); ?></textarea></span>
<?php if($message != '') : ?>
<?php if ($message != '') : ?>
<p class="error"><?php echo $message; ?></p>
<?php endif; ?>
</div>
2 changes: 1 addition & 1 deletion admin/group.php
Expand Up @@ -4,7 +4,7 @@
<select name="navigationdropdown" onchange="navigationDropdown.changePage();" tabindex="1">
<option value="<?php echo URL::get('admin', 'page=groups'); ?>"><?php _e('All Groups'); ?></option>
<?php foreach ( $groups as $group_nav ): ?>
<option value="<?php echo URL::get('admin', 'page=group&id=' . $group_nav->id); ?>"<?php if($group_nav->id == $id): ?> selected="selected"<?php endif; ?>><?php echo $group_nav->name; ?></option>
<option value="<?php echo URL::get('admin', 'page=group&id=' . $group_nav->id); ?>"<?php if ($group_nav->id == $id): ?> selected="selected"<?php endif; ?>><?php echo $group_nav->name; ?></option>
<?php endforeach; ?>
</select>
</span>
Expand Down
4 changes: 2 additions & 2 deletions admin/header.php
Expand Up @@ -43,13 +43,13 @@
<div id="menulist" class="dropbuttonlist">
<ul>
<?php foreach($mainmenu as $menu_id => $menu): ?>
<li id="link-<?php echo $menu_id ?>" class="<?php if($menu['selected'] == true) { echo 'selected'; } ?><?php if(isset($menu['submenu'])): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?>
<li id="link-<?php echo $menu_id ?>" class="<?php if ($menu['selected'] == true) { echo 'selected'; } ?><?php if (isset($menu['submenu'])): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?>
<?php if ( isset($menu['hotkey']) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?>
</a>
<?php if ( isset($menu['submenu']) ): ?>
<ul class="submenu">
<?php foreach($menu['submenu'] as $submenu_id => $submenu_item): ?>
<li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if(isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != ''): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?>
<li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if (isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != ''): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?>
<?php if ( isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?>
</a></li>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion admin/login.php
Expand Up @@ -36,7 +36,7 @@
<form method="post" action="<?php URL::out( 'auth', array( 'page' => 'login' ) ); ?>">

<p>
<label for="habari_username" class="incontent abovecontent"><?php _e('Name'); ?></label><input type="text" name="habari_username" id="habari_username"<?php if(isset( $habari_username )) { ?> value="<?php echo Utils::htmlspecialchars( $habari_username ); ?>"<?php } ?> placeholder="<?php _e('name'); ?>" class="styledformelement">
<label for="habari_username" class="incontent abovecontent"><?php _e('Name'); ?></label><input type="text" name="habari_username" id="habari_username"<?php if (isset( $habari_username )) { ?> value="<?php echo Utils::htmlspecialchars( $habari_username ); ?>"<?php } ?> placeholder="<?php _e('name'); ?>" class="styledformelement">
</p>
<p>
<label for="habari_password" class="incontent abovecontent"><?php _e('Password'); ?></label><input type="password" name="habari_password" id="habari_password" placeholder="<?php _e('password'); ?>" class="styledformelement">
Expand Down
2 changes: 1 addition & 1 deletion admin/logs.php
Expand Up @@ -75,7 +75,7 @@
<span class="pct25"><input type="submit" name="filter" value="<?php _e('Filter'); ?>"></span>
</div>

<?php if(isset($years)) { ?>
<?php if (isset($years)) { ?>
<div class="manage logs">

<?php $theme->display('logs_items'); ?>
Expand Down
8 changes: 4 additions & 4 deletions admin/themes.php
Expand Up @@ -43,7 +43,7 @@
ob_start();
Plugins::act( 'theme_ui', $active_theme );
$output = ob_get_clean();
if(trim($output) != '') :
if (trim($output) != '') :
?>

<div class="item clear">
Expand Down Expand Up @@ -166,7 +166,7 @@ function change_scope(){
foreach ( $all_themes as $inactive_theme ):
if ( $inactive_theme['path'] != $active_theme_dir ) : ?>

<div class="item pct30<?php if($previewed == $inactive_theme['dir']) echo " previewing"; ?>">
<div class="item pct30<?php if ($previewed == $inactive_theme['dir']) echo " previewing"; ?>">
<div class="head theme_credits">
<a href="<?php echo $inactive_theme['info']->url; ?>"><?php echo $inactive_theme['info']->name; ?> <span class="version dim"><?php echo $inactive_theme['info']->version; ?></span></a> <span class="dim"><?php _e('by'); ?></span>
<?php
Expand All @@ -193,7 +193,7 @@ function change_scope(){
<p class="legacy"><?php _e( 'Legacy theme.' ); ?></p>
<?php else: ?>
<ul class="dropbutton">
<?php if($previewed == $inactive_theme['dir']): ?>
<?php if ($previewed == $inactive_theme['dir']): ?>
<li><a href="<?php URL::out( 'admin', 'page=preview_theme&theme_dir=' . $inactive_theme['dir'] . '&theme_name=' . $inactive_theme['info']->name ); ?>"><?php _e('End Preview'); ?></a></li>
<?php else: ?>
<li><a href="<?php URL::out( 'admin', 'page=preview_theme&theme_dir=' . $inactive_theme['dir'] . '&theme_name=' . $inactive_theme['info']->name ); ?>"><?php _e('Preview'); ?></a></li>
Expand All @@ -209,7 +209,7 @@ function change_scope(){
?>
</div>

<?php if(isset($theme_loader) && $theme_loader != ''): ?>
<?php if (isset($theme_loader) && $theme_loader != ''): ?>
<div class="container" id="themeloader">
<?php echo $theme_loader; ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion classes/acl.php
Expand Up @@ -400,7 +400,7 @@ public static function get_user_token_access( $user, $token )
$default_groups = array();
$default_groups = Plugins::filter( 'user_default_groups', $default_groups, $user_id );
$default_groups = array_filter( array_map( 'intval', $default_groups ) );
switch( count( $default_groups ) ) {
switch ( count( $default_groups ) ) {
case 0: // do nothing
break;
case 1: // single argument
Expand Down
8 changes: 4 additions & 4 deletions classes/adminhandler.php
Expand Up @@ -2032,7 +2032,7 @@ private function fetch_posts( $params = array() )
}
$to_update = Posts::get( array( 'where' => $ids, 'nolimit' => 1 ) );
foreach ( $to_update as $post ) {
switch( $change ) {
switch ( $change ) {
case 'delete':
if ( ACL::access_check( $post->get_access(), 'delete' ) ) {
$post->delete();
Expand Down Expand Up @@ -2296,7 +2296,7 @@ public function ajax_update_entries($handler_vars)
$ids[] = (int) substr($id, 1);
}
}
if(count($ids) == 0) {
if (count($ids) == 0) {
$posts = new Posts();
}
else {
Expand Down Expand Up @@ -3357,7 +3357,7 @@ private function access_allowed( $page, $type )
$require_any = array();
$result = false;

switch( $page ) {
switch ( $page ) {
case 'comment':
case 'comments':
case 'ajax_comments':
Expand Down Expand Up @@ -3734,7 +3734,7 @@ public function ajax_save_areas( $handler_vars )

$msg = '';

if(isset($_POST['area_blocks'])) {
if (isset($_POST['area_blocks'])) {
$area_blocks = $_POST['area_blocks'];
DB::query('DELETE FROM {blocks_areas} WHERE scope_id = :scope_id', array( 'scope_id' => $scope ) );

Expand Down
8 changes: 4 additions & 4 deletions classes/ajaxresponse.php
Expand Up @@ -26,7 +26,7 @@ function __construct($response_code = 200, $message = null, $data = null) {

public function __set($var, $val)
{
switch( $var ) {
switch ( $var ) {
case 'response_code':
case 'message':
case 'data':
Expand All @@ -38,7 +38,7 @@ public function __set($var, $val)

public function html($name, $value)
{
if(empty($this->html)) {
if (empty($this->html)) {
$this->html = array( $name => $value );
}
else {
Expand All @@ -58,7 +58,7 @@ public function out()
if ($this->callback != null) {
$ret_array['habari_callback'] = $this->callback;
}
if(!empty($this->html)) {
if (!empty($this->html)) {
$ret_array['html'] = $this->html;
}

Expand All @@ -68,4 +68,4 @@ public function out()

}

?>
?>
4 changes: 2 additions & 2 deletions classes/atomhandler.php
Expand Up @@ -261,7 +261,7 @@ public function add_comments($xml, $comments)
public function act_collection()
{
Utils::check_request_method( array( 'GET', 'HEAD', 'POST' ) );
switch( $_SERVER['REQUEST_METHOD'] ) {
switch ( $_SERVER['REQUEST_METHOD'] ) {
case 'GET':
case 'HEAD':
$this->get_collection();
Expand All @@ -279,7 +279,7 @@ public function act_collection()
public function act_entry()
{
Utils::check_request_method( array( 'GET', 'HEAD', 'POST', 'PUT', 'DELETE' ) );
switch( $_SERVER['REQUEST_METHOD'] ) {
switch ( $_SERVER['REQUEST_METHOD'] ) {
case 'GET':
case 'HEAD':
case 'POST':
Expand Down
2 changes: 1 addition & 1 deletion classes/bitmask.php
Expand Up @@ -60,7 +60,7 @@ public function __construct( $flags = null, $value = null )
*/
public function __set( $bit, $on )
{
switch( $bit ) {
switch ( $bit ) {
case 'full':
if ( ! is_bool( $on ) ) {
throw new InvalidArgumentException( _t( 'Bitmask full toggle must be boolean' ) );
Expand Down

0 comments on commit 87a124c

Please sign in to comment.