diff --git a/includes/faces.inc b/includes/faces.inc
index aa5f2a5..38f19df 100644
--- a/includes/faces.inc
+++ b/includes/faces.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Extendable Object Faces API. Provided by the faces module.
+ * @file
+ * Extendable Object Faces API. Provided by the faces module.
  */
 
 if (!interface_exists('FacesExtenderInterface', FALSE)) {
@@ -20,6 +21,7 @@ if (!interface_exists('FacesExtenderInterface', FALSE)) {
      * Returns the extended object.
      */
     public function getExtendable();
+
   }
 
   /**
@@ -74,6 +76,7 @@ if (!class_exists('FacesExtender', FALSE)) {
     protected function call($name, array $args = array()) {
       return $this->object->call($name, $args);
     }
+
   }
 }
 
@@ -153,6 +156,7 @@ if (!class_exists('FacesExtendable', FALSE)) {
      * @param $interface
      *   Optional. An interface to test for. If it's omitted, all interfaces
      *   that the object can be faced as are returned.
+     *
      * @return
      *   Whether the object can face as the interface or an array of interface
      *   names.
@@ -307,6 +311,7 @@ if (!class_exists('FacesExtendable', FALSE)) {
       }
       return $this->__call($name, $args);
     }
+
   }
 
 }
diff --git a/includes/rules.core.inc b/includes/rules.core.inc
index 347463a..ab8ab1b 100644
--- a/includes/rules.core.inc
+++ b/includes/rules.core.inc
@@ -7,8 +7,7 @@
 
 // This is not necessary as the classes are autoloaded via the registry. However
 // it saves some possible update headaches until the registry is rebuilt.
-// @todo
-//   Remove for a future release.
+// @todo Remove for a future release.
 require_once dirname(__FILE__) . '/faces.inc';
 
 /**
@@ -29,6 +28,7 @@ class RulesEntityController extends EntityAPIControllerExportable {
 
   /**
    * Overridden.
+   *
    * @see DrupalDefaultEntityController::attachLoad()
    */
   protected function attachLoad(&$queried_entities, $revision_id = FALSE) {
@@ -68,6 +68,7 @@ class RulesEntityController extends EntityAPIControllerExportable {
 
   /**
    * Override to support having events and tags as conditions.
+   *
    * @see EntityAPIController::applyConditions($entities, $conditions)
    * @see rules_query_rules_config_load_multiple_alter()
    */
@@ -227,6 +228,7 @@ class RulesEntityController extends EntityAPIControllerExportable {
 
   /**
    * Overridden to support tags and events in $conditions.
+   *
    * @see EntityAPIControllerExportable::buildQuery()
    */
   protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE) {
@@ -255,6 +257,7 @@ class RulesEntityController extends EntityAPIControllerExportable {
 
   /**
    * Overridden to also delete tags and events.
+   *
    * @see EntityAPIControllerExportable::delete()
    */
   public function delete($ids, DatabaseTransaction $transaction = NULL) {
@@ -305,6 +308,7 @@ class RulesEntityController extends EntityAPIControllerExportable {
 
     return $return;
   }
+
 }
 
 /**
@@ -402,12 +406,14 @@ abstract class RulesExtendable extends FacesExtendable {
    *   The info about the item as specified in the hook.
    * @param $interface
    *   The interface to check for.
+   *
    * @return
    *   Whether it supports the given interface.
    */
   public static function itemFacesAs(&$itemInfo, $interface) {
     return in_array($interface, class_implements($itemInfo['class'])) || isset($itemInfo['faces_cache'][2][$interface]);
   }
+
 }
 
 /**
@@ -439,6 +445,7 @@ abstract class RulesPlugin extends RulesExtendable {
 
   /**
    * The parent element, if any.
+   *
    * @var RulesContainerPlugin
    */
   protected $parent = NULL;
@@ -813,7 +820,6 @@ abstract class RulesPlugin extends RulesExtendable {
    * Usually settings get processed automatically, however if $this->settings
    * has been altered manually after element construction, it needs to be
    * invoked explicitly with $force set to TRUE.
-   *
    */
   public function processSettings($force = FALSE) {
     // Process if not done yet.
@@ -1344,6 +1350,7 @@ abstract class RulesPlugin extends RulesExtendable {
    * @param $php
    *   Optional. Set to TRUE to format the export using PHP arrays. By default
    *   JSON is used.
+   *
    * @return
    *   The exported configuration.
    *
@@ -1442,6 +1449,7 @@ abstract class RulesPlugin extends RulesExtendable {
   public function resetInternalCache() {
     $this->availableVariables = NULL;
   }
+
 }
 
 /**
@@ -1823,6 +1831,7 @@ abstract class RulesAbstractPlugin extends RulesPlugin {
     }
     return $filenames[$function];
   }
+
 }
 
 /**
@@ -1837,6 +1846,7 @@ interface RulesActionInterface {
    *   Throws an exception if not all necessary arguments have been provided.
    */
   public function execute();
+
 }
 
 /**
@@ -1861,6 +1871,7 @@ interface RulesConditionInterface {
    * Returns whether the element is configured to negate the result.
    */
   public function isNegated();
+
 }
 
 interface RulesTriggerableInterface {
@@ -1875,6 +1886,7 @@ interface RulesTriggerableInterface {
    *
    * @param $event
    *   The name of the (configured) event to remove.
+   *
    * @return RulesTriggerableInterface
    *   The object instance itself, to allow chaining.
    */
@@ -2016,6 +2028,7 @@ interface RulesPluginImplInterface extends RulesPluginHandlerInterface {
    * Execute the action or condition making use of the parameters as specified.
    */
   public function execute();
+
 }
 
 /**
@@ -2028,6 +2041,7 @@ interface RulesOptimizationInterface {
    * Optimizes a rule configuration in order to speed up evaluation.
    */
   public function optimize();
+
 }
 
 /**
@@ -2061,6 +2075,7 @@ abstract class RulesPluginHandlerBase extends FacesExtender implements RulesPlug
   public function dependencies() {}
   public function form_alter(&$form, $form_state, $options) {}
   public function assertions() {}
+
 }
 
 /**
@@ -2087,6 +2102,7 @@ class RulesAbstractPluginDefaults extends RulesPluginHandlerBase implements Rule
   public function execute() {
     throw new RulesEvaluationException($this->object->getPluginName() .": Execution implementation is missing.", array(), $this->object, RulesLog::ERROR);
   }
+
 }
 
 /**
@@ -2094,13 +2110,14 @@ class RulesAbstractPluginDefaults extends RulesPluginHandlerBase implements Rule
  */
 class RulesRecursiveElementIterator extends ArrayIterator implements RecursiveIterator {
 
-   public function getChildren() {
-     return $this->current()->getIterator();
-   }
+  public function getChildren() {
+    return $this->current()->getIterator();
+  }
+
+  public function hasChildren() {
+    return $this->current() instanceof IteratorAggregate;
+  }
 
-   public function hasChildren() {
-      return $this->current() instanceof IteratorAggregate;
-   }
 }
 
 /**
@@ -2406,6 +2423,7 @@ abstract class RulesContainerPlugin extends RulesPlugin implements IteratorAggre
       $element->optimize();
     }
   }
+
 }
 
 /**
@@ -2481,6 +2499,7 @@ abstract class RulesActionContainer extends RulesContainerPlugin implements Rule
       $this->info['provides'] = $export['PROVIDES VARIABLES'];
     }
   }
+
 }
 
 /**
@@ -2563,6 +2582,7 @@ abstract class RulesConditionContainer extends RulesContainerPlugin implements R
     }
     return $vars;
   }
+
 }
 
 /**
@@ -2706,6 +2726,7 @@ class RulesLog {
   public function clear() {
     $this->log = array();
   }
+
 }
 
 /**
@@ -2757,6 +2778,7 @@ class RulesEvaluationException extends RulesException {
     // @todo fix _drupal_decode_exception() to use __toString() and override it.
     $this->message = t($this->msg, $this->args);
   }
+
 }
 
 /**
@@ -2782,6 +2804,7 @@ class RulesIntegrityException extends RulesException {
     $this->keys = is_array($element) ? $element : array();
     parent::__construct($msg);
   }
+
 }
 
 /**
diff --git a/includes/rules.event.inc b/includes/rules.event.inc
index 27f6a33..1cb93b5 100755
--- a/includes/rules.event.inc
+++ b/includes/rules.event.inc
@@ -145,6 +145,7 @@ interface RulesEventHandlerInterface {
    *   The info array of the event the event handler belongs to.
    */
   public function getEventInfo();
+
 }
 
 /**
@@ -169,6 +170,7 @@ interface RulesEventDispatcherInterface extends RulesEventHandlerInterface {
    *   TRUE if the event dispatcher is currently active, FALSE otherwise.
    */
   public function isWatching();
+
 }
 
 /**
@@ -257,12 +259,13 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
   public function getEventInfo() {
     return $this->eventInfo;
   }
+
 }
 
 /**
  * A handler for events having no settings. This is the default handler.
  */
-class RulesEventDefaultHandler extends RulesEventHandlerBase  {
+class RulesEventDefaultHandler extends RulesEventHandlerBase {
 
   /**
    * Implements RulesEventHandlerInterface::buildForm()
@@ -298,6 +301,7 @@ class RulesEventDefaultHandler extends RulesEventHandlerBase  {
   public function getSettings() {
     return NULL;
   }
+
 }
 
 /**
@@ -408,4 +412,5 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
     }
     return $variables;
   }
+
 }
diff --git a/includes/rules.plugins.inc b/includes/rules.plugins.inc
index e4f4b96..aae2fd4 100644
--- a/includes/rules.plugins.inc
+++ b/includes/rules.plugins.inc
@@ -4,7 +4,6 @@
  * @file Contains plugin info and implementations not needed for rule evaluation.
  */
 
-
 /**
  * Implements a rules action.
  */
@@ -69,6 +68,7 @@ class RulesAction extends RulesAbstractPlugin implements RulesActionInterface {
       }
     }
   }
+
 }
 
 /**
@@ -340,6 +340,7 @@ class Rule extends RulesActionContainer {
     parent::resetInternalCache();
     $this->conditions->resetInternalCache();
   }
+
 }
 
 /**
@@ -516,6 +517,7 @@ class RulesReactionRule extends Rule implements RulesTriggerableInterface {
     // No need to keep event settings for evaluation.
     $this->eventSettings = array();
   }
+
 }
 
 /**
@@ -539,6 +541,7 @@ class RulesAnd extends RulesConditionContainer {
   public function label() {
     return !empty($this->label) ? $this->label : ($this->negate ? t('NOT AND') : t('AND'));
   }
+
 }
 
 /**
@@ -580,6 +583,7 @@ class RulesOr extends RulesConditionContainer {
     }
     return $vars;
   }
+
 }
 
 /**
@@ -693,6 +697,7 @@ class RulesLoop extends RulesActionContainer {
       $this->settings['item:label'] = reset($export['ITEM']);
     }
   }
+
 }
 
 /**
@@ -725,6 +730,7 @@ class RulesRuleSet extends RulesActionContainer {
   protected function importChildren($export, $key = 'RULES') {
     parent::importChildren($export, $key);
   }
+
 }
 
 /**
@@ -824,4 +830,5 @@ class RulesEventSet extends RulesRuleSet {
   public function save($name = NULL, $module = 'rules') {
     return FALSE;
   }
+
 }
diff --git a/includes/rules.processor.inc b/includes/rules.processor.inc
index 9ee760d..8c4505d 100644
--- a/includes/rules.processor.inc
+++ b/includes/rules.processor.inc
@@ -195,6 +195,7 @@ abstract class RulesDataProcessor {
    *   The rules evaluation state.
    * @param $element RulesPlugin
    *   The element for which we process the value.
+   *
    * @return
    *   The processed value.
    */
@@ -221,6 +222,7 @@ abstract class RulesDataProcessor {
   protected static function form($settings, $var_info) {
     return array();
   }
+
 }
 
 
diff --git a/includes/rules.state.inc b/includes/rules.state.inc
index 118973d..633916a 100644
--- a/includes/rules.state.inc
+++ b/includes/rules.state.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Contains the state and data related stuff.
+ * @file
+ * Contains the state and data related stuff.
  */
 
 /**
@@ -350,12 +351,13 @@ class RulesState {
     );
     return isset($key) ? $vars[$key] : $vars;
   }
+
 }
 
 /**
  * A class holding static methods related to data.
  */
-class RulesData  {
+class RulesData {
 
   /**
    * Returns whether the type match. They match if type1 is compatible to type2.
@@ -622,6 +624,7 @@ class RulesData  {
     // have specified further metadata.
     return RulesData::applyMetadataAssertions($wrapper, $property_info);
   }
+
 }
 
 /**
@@ -756,6 +759,7 @@ abstract class RulesIdentifiableDataWrapper extends EntityStructureWrapper {
    *   The loaded data object, or FALSE if loading failed.
    */
   abstract protected function load($id);
+
 }
 
 /**
@@ -767,4 +771,5 @@ interface RulesDataWrapperSavableInterface {
    * Save the currently wrapped data.
    */
   public function save();
+
 }
diff --git a/includes/rules.upgrade.inc b/includes/rules.upgrade.inc
index 2fced5e..a4ad6d7 100644
--- a/includes/rules.upgrade.inc
+++ b/includes/rules.upgrade.inc
@@ -299,8 +299,10 @@ function rules_upgrade_plugin_factory($element) {
   switch ($element['#type']) {
     case 'OR':
       return rules_plugin_factory('or');
+
     case 'AND':
       return rules_plugin_factory('and');
+
     default:
       return rules_plugin_factory($element['#type']);
 
diff --git a/modules/comment.rules.inc b/modules/comment.rules.inc
index 770be7e..d034c60 100644
--- a/modules/comment.rules.inc
+++ b/modules/comment.rules.inc
@@ -4,6 +4,7 @@
  * @file rules integration for the comment module
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -76,6 +77,7 @@ class RulesCommentEventHandler extends RulesEventHandlerEntityBundle {
   protected function getBundlePropertyLabel() {
     return t('type');
   }
+
 }
 
 /**
diff --git a/modules/data.eval.inc b/modules/data.eval.inc
index 0d5841c..4bf6b80 100644
--- a/modules/data.eval.inc
+++ b/modules/data.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the data module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -62,18 +63,23 @@ function rules_action_data_calc($input1, $op, $input2, $settings, $state, $eleme
     case '+':
       $result = $input1 + $input2;
       break;
+
     case '-':
       $result = $input1 - $input2;
       break;
+
     case '*':
       $result = $input1 * $input2;
       break;
+
     case '/':
       $result = $input1 / $input2;
       break;
+
     case 'min':
       $result = min($input1, $input2);
       break;
+
     case 'max':
       $result = max($input1, $input2);
       break;
@@ -197,9 +203,11 @@ function rules_action_data_convert($arguments, RulesPlugin $element, $state) {
       case 'up':
         $arguments['value'] = ceil($arguments['value']);
         break;
+
       case 'down':
         $arguments['value'] = floor($arguments['value']);
         break;
+
       default:
       case 'round':
         $arguments['value'] = round($arguments['value']);
@@ -211,12 +219,15 @@ function rules_action_data_convert($arguments, RulesPlugin $element, $state) {
     case 'decimal':
       $result = floatval($arguments['value']);
       break;
+
     case 'integer':
       $result = intval($arguments['value']);
       break;
+
     case 'text':
       $result = strval($arguments['value']);
       break;
+
     case 'token':
       $result = strval($arguments['value']);
       break;
@@ -243,12 +254,15 @@ function rules_action_data_convert_info_alter(&$element_info, RulesAbstractPlugi
       case 'integer':
         $sources = array('decimal', 'text', 'token', 'uri', 'date', 'duration', 'boolean');
         break;
+
       case 'decimal':
         $sources = array('integer', 'text', 'token', 'uri', 'date', 'duration', 'boolean');
         break;
+
       case 'text':
         $sources = array('integer', 'decimal', 'token', 'uri', 'date', 'duration', 'boolean');
         break;
+
       case 'token':
         $sources = array('integer', 'decimal', 'text', 'uri', 'date', 'duration', 'boolean');
         break;
@@ -329,13 +343,17 @@ function rules_condition_data_is($data, $op, $value) {
         return (isset($data) && isset($value)) || (!isset($data) && !isset($value));
       }
       return $data == $value;
+
     case '<':
       return $data < $value;
+
     case '>':
       return $data > $value;
-      // Note: This is deprecated by the text comparison condition and IN below.
+
+    // Note: This is deprecated by the text comparison condition and IN below.
     case 'contains':
       return is_string($data) && strpos($data, $value) !== FALSE || is_array($data) && in_array($value, $data);
+
     case 'IN':
       return is_array($value) && in_array($data, $value);
   }
@@ -380,8 +398,10 @@ function rules_condition_data_list_count_is($list, $op = '==', $value) {
   switch ($op) {
     case '==':
       return count($list) == $value;
+
     case '<';
       return count($list) < $value;
+
     case '>';
       return count($list) > $value;
   }
@@ -415,11 +435,14 @@ function rules_data_text_comparison($text, $text2, $op = 'contains') {
   switch ($op) {
     case 'contains':
       return strpos($text, $text2) !== FALSE;
+
     case 'starts':
       return strpos($text, $text2) === 0;
+
     case 'ends':
-     return strrpos($text, $text2) === (strlen($text) - strlen($text2));
+      return strrpos($text, $text2) === (strlen($text) - strlen($text2));
+
     case 'regex':
-     return (bool) preg_match('/'. str_replace('/', '\\/', $text2) .'/', $text);
+      return (bool) preg_match('/' . str_replace('/', '\\/', $text2) . '/', $text);
   }
 }
diff --git a/modules/data.rules.inc b/modules/data.rules.inc
index e063bfc..93c4b3c 100644
--- a/modules/data.rules.inc
+++ b/modules/data.rules.inc
@@ -1,9 +1,11 @@
 <?php
 
 /**
- * @file General data related rules integration
+ * @file
+ * General data related rules integration.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -22,6 +24,7 @@ function rules_data_category_info() {
 
 /**
  * Implements hook_rules_file_info() on behalf of the pseudo data module.
+ *
  * @see rules_core_modules()
  */
 function rules_data_file_info() {
@@ -30,6 +33,7 @@ function rules_data_file_info() {
 
 /**
  * Implements hook_rules_action_info() on behalf of the pseudo data module.
+ *
  * @see rules_core_modules()
  */
 function rules_data_action_info() {
@@ -489,6 +493,7 @@ function rules_data_action_data_create_options() {
 
 /**
  * Implements hook_rules_condition_info() on behalf of the pseudo data module.
+ *
  * @see rules_core_modules()
  */
 function rules_data_condition_info() {
diff --git a/modules/entity.eval.inc b/modules/entity.eval.inc
index 0bea469..2e2a96f 100644
--- a/modules/entity.eval.inc
+++ b/modules/entity.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for entities needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/entity.rules.inc b/modules/entity.rules.inc
index f25249e..1e596aa 100644
--- a/modules/entity.rules.inc
+++ b/modules/entity.rules.inc
@@ -1,14 +1,17 @@
 <?php
 
 /**
- * @file General entity related rules integration
+ * @file
+ * General entity related rules integration.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
 /**
  * Implements hook_rules_file_info() on behalf of the entity module.
+ *
  * @see rules_core_modules()
  */
 function rules_entity_file_info() {
@@ -30,6 +33,7 @@ function rules_entity_category_info() {
 
 /**
  * Implements hook_rules_action_info() on behalf of the entity module.
+ *
  * @see rules_core_modules()
  */
 function rules_entity_action_info() {
@@ -322,6 +326,7 @@ function rules_entity_action_access($type, $name) {
 
 /**
  * Implements hook_rules_condition_info() on behalf of the entity module.
+ *
  * @see rules_core_modules()
  */
 function rules_entity_condition_info() {
@@ -569,6 +574,7 @@ function rules_condition_entity_is_of_bundle_form_alter(&$form, &$form_state, $o
       unset($form['parameter']['bundle']);
       unset($form['submit']);
       break;
+
     case 3:
       if (($info = $element->getArgumentInfo('entity')) && $info['type'] != 'entity') {
         // Hide the entity type parameter if not needed.
diff --git a/modules/events.inc b/modules/events.inc
index 4ac9760..31ca8d5 100644
--- a/modules/events.inc
+++ b/modules/events.inc
@@ -5,10 +5,10 @@
  *   directly in the module providing rules integration instead.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
-
 /**
  * Gets an unchanged entity that doesn't contain any recent changes. This
  * handler assumes the name of the variable for the changed entity is the same
@@ -41,10 +41,12 @@ function rules_entity_view($entity, $type, $view_mode, $langcode) {
       rules_invoke_event('comment_view--' . $entity->node_type, $entity, $view_mode);
       rules_invoke_event('comment_view', $entity, $view_mode);
       break;
+
     case 'node':
       rules_invoke_event('node_view--' . $entity->type, $entity, $view_mode);
       rules_invoke_event('node_view', $entity, $view_mode);
       break;
+
     case 'user':
       rules_invoke_event('user_view', $entity, $view_mode);
       break;
@@ -60,14 +62,17 @@ function rules_entity_presave($entity, $type) {
       rules_invoke_event('comment_presave--' . $entity->node_type, $entity);
       rules_invoke_event('comment_presave', $entity);
       break;
+
     case 'node':
       rules_invoke_event('node_presave--' . $entity->type, $entity);
       rules_invoke_event('node_presave', $entity);
       break;
+
     case 'taxonomy_term':
       rules_invoke_event('taxonomy_term_presave--' . $entity->vocabulary_machine_name, $entity);
       rules_invoke_event('taxonomy_term_presave', $entity);
       break;
+
     case 'taxonomy_vocabulary':
     case 'user':
       rules_invoke_event($type . '_presave', $entity);
@@ -84,14 +89,17 @@ function rules_entity_update($entity, $type) {
       rules_invoke_event('comment_update--' . $entity->node_type, $entity);
       rules_invoke_event('comment_update', $entity);
       break;
+
     case 'node':
       rules_invoke_event('node_update--' . $entity->type, $entity);
       rules_invoke_event('node_update', $entity);
       break;
+
     case 'taxonomy_term':
       rules_invoke_event('taxonomy_term_update--' . $entity->vocabulary_machine_name, $entity);
       rules_invoke_event('taxonomy_term_update', $entity);
       break;
+
     case 'taxonomy_vocabulary':
     case 'user':
       rules_invoke_event($type . '_update', $entity);
@@ -108,14 +116,17 @@ function rules_entity_insert($entity, $type) {
       rules_invoke_event('comment_insert--' . $entity->node_type, $entity);
       rules_invoke_event('comment_insert', $entity);
       break;
+
     case 'node':
       rules_invoke_event('node_insert--' . $entity->type, $entity);
       rules_invoke_event('node_insert', $entity);
       break;
+
     case 'taxonomy_term':
       rules_invoke_event('taxonomy_term_insert--' . $entity->vocabulary_machine_name, $entity);
       rules_invoke_event('taxonomy_term_insert', $entity);
       break;
+
     case 'taxonomy_vocabulary':
     case 'user':
       rules_invoke_event($type . '_insert', $entity);
@@ -132,14 +143,17 @@ function rules_entity_delete($entity, $type) {
       rules_invoke_event('comment_delete--' . $entity->node_type, $entity);
       rules_invoke_event('comment_delete', $entity);
       break;
+
     case 'node':
       rules_invoke_event('node_delete--' . $entity->type, $entity);
       rules_invoke_event('node_delete', $entity);
       break;
+
     case 'taxonomy_term':
       rules_invoke_event('taxonomy_term_delete--' . $entity->vocabulary_machine_name, $entity);
       rules_invoke_event('taxonomy_term_delete', $entity);
       break;
+
     case 'taxonomy_vocabulary':
     case 'user':
       rules_invoke_event($type . '_delete', $entity);
diff --git a/modules/node.eval.inc b/modules/node.eval.inc
index 858ea2a..d89a9c1 100644
--- a/modules/node.eval.inc
+++ b/modules/node.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the node module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -22,6 +23,7 @@ abstract class RulesNodeConditionBase extends RulesConditionHandlerBase {
       'access callback' => 'rules_node_integration_access',
     );
   }
+
 }
 
 /**
@@ -61,6 +63,7 @@ class RulesNodeConditionType extends RulesNodeConditionBase {
   public function assertions() {
     return array('node' => array('bundle' => $this->element->settings['type']));
   }
+
 }
 
 /**
@@ -107,6 +110,7 @@ class RulesNodeConditionSticky extends RulesNodeConditionBase {
   public function execute($node) {
     return $node->sticky == 1;
   }
+
 }
 
 /**
@@ -130,6 +134,7 @@ class RulesNodeConditionPromoted extends RulesNodeConditionBase {
   public function execute($node) {
     return $node->promote == 1;
   }
+
 }
 
 /**
diff --git a/modules/node.rules.inc b/modules/node.rules.inc
index 2629840..f6a4a7d 100644
--- a/modules/node.rules.inc
+++ b/modules/node.rules.inc
@@ -1,9 +1,11 @@
 <?php
 
 /**
- * @file rules integration for the node module
+ * @file
+ * Rules integration for the node module.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -140,7 +142,6 @@ function rules_node_admin_access() {
   return user_access('administer nodes');
 }
 
-
 /**
  * Event handler support node bundle event settings.
  */
@@ -154,6 +155,7 @@ class RulesNodeEventHandler extends RulesEventHandlerEntityBundle {
   protected function getBundlePropertyLabel() {
     return t('type');
   }
+
 }
 
 /**
diff --git a/modules/path.eval.inc b/modules/path.eval.inc
index 9f74acd..270d19c 100644
--- a/modules/path.eval.inc
+++ b/modules/path.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the path module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/path.rules.inc b/modules/path.rules.inc
index ad43e5f..d547dc2 100644
--- a/modules/path.rules.inc
+++ b/modules/path.rules.inc
@@ -4,6 +4,7 @@
  * @file rules integration for the path module
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/php.eval.inc b/modules/php.eval.inc
index ac35cf3..92307ca 100644
--- a/modules/php.eval.inc
+++ b/modules/php.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the php module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -58,6 +59,7 @@ class RulesPHPEvaluator extends RulesDataInputEvaluator {
 
     return $render;
   }
+
 }
 
 /**
@@ -92,6 +94,7 @@ class RulesPHPDataProcessor extends RulesDataProcessor {
     $value = isset($this->processor) ? $this->processor->process($value, $info, $state, $element) : $value;
     return rules_php_eval_return($this->setting['code'], array('value' => $value));
   }
+
 }
 
 /**
diff --git a/modules/php.rules.inc b/modules/php.rules.inc
index 3fef701..2f1a9dd 100644
--- a/modules/php.rules.inc
+++ b/modules/php.rules.inc
@@ -4,6 +4,7 @@
  * @file rules integration for the php module
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/rules_core.eval.inc b/modules/rules_core.eval.inc
index 55fba1a..03853a3 100644
--- a/modules/rules_core.eval.inc
+++ b/modules/rules_core.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules core integration needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -89,6 +90,7 @@ class RulesDateInputEvaluator extends RulesDataInputEvaluator {
   public static function isFixedDateString($date) {
     return is_string($date) && preg_match(self::DATE_REGEX_LOOSE, $date);
   }
+
 }
 
 /**
@@ -119,6 +121,7 @@ class RulesURIInputEvaluator extends RulesDataInputEvaluator {
     }
     throw new RulesEvaluationException('Input evaluation generated an invalid URI.', array(), NULL, RulesLog::WARN);
   }
+
 }
 
 /**
@@ -178,6 +181,7 @@ class RulesDateOffsetProcessor extends RulesDataProcessor {
       return $timestamp + $offset;
     }
   }
+
 }
 
 /**
@@ -209,6 +213,7 @@ class RulesNumericOffsetProcessor extends RulesDataProcessor {
     $value = isset($this->processor) ? $this->processor->process($value, $info, $state, $element) : $value;
     return $value + $this->setting['value'];
   }
+
 }
 
 
@@ -239,4 +244,5 @@ class RulesTaxonomyVocabularyWrapper extends EntityDrupalWrapper {
     }
     return parent::validate($value);
   }
+
 }
diff --git a/modules/rules_core.rules.inc b/modules/rules_core.rules.inc
index 33d55a2..f59f442 100644
--- a/modules/rules_core.rules.inc
+++ b/modules/rules_core.rules.inc
@@ -5,6 +5,7 @@
  * actions to invoke configured components.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/system.eval.inc b/modules/system.eval.inc
index 056d756..f02269c 100644
--- a/modules/system.eval.inc
+++ b/modules/system.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the system module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -262,6 +263,7 @@ class RulesTokenEvaluator extends RulesDataInputEvaluator {
     }
     return $render;
   }
+
 }
 
 /**
diff --git a/modules/taxonomy.rules.inc b/modules/taxonomy.rules.inc
index a3caf1b..12f2cfb 100644
--- a/modules/taxonomy.rules.inc
+++ b/modules/taxonomy.rules.inc
@@ -4,6 +4,7 @@
  * @file rules integration for the taxonomy_term module
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -109,6 +110,7 @@ class RulesTaxonomyEventHandler extends RulesEventHandlerEntityBundle {
   protected function getBundlePropertyLabel() {
     return t('vocabulary');
   }
+
 }
 
 /**
diff --git a/modules/user.eval.inc b/modules/user.eval.inc
index a990bfb..7f3fcda 100644
--- a/modules/user.eval.inc
+++ b/modules/user.eval.inc
@@ -5,6 +5,7 @@
  * Contains rules integration for the user module needed during evaluation.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/modules/user.rules.inc b/modules/user.rules.inc
index 3e06b1a..4e9ea9e 100644
--- a/modules/user.rules.inc
+++ b/modules/user.rules.inc
@@ -1,9 +1,11 @@
 <?php
 
 /**
- * @file rules integration for the user module
+ * @file
+ * Rules integration for the user module.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
@@ -88,6 +90,7 @@ function rules_user_event_info() {
 
 /**
  * Options list for user cancel methods.
+ *
  * @todo: Use for providing a user_cancel action.
  */
 function rules_user_cancel_methods() {
diff --git a/rules.api.php b/rules.api.php
index 3ef3fd4..009ba15 100644
--- a/rules.api.php
+++ b/rules.api.php
@@ -7,7 +7,6 @@
  * Drupal manner.
  */
 
-
 /**
  * @defgroup rules Rules module integrations.
  *
@@ -259,6 +258,7 @@ function hook_rules_directory() {
  *   The callback gets arguments passed as described as parameter in
  *   hook_rules_action_info() as well as an array containing the action's
  *   configuration settings.
+ *
  * @return
  *   The action may return an array containing parameter or provided variables
  *   with their names as key. This is used update the value of a parameter or to
@@ -413,7 +413,6 @@ function hook_rules_event_info() {
  * module.
  * For a list of data types defined by rules see rules_rules_core_data_info().
  *
- *
  * @return
  *   An array of information about the module's provided data types. The array
  *   contains a sub-array for each data type, with the data type name as the
@@ -985,6 +984,7 @@ function hook_rules_event_set_alter($event_name, RulesEventSet $event_set) {
  * @param $element
  *   The element array of a configured condition or action which is to be
  *   upgraded.
+ *
  * @return
  *   The name of the action or condition which should be used.
  */
@@ -1080,7 +1080,8 @@ function hook_rules_ui_menu_alter(&$items, $base_path, $base_count) {
  * @param $account
  *   (optional) The user to check for. If no account is passed, access is
  *   determined for the current user.
- * @return boolean
+ *
+ * @return bool
  *   Return TRUE to grant access, FALSE to explicitly deny access. Return NULL
  *   or nothing to not affect the operation.
  *   Access is granted as soon as a module grants access and no one denies
diff --git a/rules.drush.inc b/rules.drush.inc
index dc30de4..51d7366 100644
--- a/rules.drush.inc
+++ b/rules.drush.inc
@@ -48,8 +48,10 @@ function rules_drush_help($section) {
   switch ($section) {
     case 'drush:rules':
       return dt("List all the rules on your site.");
+
     case 'drush:rules-enable':
       return dt("Enable/activate a rule on your site.");
+
     case 'drush:rules-disable':
       return dt("Disable/deactivate a rule on your site.");
   }
diff --git a/rules.features.inc b/rules.features.inc
index b079bd0..ef810ad 100644
--- a/rules.features.inc
+++ b/rules.features.inc
@@ -6,7 +6,6 @@
  * integration provided by the Entity API.
  */
 
-
 /**
  * Controller handling the features integration.
  */
@@ -42,6 +41,7 @@ class RulesFeaturesController extends EntityDefaultFeaturesController {
     }
     return $pipe;
   }
+
 }
 
 /**
@@ -69,6 +69,7 @@ interface RulesPluginFeaturesIntegrationInterface {
    * Allows customizing the features export for a given rule element.
    */
   public function features_export(&$export, &$pipe, $module_name = '');
+
 }
 
 /**
diff --git a/rules.module b/rules.module
index d107352..96d340b 100644
--- a/rules.module
+++ b/rules.module
@@ -78,6 +78,7 @@ function rules_ui() {
  *   The action's name.
  * @param $settings
  *   The action's settings array.
+ *
  * @return RulesAction
  */
 function rules_action($name, $settings = array()) {
@@ -91,6 +92,7 @@ function rules_action($name, $settings = array()) {
  *   The condition's name.
  * @param $settings
  *   The condition's settings array.
+ *
  * @return RulesCondition
  */
 function rules_condition($name, $settings = array()) {
@@ -118,6 +120,7 @@ function rules_condition($name, $settings = array()) {
  * @param $provides
  *   The names of variables which should be provided to the caller. Only
  *   variables contained in $variables may be specified.
+ *
  * @return Rule
  */
 function rule($variables = NULL, $provides = array()) {
@@ -138,6 +141,7 @@ function rules_reaction_rule() {
  *
  * @param $variables
  *   An optional array as for rule().
+ *
  * @return RulesOr
  */
 function rules_or($variables = NULL) {
@@ -149,6 +153,7 @@ function rules_or($variables = NULL) {
  *
  * @param $variables
  *   An optional array as for rule().
+ *
  * @return RulesAnd
  */
 function rules_and($variables = NULL) {
@@ -165,6 +170,7 @@ function rules_and($variables = NULL) {
  *     'item:label': Optionally a label for the list item variable.
  * @param $variables
  *   An optional array as for rule().
+ *
  * @return RulesLoop
  */
 function rules_loop($settings = array(), $variables = NULL) {
@@ -178,6 +184,7 @@ function rules_loop($settings = array(), $variables = NULL) {
  *   An array as for rule().
  * @param $provides
  *   The names of variables which should be provided to the caller. See rule().
+ *
  * @return RulesRuleSet
  */
 function rules_rule_set($variables = array(), $provides = array()) {
@@ -191,6 +198,7 @@ function rules_rule_set($variables = array(), $provides = array()) {
  *   An array as for rule().
  * @param $provides
  *   The names of variables which should be provided to the caller. See rule().
+ *
  * @return RulesActionSet
  */
 function rules_action_set($variables = array(), $provides = array()) {
@@ -497,6 +505,7 @@ function rules_clear_cache() {
  * @param $export
  *   A serialized string in JSON format as produced by the RulesPlugin::export()
  *   method, or the PHP export as usual PHP array.
+ *
  * @return RulesPlugin
  */
 function rules_import($export, &$error_msg = '') {
@@ -514,6 +523,7 @@ function rules_import($export, &$error_msg = '') {
  * @param $force
  *   Usually data is only wrapped if really needed. If set to TRUE, wrapping the
  *   data is forced, so primitive data types are also wrapped.
+ *
  * @return EntityMetadataWrapper
  *   An EntityMetadataWrapper or the unwrapped data.
  *
@@ -558,6 +568,7 @@ function &rules_wrap_data($data = NULL, $info, $force = FALSE) {
  *   An array of wrapped data.
  * @param $info
  *   Optionally an array of info about how to unwrap the data. Keyed as $data.
+ *
  * @return
  *   An array containing unwrapped or passed through data.
  */
@@ -1269,6 +1280,7 @@ function rules_permissions_by_component(array $components = array()) {
 
 /**
  * Menu callback for loading rules configuration elements.
+ *
  * @see RulesUIController::config_menu()
  */
 function rules_element_load($element_id, $config_name) {
@@ -1278,6 +1290,7 @@ function rules_element_load($element_id, $config_name) {
 
 /**
  * Menu callback for getting the title as configured.
+ *
  * @see RulesUIController::config_menu()
  */
 function rules_get_title($text, $element) {
@@ -1296,6 +1309,7 @@ function rules_get_title($text, $element) {
  * Menu callback for getting the title for the add element page.
  *
  * Uses a work-a-round for accessing the plugin name.
+ *
  * @see RulesUIController::config_menu()
  */
 function rules_menu_add_element_title($array) {
diff --git a/rules_i18n/rules_i18n.i18n.inc b/rules_i18n/rules_i18n.i18n.inc
index f97ec16..8699db0 100644
--- a/rules_i18n/rules_i18n.i18n.inc
+++ b/rules_i18n/rules_i18n.i18n.inc
@@ -34,6 +34,7 @@ class RulesI18nStringController extends EntityDefaultI18nStringController {
   protected function menuBasePath() {
     return 'admin/config/workflow/rules/reaction';
   }
+
 }
 
 /**
@@ -91,4 +92,5 @@ class RulesI18nStringObjectWrapper extends i18n_string_object_wrapper {
       }
     }
   }
+
 }
diff --git a/rules_i18n/rules_i18n.module b/rules_i18n/rules_i18n.module
index 8a87615..354d506 100644
--- a/rules_i18n/rules_i18n.module
+++ b/rules_i18n/rules_i18n.module
@@ -5,7 +5,6 @@
  * Rules i18n integration.
  */
 
-
 /**
  * Implements hook_menu().
  */
diff --git a/rules_i18n/rules_i18n.rules.inc b/rules_i18n/rules_i18n.rules.inc
index 4f5d0ee..434dab7 100644
--- a/rules_i18n/rules_i18n.rules.inc
+++ b/rules_i18n/rules_i18n.rules.inc
@@ -193,4 +193,5 @@ class RulesI18nStringEvaluator extends RulesDataInputEvaluator {
       return $render;
     }
   }
+
 }
diff --git a/rules_i18n/rules_i18n.test b/rules_i18n/rules_i18n.test
index f9e5d98..3f05610 100644
--- a/rules_i18n/rules_i18n.test
+++ b/rules_i18n/rules_i18n.test
@@ -180,4 +180,5 @@ class RulesI18nTestCase extends DrupalWebTestCase {
     $messages = drupal_get_messages();
     $this->assertEqual($messages['status'][0], "German body.\n", 'Translated text has been selected.');
   }
+
 }
diff --git a/rules_scheduler/includes/rules_scheduler_views_filter.inc b/rules_scheduler/includes/rules_scheduler_views_filter.inc
index 76848d1..5994d83 100644
--- a/rules_scheduler/includes/rules_scheduler_views_filter.inc
+++ b/rules_scheduler/includes/rules_scheduler_views_filter.inc
@@ -4,7 +4,9 @@
  * @file
  * An extended subclass for component filtering.
  */
+
 class rules_scheduler_views_filter extends views_handler_filter_in_operator {
+
   public function get_value_options() {
     if (!isset($this->value_options)) {
       $this->value_title = t('Component');
diff --git a/rules_scheduler/rules_scheduler.rules.inc b/rules_scheduler/rules_scheduler.rules.inc
index 473a810..b86888f 100644
--- a/rules_scheduler/rules_scheduler.rules.inc
+++ b/rules_scheduler/rules_scheduler.rules.inc
@@ -5,6 +5,7 @@
  * Rules integration for the rules scheduler module.
  *
  * @addtogroup rules
+ *
  * @{
  */
 
diff --git a/tests/rules.test b/tests/rules.test
index eca5c6d..6c2ef85 100644
--- a/tests/rules.test
+++ b/tests/rules.test
@@ -351,7 +351,6 @@ class RulesTestCase extends DrupalWebTestCase {
     $vars = $rule->conditions()->offsetGet(0)->availableVariables();
     $this->assertEqual(!isset($vars['node_loaded']), 'Loaded variable is not available to conditions.');
 
-
     // Test adding a variable with a custom variable name.
     $node = $this->drupalCreateNode();
     $rule = rule(array('nid' => array('type' => 'integer')));
@@ -627,7 +626,6 @@ class RulesTestCase extends DrupalWebTestCase {
     $rule->execute($node);
     $this->assertTrue($node->sticky, 'Rule with asserted metadata executed.');
 
-
     // Test asserting metadata on a derived property, i.e. not a variable.
     $rule = rule(array('node' => array('type' => 'node')));
     $rule->condition('entity_is_of_type', array('entity:select' => 'node:reference', 'type' => 'node'))
@@ -930,6 +928,7 @@ class RulesTestCase extends DrupalWebTestCase {
     $msg = RulesTestCase::t('The variable or parameter %message is empty.', array('message'));
     $this->assertTrue(strpos($text, $msg) !== FALSE, 'Evaluation aborted due to an empty argument value.');
   }
+
 }
 
 /**
@@ -1075,6 +1074,7 @@ class RulesTestDataCase extends DrupalWebTestCase {
     $node = node_load($node->nid, NULL, TRUE);
     $this->assertEqual($node->status, 1, 'Savable non-entity has been saved.');
   }
+
 }
 
 /**
@@ -1300,6 +1300,7 @@ class RulesTriggerTestCase extends DrupalWebTestCase {
       $this->pass('Integrity check failed: ' . $e);
     }
   }
+
 }
 
 /**
@@ -1354,7 +1355,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $pos = strpos($text, RulesTestCase::t('Added the provided variable %data_created of type %log_entry', array('data_created', 'log_entry')));
     $this->assertTrue($pos !== FALSE, 'Data of type log entry has been created.');
 
-
     // Test variable_add action.
     $action = rules_action('variable_add', array(
       'type' => 'text_formatted',
@@ -1369,7 +1369,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $pos = strpos($text, RulesTestCase::t('Added the provided variable %variable_added of type %text_formatted', array('variable_added', 'text_formatted')));
     $this->assertTrue($pos !== FALSE, 'Data of type text formatted has been created.');
 
-
     // Test using the list actions.
     $rule = rule(array(
       'list' => array(
@@ -1399,7 +1398,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $rule->execute($node);
     $this->assertEqual($node->title, 'bar', "Data comparison using IN operation evaluates to TRUE.");
 
-
     // Test Condition: Data is empty.
     $rule = rule(array('node' => array('type' => 'node')));
     $rule->condition('data_is_empty', array('data:select' => 'node:title'));
@@ -1585,8 +1583,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $this->assertTrue($pos !== FALSE, 'Data has been fetched, saved and deleted.');
     //debug(RulesLog::logger()->render());
 
-
-
     $node = entity_property_values_create_entity('node', array(
       'type' => 'article',
       'author' => $user,
@@ -1765,7 +1761,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $return = rules_condition('node_is_of_type', array('type' => array('article')))->execute($node);
     $this->assertFalse($return, 'Condition determines node is not of type article.');
 
-
     // Test auto saving of a new node after it has been inserted into the DB.
     $rule = rules_reaction_rule();
     $rand = $this->randomName();
@@ -1970,7 +1965,6 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $this->drupalGet('node/' . $node->nid);
     $this->assertEqual($this->getUrl(), url('user', array('absolute' => TRUE, 'fragment' => 'fragment')), 'Redirect has been issued.');
 
-
     // Test sending mail.
     $settings = array('to' => 'mail@example.com', 'subject' => 'subject', 'message' => 'hello.');
     rules_action('mail', $settings)->execute();
@@ -2032,6 +2026,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
 
     RulesLog::logger()->checkLog();
   }
+
 }
 
 /**
@@ -2099,6 +2094,7 @@ class RulesEventDispatcherTestCase extends DrupalWebTestCase {
       $this->assertEqual($key !== 5, $handler->isWatching());
     }
   }
+
 }
 
 /**
diff --git a/tests/rules_test.rules.inc b/tests/rules_test.rules.inc
index dd236a9..05c2ab3 100644
--- a/tests/rules_test.rules.inc
+++ b/tests/rules_test.rules.inc
@@ -240,6 +240,7 @@ class RulesTestClassAction extends RulesActionHandlerBase {
   public function execute($node) {
     rules_log('Action called with node ' . $node->nid);
   }
+
 }
 
 /**
@@ -280,6 +281,7 @@ class RulesTestTypeWrapper extends RulesIdentifiableDataWrapper implements Rules
   public function save() {
     node_save($this->value());
   }
+
 }
 
 /**
@@ -307,6 +309,7 @@ class RulesTestContainer extends RulesContainerPlugin {
   public function evaluate(RulesState $state) {
     // Do nothing.
   }
+
 }
 
 /**
diff --git a/tests/rules_test.rules_defaults.inc b/tests/rules_test.rules_defaults.inc
index f7f6387..e25266f 100644
--- a/tests/rules_test.rules_defaults.inc
+++ b/tests/rules_test.rules_defaults.inc
@@ -4,7 +4,6 @@
  * @file Includes any rules integration provided by the module.
  */
 
-
 /**
  * Implements hook_default_rules_configuration().
  */
diff --git a/ui/rules.ui.css b/ui/rules.ui.css
index 5c90100..358b104 100644
--- a/ui/rules.ui.css
+++ b/ui/rules.ui.css
@@ -85,7 +85,6 @@ ul.rules-operations-add li {
 .rules-debug-collapsible-link {
   position: relative;
   cursor: pointer;
-
   /* The span element with the icon which opens the log, has a whitespace.
      Since we don't want the user to mark this white space, we prevent this
      using the this code.*/
diff --git a/ui/ui.controller.inc b/ui/ui.controller.inc
index 99269d5..491df3d 100644
--- a/ui/ui.controller.inc
+++ b/ui/ui.controller.inc
@@ -321,4 +321,5 @@ class RulesUIController {
     $row[] = l(t('export'), RulesPluginUI::path($name, 'export'), array('attributes' => array('class' => array('export', 'action'))));
     return $row;
   }
+
 }
diff --git a/ui/ui.core.inc b/ui/ui.core.inc
index b6ef028..88e83ab 100644
--- a/ui/ui.core.inc
+++ b/ui/ui.core.inc
@@ -135,6 +135,7 @@ class RulesElementMap {
     }
     return isset($this->index[$id]) ? $this->index[$id] : FALSE;
   }
+
 }
 
 /**
@@ -879,6 +880,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
       ->fetchCol('tag');
     return drupal_map_assoc($result);
   }
+
 }
 
 /**
@@ -923,6 +925,7 @@ class RulesAbstractPluginUI extends RulesPluginUI {
       form_set_error(implode('][', $e->keys), $e->getMessage());
     }
   }
+
 }
 
 /**
@@ -1078,6 +1081,7 @@ class RulesContainerPluginUI extends RulesPluginUI {
     }
     return $content;
   }
+
 }
 
 /**
@@ -1123,6 +1127,7 @@ class RulesConditionContainerUI extends RulesContainerPluginUI {
       $this->element->negate($form_values['negate']);
     }
   }
+
 }
 
 /**
@@ -1137,6 +1142,7 @@ class RulesActionContainerUI extends RulesContainerPluginUI {
     $form['elements']['#attributes']['class'][] = 'rules-action-container';
     $form['elements']['#caption'] = t('Actions');
   }
+
 }
 
 /**
@@ -1166,14 +1172,14 @@ class RulesUICategory {
    *   (optional) Whether group labels for grouping inside a category should be
    *   return. Defaults to FALSE.
    *
-   * @return string|boolean
+   * @return string|bool
    *   The group label to use, or FALSE if none can be found.
    */
   public static function getItemGroup($item_info, $in_category = FALSE) {
     if (isset($item_info['category']) && !$in_category) {
       return self::getCategory($item_info, 'label');
     }
-    else if (!empty($item_info['group'])) {
+    elseif (!empty($item_info['group'])) {
       return $item_info['group'];
     }
     return FALSE;
@@ -1255,6 +1261,7 @@ class RulesUICategory {
     }
     return $ungrouped + $sorted_groups;
   }
+
 }
 
 /**
diff --git a/ui/ui.data.inc b/ui/ui.data.inc
index 8722946..5c6b24c 100644
--- a/ui/ui.data.inc
+++ b/ui/ui.data.inc
@@ -1,10 +1,10 @@
 <?php
 
 /**
- * @file Contains data type related forms.
+ * @file
+ * Contains data type related forms.
  */
 
-
 /**
  * Interface for data types providing a direct input form.
  */
@@ -51,6 +51,7 @@ interface RulesDataInputOptionsListInterface extends RulesDataDirectInputFormInt
    *   An array of options as used by hook_options_list().
    */
   public static function optionsList(RulesPlugin $element, $name);
+
 }
 
 /**
@@ -181,6 +182,7 @@ class RulesDataUI {
     $parameters = $element->pluginParameterInfo();
     return array($parameters[$name]['type'], $parameters[$name]);
   }
+
 }
 
 /**
@@ -225,6 +227,7 @@ class RulesDataUIText extends RulesDataUI implements RulesDataDirectInputFormInt
       '#attributes' => array('class' => array('rules-parameter-text')),
     );
   }
+
 }
 
 /**
@@ -241,6 +244,7 @@ class RulesDataUITextToken extends RulesDataUIText {
     }
     return $form;
   }
+
 }
 
 /**
@@ -265,9 +269,8 @@ class RulesDataUITextFormatted extends RulesDataUIText {
       '#attributes' => array('class' => array('rules-parameter-text-formatted')),
     );
   }
-}
-
 
+}
 
 /**
  * UI for decimal data.
@@ -283,6 +286,7 @@ class RulesDataUIDecimal extends RulesDataUIText {
     $form[$name]['#rows'] = 1;
     return $form;
   }
+
 }
 
 /**
@@ -298,6 +302,7 @@ class RulesDataUIInteger extends RulesDataUIText {
     $form[$name]['#element_validate'][] = 'rules_ui_element_integer_validate';
     return $form;
   }
+
 }
 
 /**
@@ -315,6 +320,7 @@ class RulesDataUIIPAddress extends RulesDataUIText {
     $form[$name]['#rows'] = 1;
     return $form;
   }
+
 }
 
 /**
@@ -346,6 +352,7 @@ class RulesDataUIBoolean extends RulesDataUI implements RulesDataDirectInputForm
       '#attributes' => array('class' => array('rules-parameter-boolean')),
     );
   }
+
 }
 
 /**
@@ -381,6 +388,7 @@ class RulesDataUIDate extends RulesDataUIText {
       '#attributes' => array('class' => array('rules-parameter-date')),
     );
   }
+
 }
 
 /**
@@ -402,6 +410,7 @@ class RulesDataUIDuration extends RulesDataUIText {
       '#attributes' => array('class' => array('rules-parameter-duration')),
     );
   }
+
 }
 
 /**
@@ -415,6 +424,7 @@ class RulesDataUIURI extends RulesDataUIText {
     $form[$name]['#description'] = t('You may enter relative URLs like %url as well as absolute URLs like %absolute-url.', array('%url' => 'user/login?destination=node', '%absolute-url' => 'http://drupal.org'));
     return $form;
   }
+
 }
 
 /**
@@ -453,6 +463,7 @@ class RulesDataUIListText extends RulesDataUIText {
       '#attributes' => array('class' => array('rules-parameter-list')),
     );
   }
+
 }
 
 /**
@@ -473,6 +484,7 @@ class RulesDataUIListInteger extends RulesDataUIListText {
     }
     return $form;
   }
+
 }
 
 /**
@@ -489,6 +501,7 @@ class RulesDataUIListToken extends RulesDataUIListInteger {
     }
     return $form;
   }
+
 }
 
 /**
@@ -515,6 +528,7 @@ class RulesDataUIEntity extends RulesDataUIText {
     }
     return $form;
   }
+
 }
 
 /**
@@ -525,6 +539,7 @@ class RulesDataUIEntityExportable extends RulesDataUIEntity {
   public static function getDefaultMode() {
     return 'input';
   }
+
 }
 
 /**
@@ -554,6 +569,7 @@ class RulesDataUIBundleEntity extends RulesDataUIEntity implements RulesDataInpu
     }
     return $bundles;
   }
+
 }
 
 /**
@@ -577,6 +593,7 @@ class RulesDataUITaxonomyVocabulary extends RulesDataUIEntity implements RulesDa
     }
     return $options;
   }
+
 }
 
 /**
@@ -598,4 +615,5 @@ class RulesDataUIListEntity extends RulesDataUIListInteger {
     }
     return $form;
   }
+
 }
diff --git a/ui/ui.forms.inc b/ui/ui.forms.inc
index e20e24b..76c654c 100644
--- a/ui/ui.forms.inc
+++ b/ui/ui.forms.inc
@@ -166,12 +166,16 @@ function rules_ui_confirm_operations($op, $rules_config) {
   switch ($op) {
     case 'enable':
       return array(t('Are you sure you want to enable the %plugin %label?', $vars), '');
+
     case 'disable':
       return array(t('Are you sure you want to disable the %plugin %label?', $vars), '');
+
     case 'revert':
       return array(t('Are you sure you want to revert the %plugin %label?', $vars), t('This action cannot be undone.'));
+
     case 'delete':
       return array(t('Are you sure you want to delete the %plugin %label?', $vars), t('This action cannot be undone.'));
+
     default:
       return FALSE;
   }
@@ -877,6 +881,7 @@ function rules_ui_element_machine_name_validate($element, &$form_state) {
 
 /**
  * FAPI callback to validate the form for editing variable info.
+ *
  * @see RulesPluginUI::getVariableForm()
  */
 function rules_ui_element_variable_form_validate($elements, &$form_state) {
diff --git a/ui/ui.plugins.inc b/ui/ui.plugins.inc
index f01aa62..923be46 100644
--- a/ui/ui.plugins.inc
+++ b/ui/ui.plugins.inc
@@ -77,6 +77,7 @@ class RulesRuleUI extends RulesActionContainerUI {
     $ops['#links'] = array_intersect_key($ops['#links'], array_flip(array('edit', 'delete')));
     return $ops;
   }
+
 }
 
 /**
@@ -170,6 +171,7 @@ class RulesReactionRuleUI extends RulesRuleUI {
     $this->rule->active = $form_values['active'];
     $this->rule->weight = $form_values['weight'];
   }
+
 }
 
 /**
@@ -186,6 +188,7 @@ class RulesRuleSetUI extends RulesActionContainerUI {
     $form['elements']['#attributes']['class'][] = 'rules-rule-set';
     $form['elements']['#caption'] = t('Rules');
   }
+
 }
 
 /**
@@ -251,4 +254,5 @@ class RulesLoopUI extends RulesActionContainerUI {
     );
     return $content;
   }
+
 }
diff --git a/ui/ui.theme.inc b/ui/ui.theme.inc
index 42bf6e8..217d398 100644
--- a/ui/ui.theme.inc
+++ b/ui/ui.theme.inc
@@ -4,7 +4,6 @@
  * @file Rules theme functions
  */
 
-
 /**
  * Themes a tree of rule elements in a draggable table.
  *
@@ -58,6 +57,7 @@ function theme_rules_elements($variables) {
  * Themes the rules form for editing the used variables.
  *
  * @see RulesPluginUI::getVariableForm()
+ *
  * @ingroup themeable
  */
 function theme_rules_ui_variable_form($variables) {
@@ -107,6 +107,7 @@ function theme_rules_ui_variable_form($variables) {
 
 /**
  * Themes a view of multiple configuration items.
+ *
  * @ingroup themeable
  */
 function theme_rules_content_group($variables) {
@@ -125,6 +126,7 @@ function theme_rules_content_group($variables) {
 
 /**
  * Themes the view of a single parameter configuration.
+ *
  * @ingroup themeable
  */
 function theme_rules_parameter_configuration($variables) {
@@ -149,6 +151,7 @@ function theme_rules_parameter_configuration($variables) {
 
 /**
  * Themes info about variables.
+ *
  * @ingroup themeable
  */
 function theme_rules_variable_view($variables) {
@@ -169,6 +172,7 @@ function theme_rules_variable_view($variables) {
 
 /**
  * Themes help for using the data selector.
+ *
  * @ingroup themeable
  */
 function theme_rules_data_selector_help($variables) {
@@ -200,6 +204,7 @@ function theme_rules_data_selector_help($variables) {
 
 /**
  * Themes the rules log debug output.
+ *
  * @ingroup themeable
  */
 function theme_rules_log($variables) {
@@ -230,6 +235,7 @@ function theme_rules_log($variables) {
 
 /**
  * Theme rules debug log elements.
+ *
  * @ingroup themeable
  */
 function theme_rules_debug_element($variables) {
@@ -248,6 +254,7 @@ function theme_rules_debug_element($variables) {
 
 /**
  * Themes rules autocomplete forms.
+ *
  * @ingroup themeable
  */
 function theme_rules_autocomplete($variables) {
@@ -278,6 +285,7 @@ function theme_rules_autocomplete($variables) {
 
 /**
  * General theme function for displaying settings related help.
+ *
  * @ingroup themeable
  */
 function theme_rules_settings_help($variables) {
