diff --git a/includes/rules.core.inc b/includes/rules.core.inc
index fb64f80..96f057a 100644
--- a/includes/rules.core.inc
+++ b/includes/rules.core.inc
@@ -344,7 +344,7 @@ abstract class RulesExtendable extends FacesExtendable {
     if (isset($this->cache[$this->hook][$this->itemName])) {
       $this->itemInfo = &$this->cache[$this->hook][$this->itemName];
     }
-    // Set up the Faces Extenders
+    // Set up the Faces Extenders.
     if (!empty($this->itemInfo['faces_cache'])) {
       list($this->facesMethods, $this->facesIncludes, $this->faces) = $this->itemInfo['faces_cache'];
     }
@@ -907,7 +907,7 @@ abstract class RulesPlugin extends RulesExtendable {
       elseif (!$this->isRoot() && !isset($this->settings[$name]) && empty($info['optional']) && $info['type'] != 'hidden') {
         throw new RulesIntegrityException(t('Missing configuration for parameter %name.', array('%name' => $name)), array($this, 'parameter', $name));
       }
-      //TODO: Make sure used values are allowed. (key/value pairs + allowed values)
+      //@todo Make sure used values are allowed. (key/value pairs + allowed values)
     }
   }
 
@@ -974,7 +974,7 @@ abstract class RulesPlugin extends RulesExtendable {
     if (!empty($this->settings[$name . ':process'])) {
       // For processing, make sure the data is unwrapped now.
       $return = rules_unwrap_data(array($arg), array($info));
-      // @todo for Drupal 8: Refactor to add the name and language code as
+      // @todo For Drupal 8: Refactor to add the name and language code as
       // separate parameter to process().
       $info['#name'] = $name;
       $info['#langcode'] = $langcode;
@@ -1102,7 +1102,7 @@ abstract class RulesPlugin extends RulesExtendable {
       // default configurations 'module' points to the module providing the
       // default configuration, so the module via which the rules is configured
       // is stored in the "owner" property.
-      // @todo: For Drupal 8 use "owner" for generating machine names also and
+      // @todo For Drupal 8 use "owner" for generating machine names also and
       // module only for the modules providing default configurations.
       $this->module = !isset($this->module) || $module != 'rules' ? $module : $this->module;
       if (!isset($this->owner)) {
@@ -2775,7 +2775,7 @@ class RulesEvaluationException extends RulesException {
         rules_clear_cache();
       }
     }
-    // @todo fix _drupal_decode_exception() to use __toString() and override it.
+    // @todo Fix _drupal_decode_exception() to use __toString() and override it.
     $this->message = t($this->msg, $this->args);
   }
 
diff --git a/includes/rules.event.inc b/includes/rules.event.inc
index 1cb93b5..edb144d 100755
--- a/includes/rules.event.inc
+++ b/includes/rules.event.inc
@@ -200,7 +200,7 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
   protected $settings = array();
 
   /**
-   * Implements RulesEventHandlerInterface::__construct()
+   * Implements RulesEventHandlerInterface::__construct().
    */
   public function __construct($event_name, $info) {
     $this->eventName = $event_name;
@@ -209,14 +209,14 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getSettings()
+   * Implements RulesEventHandlerInterface::getSettings().
    */
   public function getSettings() {
     return $this->settings;
   }
 
   /**
-   * Implements RulesEventHandlerInterface::setSettings()
+   * Implements RulesEventHandlerInterface::setSettings().
    */
   public function setSettings(array $settings) {
     $this->settings = $settings + $this->getDefaults();
@@ -224,14 +224,14 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::validate()
+   * Implements RulesEventHandlerInterface::validate().
    */
   public function validate() {
     // Nothing to check by default.
   }
 
   /**
-   * Implements RulesEventHandlerInterface::extractFormValues()
+   * Implements RulesEventHandlerInterface::extractFormValues().
    */
   public function extractFormValues(array &$form, array &$form_state) {
     foreach ($this->getDefaults() as $key => $setting) {
@@ -240,21 +240,21 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::availableVariables()
+   * Implements RulesEventHandlerInterface::availableVariables().
    */
   public function availableVariables() {
     return isset($this->eventInfo['variables']) ? $this->eventInfo['variables'] : array();
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getEventName()
+   * Implements RulesEventHandlerInterface::getEventName().
    */
   public function getEventName() {
     return $this->eventName;
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getEventInfo()
+   * Implements RulesEventHandlerInterface::getEventInfo().
    */
   public function getEventInfo() {
     return $this->eventInfo;
@@ -268,35 +268,35 @@ abstract class RulesEventHandlerBase implements RulesEventHandlerInterface {
 class RulesEventDefaultHandler extends RulesEventHandlerBase {
 
   /**
-   * Implements RulesEventHandlerInterface::buildForm()
+   * Implements RulesEventHandlerInterface::buildForm().
    */
   public function buildForm(array &$form_state) {
     return array();
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getConfiguredEventName()
+   * Implements RulesEventHandlerInterface::getConfiguredEventName().
    */
   public function getEventNameSuffix() {
     return '';
   }
 
   /**
-   * Implements RulesEventHandlerInterface::summary()
+   * Implements RulesEventHandlerInterface::summary().
    */
   public function summary() {
     return check_plain($this->eventInfo['label']);
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getDefaults()
+   * Implements RulesEventHandlerInterface::getDefaults().
    */
   public function getDefaults() {
     return array();
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getSettings()
+   * Implements RulesEventHandlerInterface::getSettings().
    */
   public function getSettings() {
     return NULL;
@@ -312,7 +312,7 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
   protected $entityType, $entityInfo, $bundleKey;
 
   /**
-   * Implements RulesEventHandlerInterface::__construct()
+   * Implements RulesEventHandlerInterface::__construct().
    */
   public function __construct($event_name, $info) {
     parent::__construct($event_name, $info);
@@ -325,7 +325,7 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::summary()
+   * Implements RulesEventHandlerInterface::summary().
    */
   public function summary() {
     $bundle = &$this->settings['bundle'];
@@ -335,7 +335,7 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::buildForm()
+   * Implements RulesEventHandlerInterface::buildForm().
    */
   public function buildForm(array &$form_state) {
     $form['bundle'] = array(
@@ -361,14 +361,14 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::extractFormValues()
+   * Implements RulesEventHandlerInterface::extractFormValues().
    */
   public function extractFormValues(array &$form, array &$form_state) {
     $this->settings['bundle'] = !empty($form_state['values']['bundle']) ? $form_state['values']['bundle'] : NULL;
   }
 
   /**
-   * Implements RulesEventHandlerInterface::validate()
+   * Implements RulesEventHandlerInterface::validate().
    */
   public function validate() {
     if ($this->settings['bundle'] && empty($this->entityInfo['bundles'][$this->settings['bundle']])) {
@@ -377,19 +377,19 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
           '%bundle' => $this->settings['bundle'],
           '%entity_type' => $this->entityInfo['label'],
           '@bundle' => $this->getBundlePropertyLabel(),
-      )), array(NULL, 'bundle'));
+        )), array(NULL, 'bundle'));
     }
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getConfiguredEventName()
+   * Implements RulesEventHandlerInterface::getConfiguredEventName().
    */
   public function getEventNameSuffix() {
     return $this->settings['bundle'];
   }
 
   /**
-   * Implements RulesEventHandlerInterface::getDefaults()
+   * Implements RulesEventHandlerInterface::getDefaults().
    */
   public function getDefaults() {
     return array(
@@ -398,7 +398,7 @@ class RulesEventHandlerEntityBundle extends RulesEventHandlerBase {
   }
 
   /**
-   * Implements RulesEventHandlerInterface::availableVariables()
+   * Implements RulesEventHandlerInterface::availableVariables().
    */
   public function availableVariables() {
     $variables = $this->eventInfo['variables'];
diff --git a/includes/rules.upgrade.inc b/includes/rules.upgrade.inc
index 04b8323..0f648b0 100644
--- a/includes/rules.upgrade.inc
+++ b/includes/rules.upgrade.inc
@@ -235,7 +235,7 @@ function rules_upgrade_convert_element(array $element, RulesPlugin $target) {
   foreach ($target->pluginParameterInfo() as $name => $info) {
     rules_upgrade_element_parameter_settings($element, $target, $name);
   }
-  // @todo: Care about php input evaluator for non-text parameters.
+  // @todo Care about php input evaluator for non-text parameters.
 
   // Take care of variable names and labels.
   foreach ($target->pluginProvidesVariables() as $name => $info) {
@@ -512,7 +512,7 @@ function rules_action_custom_php_upgrade_map_name($element) {
 
 // General Rules integration.
 function rules_condition_text_compare_upgrade_map_name($element) {
-  // @todo: Support regex.
+  // @todo Support regex.
   return 'data_is';
 }
 function rules_condition_text_compare_upgrade($element, $target) {
@@ -581,12 +581,12 @@ function rules_action_drupal_goto_upgrade($element, $target) {
 }
 
 function rules_action_watchdog_upgrade_map_name($element) {
-  // @todo: Support action in Rules 2.x!
+  // @todo Support action in Rules 2.x!
   return NULL;
 }
 
 // Taxonomy.module integration.
-// @todo: Finish.
+// @todo Finish.
 function rules_action_taxonomy_load_term_upgrade_map_name($element) {
   return 'entity_fetch';
 }
@@ -597,11 +597,11 @@ function rules_action_taxonomy_delete_term_upgrade_map_name($element) {
   return 'entity_delete';
 }
 function rules_action_taxonomy_term_assign_to_content_upgrade_map_name($element) {
-  // @todo : list.
+  // @todo List.
   return NULL;
 }
 function rules_action_taxonomy_term_remove_from_content_upgrade_map_name($element) {
-  // @todo : list.
+  // @todo List.
   return NULL;
 }
 function rules_action_taxonomy_load_vocab_upgrade_map_name($element) {
diff --git a/modules/comment.rules.inc b/modules/comment.rules.inc
index d034c60..b6d4fb4 100644
--- a/modules/comment.rules.inc
+++ b/modules/comment.rules.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file rules integration for the comment module
+ * @file
+ * Rules integration for the comment module.
  *
  * @addtogroup rules
  *
diff --git a/modules/data.eval.inc b/modules/data.eval.inc
index 4bf6b80..df2b56b 100644
--- a/modules/data.eval.inc
+++ b/modules/data.eval.inc
@@ -392,8 +392,8 @@ function rules_condition_data_list_contains($list, $item, $settings, $state) {
 }
 
 /**
-* Condition: List count comparison.
-*/
+ * Condition: List count comparison.
+ */
 function rules_condition_data_list_count_is($list, $op = '==', $value) {
   switch ($op) {
     case '==':
diff --git a/modules/data.rules.inc b/modules/data.rules.inc
index 93c4b3c..10c39a9 100644
--- a/modules/data.rules.inc
+++ b/modules/data.rules.inc
@@ -316,7 +316,7 @@ function rules_action_data_set_form_alter(&$form, &$form_state, $options, RulesA
   else {
     // Change the data parameter to be not editable.
     $form['parameter']['data']['settings']['#access'] = FALSE;
-    // TODO: improve display
+    // @todo Improve display.
     $form['parameter']['data']['info'] = array(
       '#prefix' => '<p>',
       '#markup' => t('<strong>Selected data:</strong> %selector', array('%selector' => $element->settings['data:select'])),
@@ -414,7 +414,7 @@ function rules_action_type_form_alter(&$form, &$form_state, $options, RulesAbstr
     unset($form['submit']);
     unset($form['provides']);
     // Disable #ajax for the first step as it has troubles with lazy-loaded JS.
-    // @todo: Re-enable once JS lazy-loading is fixed in core.
+    // @todo Re-enable once JS lazy-loading is fixed in core.
     unset($form['parameter']['type']['settings']['type']['#ajax']);
     unset($form['reload']['#ajax']);
   }
@@ -660,7 +660,7 @@ function rules_condition_data_is_form_alter(&$form, &$form_state, $options, Rule
   else {
     // Change the data parameter to be not editable.
     $form['parameter']['data']['settings']['#access'] = FALSE;
-    // TODO: improve display
+    // @todo Improve display.
     $form['parameter']['data']['info'] = array(
       '#prefix' => '<p>',
       '#markup' => t('<strong>Selected data:</strong> %selector', array('%selector' => $element->settings['data:select'])),
diff --git a/modules/entity.rules.inc b/modules/entity.rules.inc
index 1e596aa..ccdecb6 100644
--- a/modules/entity.rules.inc
+++ b/modules/entity.rules.inc
@@ -568,7 +568,7 @@ function rules_condition_entity_is_of_bundle_form_alter(&$form, &$form_state, $o
       $form['reload']['#limit_validation_errors'] = array(array('parameter', 'entity'));
       unset($form['parameter']['type']);
       unset($form['reload']['#attributes']['class']);
-      // NO break;
+      // NO break.
     case 2:
       $form['negate']['#access'] = FALSE;
       unset($form['parameter']['bundle']);
diff --git a/modules/events.inc b/modules/events.inc
index 31ca8d5..32315c8 100644
--- a/modules/events.inc
+++ b/modules/events.inc
@@ -198,7 +198,7 @@ function rules_watchdog($log_entry) {
  * Getter callback for the log entry message property.
  */
 function rules_system_log_get_message($log_entry) {
-  return t($log_entry['message'], (array)$log_entry['variables']);
+  return t($log_entry['message'], (array) $log_entry['variables']);
 }
 
 /**
diff --git a/modules/node.eval.inc b/modules/node.eval.inc
index b1bf524..49450dc 100644
--- a/modules/node.eval.inc
+++ b/modules/node.eval.inc
@@ -27,7 +27,7 @@ abstract class RulesNodeConditionBase extends RulesConditionHandlerBase {
 }
 
 /**
- * Condition: Check for selected content types
+ * Condition: Check for selected content types.
  */
 class RulesNodeConditionType extends RulesNodeConditionBase {
 
@@ -115,7 +115,7 @@ class RulesNodeConditionSticky extends RulesNodeConditionBase {
 }
 
 /**
- * Condition: Check if the node is promoted to the frontpage
+ * Condition: Check if the node is promoted to the frontpage.
  */
 class RulesNodeConditionPromoted extends RulesNodeConditionBase {
 
diff --git a/modules/node.rules.inc b/modules/node.rules.inc
index f6a4a7d..97aa00b 100644
--- a/modules/node.rules.inc
+++ b/modules/node.rules.inc
@@ -84,7 +84,7 @@ function rules_node_event_info() {
 }
 
 /**
- * Returns some parameter suitable for using it with a node
+ * Returns some parameter suitable for using it with a node.
  */
 function rules_events_node_variables($node_label, $update = FALSE) {
   $args = array(
diff --git a/modules/path.eval.inc b/modules/path.eval.inc
index 270d19c..2881d1e 100644
--- a/modules/path.eval.inc
+++ b/modules/path.eval.inc
@@ -77,7 +77,7 @@ function rules_condition_path_alias_exists($alias, $langcode = LANGUAGE_NONE) {
 /**
  * Cleans the given path by replacing non ASCII characters with the replacment character.
  *
- * Path cleaning may be adapted by overriding the configuration variables
+ * Path cleaning may be adapted by overriding the configuration variables.
  * @code rules_clean_path @endcode,
  * @code rules_path_replacement_char @endcode and
  * @code rules_path_transliteration @endcode
diff --git a/modules/path.rules.inc b/modules/path.rules.inc
index 9b0a733..8f0eef6 100644
--- a/modules/path.rules.inc
+++ b/modules/path.rules.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file rules integration for the path module
+ * @file
+ * Rules integration for the path module.
  *
  * @addtogroup rules
  *
diff --git a/modules/php.rules.inc b/modules/php.rules.inc
index bc244da..d00c00e 100644
--- a/modules/php.rules.inc
+++ b/modules/php.rules.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file rules integration for the php module
+ * @file
+ * Rules integration for the php module.
  *
  * @addtogroup rules
  *
diff --git a/modules/rules_core.rules.inc b/modules/rules_core.rules.inc
index 586db03..f85fb34 100644
--- a/modules/rules_core.rules.inc
+++ b/modules/rules_core.rules.inc
@@ -140,7 +140,7 @@ function rules_rules_core_data_info() {
       // If this entity type serves as bundle for another one, provide an
       // options list for selecting a bundle entity.
       if (!empty($info['bundle of'])) {
-        $return[$type]['ui class'] =  'RulesDataUIBundleEntity';
+        $return[$type]['ui class'] = 'RulesDataUIBundleEntity';
       }
     }
   }
diff --git a/modules/taxonomy.rules.inc b/modules/taxonomy.rules.inc
index 12f2cfb..f4cf321 100644
--- a/modules/taxonomy.rules.inc
+++ b/modules/taxonomy.rules.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file rules integration for the taxonomy_term module
+ * @file
+ * Rules integration for the taxonomy_term module.
  *
  * @addtogroup rules
  *
diff --git a/modules/user.eval.inc b/modules/user.eval.inc
index 7f3fcda..395c454 100644
--- a/modules/user.eval.inc
+++ b/modules/user.eval.inc
@@ -10,7 +10,7 @@
  */
 
 /**
- * Condition user: condition to check whether user has particular roles
+ * Condition user: condition to check whether user has particular roles.
  */
 function rules_condition_user_has_role($account, $roles, $operation = 'AND') {
   switch ($operation) {
@@ -44,7 +44,7 @@ function rules_condition_user_is_blocked($account) {
  */
 function rules_action_user_add_role($account, $roles) {
   if ($account->uid || !empty($account->is_new)) {
-    // Get role list (minus the anonymous)
+    // Get role list (minus the anonymous).
     $role_list = user_roles(TRUE);
 
     foreach ($roles as $rid) {
diff --git a/modules/user.rules.inc b/modules/user.rules.inc
index a2cddba..5e0684b 100644
--- a/modules/user.rules.inc
+++ b/modules/user.rules.inc
@@ -91,7 +91,7 @@ function rules_user_event_info() {
 /**
  * Options list for user cancel methods.
  *
- * @todo: Use for providing a user_cancel action.
+ * @todo Use for providing a user_cancel action.
  */
 function rules_user_cancel_methods() {
   module_load_include('inc', 'user', 'user.pages');
diff --git a/rules.api.php b/rules.api.php
index f5eb896..e5c1937 100644
--- a/rules.api.php
+++ b/rules.api.php
@@ -660,7 +660,7 @@ function hook_rules_data_processor_info() {
  * @see hook_rules_action_info().
  */
 function hook_rules_action_info_alter(&$actions) {
-  // The rules action is more powerful, so hide the core action
+  // The rules action is more powerful, so hide the core action.
   unset($actions['rules_core_node_assign_owner_action']);
   // We prefer handling saving by rules - not by the user.
   unset($actions['rules_core_node_save_action']);
diff --git a/rules.module b/rules.module
index ad8c14b..c81950e 100644
--- a/rules.module
+++ b/rules.module
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Rules engine module
+ * @file
+ * Rules engine module.
  */
 
 // The class autoloader may fail for classes added in 7.x-2.4 (Issue 2090511).
@@ -427,7 +428,7 @@ function &rules_get_cache($cid = 'data') {
  * @see entity_defaults_rebuild()
  */
 function _rules_rebuild_cache(&$cache) {
-  foreach(array('data_info', 'plugin_info') as $hook) {
+  foreach (array('data_info', 'plugin_info') as $hook) {
     $cache[$hook] = rules_fetch_data($hook);
   }
   foreach ($cache['plugin_info'] as $name => &$info) {
@@ -489,7 +490,7 @@ function rules_flush_caches() {
 }
 
 /**
- * Clears the rule set cache
+ * Clears the rule set cache.
  */
 function rules_clear_cache() {
   cache_clear_all('*', 'cache_rules', TRUE);
@@ -840,7 +841,7 @@ function rules_entity_info() {
  * Implementation of hook_hook_info().
  */
 function rules_hook_info() {
-  foreach(array('plugin_info', 'rules_directory', 'data_info', 'condition_info', 'action_info', 'event_info', 'file_info', 'evaluator_info', 'data_processor_info') as $hook) {
+  foreach (array('plugin_info', 'rules_directory', 'data_info', 'condition_info', 'action_info', 'event_info', 'file_info', 'evaluator_info', 'data_processor_info') as $hook) {
     $hooks['rules_' . $hook] = array(
       'group' => 'rules',
     );
diff --git a/rules_admin/rules_admin.inc b/rules_admin/rules_admin.inc
index aa6b1f1..3c60e07 100644
--- a/rules_admin/rules_admin.inc
+++ b/rules_admin/rules_admin.inc
@@ -279,7 +279,7 @@ function rules_admin_settings_integrity_check_submit($form, &$form_state) {
     rules_config_update_dirty_flag($rules_config, TRUE, TRUE);
     if ($rules_config->dirty) {
       $count++;
-      $variables = array('%label' => $rules_config->label(), '%name' => $rules_config->name, '@plugin' => $rules_config->plugin(), '!uri'=> url(RulesPluginUI::path($rules_config->name)));
+      $variables = array('%label' => $rules_config->label(), '%name' => $rules_config->name, '@plugin' => $rules_config->plugin(), '!uri' => url(RulesPluginUI::path($rules_config->name)));
       drupal_set_message(t('The @plugin <a href="!uri">%label (%name)</a> fails the integrity check and cannot be executed.', $variables), 'error');
     }
 
diff --git a/rules_admin/rules_admin.module b/rules_admin/rules_admin.module
index 8966ded..f5a38e7 100644
--- a/rules_admin/rules_admin.module
+++ b/rules_admin/rules_admin.module
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Rules Admin UI
+ * @file
+ * Rules Admin User Interface.
  */
 
 /**
diff --git a/rules_i18n/rules_i18n.i18n.inc b/rules_i18n/rules_i18n.i18n.inc
index 8699db0..da49f39 100644
--- a/rules_i18n/rules_i18n.i18n.inc
+++ b/rules_i18n/rules_i18n.i18n.inc
@@ -43,7 +43,7 @@ class RulesI18nStringController extends EntityDefaultI18nStringController {
 class RulesI18nStringObjectWrapper extends i18n_string_object_wrapper {
 
   /**
-   * Get translatable properties
+   * Get translatable properties.
    */
   protected function build_properties() {
     $strings = parent::build_properties();
diff --git a/rules_scheduler/rules_scheduler.admin.inc b/rules_scheduler/rules_scheduler.admin.inc
index ad2f241..1638276 100644
--- a/rules_scheduler/rules_scheduler.admin.inc
+++ b/rules_scheduler/rules_scheduler.admin.inc
@@ -9,7 +9,7 @@
  * Schedule page with a view for the scheduled tasks.
  */
 function rules_scheduler_schedule_page() {
-  // Display view for all scheduled tasks
+  // Display view for all scheduled tasks.
   if (module_exists('views')) {
     // We cannot use views_embed_view() here as we need to set the path for the
     // component filter form.
diff --git a/rules_scheduler/rules_scheduler.drush.inc b/rules_scheduler/rules_scheduler.drush.inc
index 24405b2..2a70acc 100644
--- a/rules_scheduler/rules_scheduler.drush.inc
+++ b/rules_scheduler/rules_scheduler.drush.inc
@@ -41,8 +41,8 @@ function rules_scheduler_drush_help($section) {
 /**
  * Command callback for processing the rules_scheduler_tasks queue.
  *
- * @see rules_scheduler_cron_queue_info().
- * @see rules_scheduler_cron().
+ * @see rules_scheduler_cron_queue_info()
+ * @see rules_scheduler_cron()
  */
 function drush_rules_scheduler_tasks() {
   if (rules_scheduler_queue_tasks()) {
diff --git a/tests/rules.test b/tests/rules.test
index 4abe619..c151fe1 100644
--- a/tests/rules.test
+++ b/tests/rules.test
@@ -305,7 +305,7 @@ class RulesTestCase extends DrupalWebTestCase {
     $action->executeByArgs(array('node' => $node));
 
     $this->assertEqual($node->status, 1, 'Action executed correctly on node.');
-    // Sync node_load cache with node_save
+    // Sync node_load cache with node_save.
     entity_get_controller('node')->resetCache();
 
     $node = node_load($node->nid);
@@ -613,7 +613,7 @@ class RulesTestCase extends DrupalWebTestCase {
     // Test asserting additional metadata.
     $rule = rule(array('node' => array('type' => 'node')));
     // Customize action info using the settings.
-    $rule->condition('data_is', array('data:select'   => 'node:type', 'value' => 'page'))
+    $rule->condition('data_is', array('data:select' => 'node:type', 'value' => 'page'))
          // Configure an condition using the body. As the body is a field,
          // tis requires the bundle to be correctly asserted.
          ->condition(rules_condition('data_is', array('data:select' => 'node:body:value', 'value' => 'foo'))->negate())
@@ -699,7 +699,7 @@ class RulesTestCase extends DrupalWebTestCase {
       'list' => array(
         'type' => 'list<node>',
         'label' => 'A list of nodes',
-      )
+      ),
     ));
     $loop = rules_loop(array('list:select' => 'list', 'item:var' => 'node'));
     $loop->action('data_set', array('data:select' => 'node:sticky', 'value' => TRUE));
@@ -987,7 +987,7 @@ class RulesTestDataCase extends DrupalWebTestCase {
   }
 
   /**
-   * Test type matching
+   * Test type matching.
    */
   public function testTypeMatching() {
     $entity = array('type' => 'entity');
@@ -1174,7 +1174,7 @@ class RulesTriggerTestCase extends DrupalWebTestCase {
     $this->assertFalse($node->sticky, 'Parameter has been loaded and saved.');
     $this->assertTrue($node->status, 'Action has been executed.');
 
-    // Ensure the rule was evaluated a second time
+    // Ensure the rule was evaluated a second time.
     $text = RulesLog::logger()->render();
     $msg = RulesTestCase::t('Evaluating conditions of rule %rule 1', array('rule 1'));
     $pos = strpos($text, $msg);
@@ -1838,7 +1838,7 @@ class RulesIntegrationTestCase extends DrupalWebTestCase {
     $this->assertEqual(array_pop($msg['status']), "Title: foo Token: foo", 'PHP input evaluation has been applied.');
     $this->assertEqual(array_pop($msg['status']), "Executed-foo", 'PHP code condition and action have been evaluated.');
 
-    // Test PHP data processor
+    // Test PHP data processor.
     $rule = rule(array('var_name' => array('type' => 'node')));
     $rule->action('drupal_message', array(
       'message:select' => 'var_name:title',
diff --git a/tests/rules_test.test.inc b/tests/rules_test.test.inc
index 2067c80..fe6c432 100644
--- a/tests/rules_test.test.inc
+++ b/tests/rules_test.test.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Include file for testing file inclusion.
+ * @file
+ * Include file for testing file inclusion.
  */
 
 /**
@@ -13,14 +14,14 @@ function rules_test_custom_node_save($object) {
 
 
 /**
- * Custom help callback for the rules_node_publish_action
+ * Custom help callback for the rules_node_publish_action().
  */
 function rules_test_custom_help() {
   return 'custom';
 }
 
 /**
- * Action callback
+ * Action callback.
  */
 function rules_action_test_reference($data) {
   $data['changed'] = TRUE;
@@ -28,21 +29,21 @@ function rules_action_test_reference($data) {
 }
 
 /**
- * Condition: Check for selected content types
+ * Condition: Check for selected content types.
  */
 function rules_condition_content_is_type($node, $type) {
   return in_array($node->type, $type);
 }
 
 /**
- * Condition: Check if the node is published
+ * Condition: Check if the node is published.
  */
 function rules_condition_content_is_published($node, $settings) {
   return $node->status == 1;
 }
 
 /**
- * Loads a node
+ * Loads a node.
  */
 function rules_action_load_node($nid, $vid = NULL) {
   return array('node_loaded' => node_load($nid, $vid ? $vid : NULL));
diff --git a/ui/ui.controller.inc b/ui/ui.controller.inc
index 63c6403..c7b5149 100644
--- a/ui/ui.controller.inc
+++ b/ui/ui.controller.inc
@@ -60,7 +60,7 @@ class RulesUIController {
       'file path' => drupal_get_path('module', 'rules'),
     );
     $items[$base_path . '/manage/%rules_config/delete/event'] = array(
-      //@todo: improve title.
+      // @todo Improve title.
       'title' => 'Remove event',
       'page callback' => 'drupal_get_form',
       'page arguments' => array('rules_ui_remove_event', $base_count + 1, $base_count + 4, $base_path),
@@ -241,7 +241,7 @@ class RulesUIController {
     $table['#attributes']['class'][] = 'rules-overview-table';
     $table['#attached']['css'][] = drupal_get_path('module', 'rules') . '/ui/rules.ui.css';
 
-    // TODO: hide configs where access() is FALSE.
+    // @todo Hide configs where access() is FALSE.
     return $table;
   }
 
diff --git a/ui/ui.core.inc b/ui/ui.core.inc
index be8734e..1497c4e 100644
--- a/ui/ui.core.inc
+++ b/ui/ui.core.inc
@@ -420,7 +420,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
       '#required' => TRUE,
       '#weight' => -5,
     );
-    // @todo: For Drupal 8 use "owner" for generating machine names and
+    // @todo For Drupal 8 use "owner" for generating machine names and
     // module only for the modules providing default configurations.
     if (!empty($this->element->module) && !empty($this->element->name) && $this->element->module == 'rules' && strpos($this->element->name, 'rules_') === 0) {
       // Remove the Rules module prefix from the machine name.
@@ -516,7 +516,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
       }
     }
 
-    // TODO: Attach field form thus description.
+    // @todo Attach field form thus description.
   }
 
   /**
@@ -567,7 +567,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
     $form_values = RulesPluginUI::getFormStateValues($form['settings'], $form_state);
     $this->element->label = $form_values['label'];
     // If the name was changed we have to redirect to the URL that contains
-    // the new name, instead of rebuilding on the old URL with the old name
+    // the new name, instead of rebuilding on the old URL with the old name.
     if ($form['settings']['name']['#default_value'] != $form_values['name']) {
       $module = isset($this->element->module) ? $this->element->module : 'rules';
       $this->element->name = $module . '_' . $form_values['name'];
@@ -718,7 +718,7 @@ class RulesPluginUI extends FacesExtender implements RulesPluginUIInterface {
       elseif (isset($this->element->settings[$name]) && (!isset($parameter['default value']) || $parameter['default value'] != $this->element->settings[$name])) {
         $class = $this->getDataTypeClass($parameter['type'], $parameter);
         $method = empty($parameter['options list']) ? 'render' : 'renderOptionsLabel';
-        // We cannot use method_exists() here as it would trigger a PHP bug,
+        // We cannot use method_exists() here as it would trigger a PHP bug.
         // @see http://drupal.org/node/1258284
         $element = call_user_func(array($class, $method), $this->element->settings[$name], $name, $parameter, $this->element);
       }
@@ -1095,7 +1095,7 @@ class RulesConditionContainerUI extends RulesContainerPluginUI {
     $form['elements']['#attributes']['class'][] = 'rules-condition-container';
     $form['elements']['#caption'] = t('Conditions');
 
-    // By default skip
+    // By default skip.
     if (!empty($options['init']) && !$this->element->isRoot()) {
       $config = $this->element->root();
       $form['init_help'] = array(
diff --git a/ui/ui.data.inc b/ui/ui.data.inc
index 8d02af6..36e2f61 100644
--- a/ui/ui.data.inc
+++ b/ui/ui.data.inc
@@ -376,7 +376,7 @@ class RulesDataUIDate extends RulesDataUIText {
       array('%format' => gmdate('Y-m-d H:i:s', time() + 86400),
             '!strtotime' => l('strtotime()', 'http://php.net/strtotime')));
 
-    // TODO: Leverage the jquery datepicker+timepicker once a module providing
+    // @todo Leverage the jquery datepicker+timepicker once a module providing
     // The timepicker is available.
     return $form;
   }
diff --git a/ui/ui.forms.inc b/ui/ui.forms.inc
index 76c654c..18413a0 100644
--- a/ui/ui.forms.inc
+++ b/ui/ui.forms.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Rules UI forms
+ * @file
+ * Rules User Interface forms.
  */
 
 /**
diff --git a/ui/ui.theme.inc b/ui/ui.theme.inc
index 217d398..96ca867 100644
--- a/ui/ui.theme.inc
+++ b/ui/ui.theme.inc
@@ -1,7 +1,8 @@
 <?php
 
 /**
- * @file Rules theme functions
+ * @file
+ * Rules theme functions.
  */
 
 /**
