<?php defined('SYSPATH') or die('No direct script access.');
// Notify module view for Twitter Bootstrap 2.0
foreach ($msgs as $msg_type => $msgs_of_type):
    $class = NULL;
    if (in_array($msg_type, array('success', 'warning', 'info', 'error')))
    {
        $class = ' alert-' . $msg_type;
    }?>
<div class="alert alert-block fade in<?php echo $class ?>">
    <a class="close" href="#" data-dismiss="alert">×</a>
    <?php echo count($msgs_of_type) ? implode("<br />\n", $msgs_of_type) : $msgs_of_type?>
</div>
<? endforeach ?>

<?php defined('SYSPATH') or die('No direct script access.');
// Notify module view for Twitter Bootstrap 2.0
foreach ($msgs as $msg_type => $msgs_of_type):
    $class = NULL;
    if (in_array($msg_type, array('success', 'warning', 'info', 'error'))) {
        $class = ' alert-' . $msg_type;
    }?>
<div class="alert alert-block fade in<?=$class ?>">
    <a class="close" href="#" data-dismiss="alert">×</a>
    <?=count($msgs_of_type) ? implode("<br />\n", $msgs_of_type) : $msgs_of_type?>
</div>
<? endforeach ?>

--- 
+++ 
@@ -2,11 +2,12 @@
 // Notify module view for Twitter Bootstrap 2.0
 foreach ($msgs as $msg_type => $msgs_of_type):
     $class = NULL;
-    if (in_array($msg_type, array('success', 'warning', 'info', 'error'))) {
+    if (in_array($msg_type, array('success', 'warning', 'info', 'error')))
+    {
         $class = ' alert-' . $msg_type;
     }?>
-<div class="alert alert-block fade in<?=$class ?>">
+<div class="alert alert-block fade in<?php echo $class ?>">
     <a class="close" href="#" data-dismiss="alert">×</a>
-    <?=count($msgs_of_type) ? implode("<br />\n", $msgs_of_type) : $msgs_of_type?>
+    <?php echo count($msgs_of_type) ? implode("<br />\n", $msgs_of_type) : $msgs_of_type?>
 </div>
 <? endforeach ?>
Fix indention, php short open tags, braces
