diff --git a/README.txt b/README.txt
index c5a54f3..3fe7be3 100644
--- a/README.txt
+++ b/README.txt
@@ -1,4 +1,5 @@
-This module provides an advanced Entity Reference widget that uses a view for selecting items.
+This module provides an advanced Entity Reference
+widget that uses a view for selecting items.
 The view can be paginated and have exposed filters.
 It requires javascript to be enabled.
 
diff --git a/entityreference_view_widget.api.php b/entityreference_view_widget.api.php
index 0d317d9..3644b7b 100644
--- a/entityreference_view_widget.api.php
+++ b/entityreference_view_widget.api.php
@@ -13,14 +13,17 @@
  * alter arguments passed (besides the "already referenced entities"
  * argument) to entity reference view. This hook allows you to do that.
  *
- * @param $arguments
+ * @param array $arguments
  *   The Arguments array to be altered.
- * @param $form_state
+ * @param array $form_state
  *   A keyed array containing the current state of the form.
- * @param $view
+ * @param object $view
  *   The view object that is being used.
+ *
+ * @codingStandardsIgnoreStart
  */
 function hook_entityreference_view_widget_views_arguments_alter(&$arguments, $form_state, $view) {
+  // @codingStandardsIgnoreEnd
   if (!empty($form_state['values']['your_field'])) {
     $arguments[] = $form_state['values']['your_field'][LANGUAGE_NONE][0]['value'];
   }
diff --git a/entityreference_view_widget.js b/entityreference_view_widget.js
index 5de76a7..72cabb8 100755
--- a/entityreference_view_widget.js
+++ b/entityreference_view_widget.js
@@ -1,3 +1,8 @@
+/**
+ * @file
+ * File: entityreference_view_widget.js.
+ */
+
 (function($) {
   Drupal.behaviors.entityreferenceViewWidget = {
     attach: function(context, settings) {
diff --git a/entityreference_view_widget.module b/entityreference_view_widget.module
index da1f0bd..74ad81c 100755
--- a/entityreference_view_widget.module
+++ b/entityreference_view_widget.module
@@ -337,7 +337,8 @@ function entityreference_view_widget_validate($element, &$form_state, $form) {
       form_set_error($settings['element'], t('@f field is required.', array('@f' => $settings['instance']['label'])));
     }
     else {
-      // Modules utilizing #field_parents like Inline Entity Form requires different sort of form error.
+      // Modules utilizing #field_parents like Inline Entity Form
+      // requires different sort of form error.
       form_error($element, t('@f field is required.', array('@f' => $settings['instance']['label'])));
     }
   }
@@ -396,7 +397,7 @@ function entityreference_view_widget_ajax($form, $form_state) {
     // If the user selected too many items...
     if ($cardinality > 0 && $cardinality < $selected_amount && $cardinality !== 1) {
       $error_message = t('Please select no more than @cardinality values', array('@cardinality' => $cardinality));
-      $commands[] = ajax_command_prepend('#modal-content', '<div class="messages error">' . $error_message  . '</div>');
+      $commands[] = ajax_command_prepend('#modal-content', '<div class="messages error">' . $error_message . '</div>');
     }
     else {
       $rows['#theme'] = 'entityreference_view_widget_rows';
@@ -434,7 +435,7 @@ function entityreference_view_widget_rows($entity_ids, $settings) {
   $entities = entity_load($settings['target_type'], $entity_ids);
   if (!empty($entity_ids)) {
     $max_delta = count($entity_ids);
-    $weight_options = drupal_map_assoc(range(- $max_delta, $max_delta));
+    $weight_options = drupal_map_assoc(range(-$max_delta, $max_delta));
     $delta = 0;
     foreach ($entity_ids as $entity_id) {
       if (!isset($entities[$entity_id])) {
@@ -513,7 +514,7 @@ function theme_entityreference_view_widget_widget($variables) {
   $rows = array();
 
   // Sort items according to '_weight' (needed when the form comes back after
-  // preview or failed validation)
+  // preview or failed validation).
   $items = array();
   foreach (element_children($widget) as $key) {
     if ($key === 'add_more') {
diff --git a/views/entityreference_view_widget.views.inc b/views/entityreference_view_widget.views.inc
index 15ce422..c4369ad 100755
--- a/views/entityreference_view_widget.views.inc
+++ b/views/entityreference_view_widget.views.inc
@@ -1,6 +1,11 @@
 <?php
 
 /**
+ * @file
+ * File: entityreference_view_widget.views.inc.
+ */
+
+/**
  * Implements hook_views_data_alter().
  */
 function entityreference_view_widget_views_data_alter(&$data) {
diff --git a/views/entityreference_view_widget_handler_field_checkbox.inc b/views/entityreference_view_widget_handler_field_checkbox.inc
index e2a9ccd..97df791 100755
--- a/views/entityreference_view_widget_handler_field_checkbox.inc
+++ b/views/entityreference_view_widget_handler_field_checkbox.inc
@@ -1,7 +1,17 @@
 <?php
 
 /**
- * Provides the checkbox field to tick the view rows and set them as field values.
+ * @file
+ * File: entityreference_view_widget_handler_field_checkbox.inc.
+ */
+
+/**
+ * Handler field checkbox.
+ *
+ * Provides the checkbox field to tick the view rows
+ * and set them as field values.
+ *
+ * @codingStandardsIgnoreStart
  */
 class entityreference_view_widget_handler_field_checkbox extends views_handler_field_entity {
   var $revision = FALSE;
@@ -9,7 +19,8 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
   /**
    * The form which replaces the placeholder from render().
    */
-  function views_form(&$form, &$form_state) {
+  public function views_form(&$form, &$form_state) {
+    // @codingStandardsIgnoreEnd
     // The view is empty, abort.
     if (empty($this->view->result)) {
       return;
@@ -18,8 +29,8 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
     $form[$this->options['id']] = array(
       '#tree' => TRUE,
     );
-    // At this point, the query has already been run, so we can access the results
-    // in order to get the base key value (for example, nid for nodes).
+    // At this point, the query has already been run, so we can access the
+    // results in order to get the base key value (for example, nid for nodes).
     foreach ($this->view->result as $row_index => $row) {
       $entity = $this->entities[$row_index];
       if ($this->view->base_field == 'search_api_id' && isset($row->_entity_properties)) {
@@ -51,7 +62,13 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
     }
   }
 
-  function render($values) {
+  /**
+   * Render.
+   *
+   * @codingStandardsIgnoreStart
+   */
+  public function render($values) {
+    // @codingStandardsIgnoreEnd
     if ($this->view->base_field == 'search_api_id' && isset($values->_entity_properties)) {
       $entity_id = $values->_entity_properties[$this->view->base_field];
     }
@@ -64,7 +81,13 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
     return '<!--form-item-' . $this->options['id'] . '--' . $this->view->row_index . '-->';
   }
 
-  function option_definition() {
+  /**
+   * Option definition.
+   *
+   * @codingStandardsIgnoreStart
+   */
+  public function option_definition() {
+    // @codingStandardsIgnoreEnd
     $options = parent::option_definition();
     $options['ervw'] = array(
       'contains' => array(
@@ -75,7 +98,13 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
     return $options;
   }
 
-  function options_form(&$form, &$form_state) {
+  /**
+   * Options form.
+   *
+   * @codingStandardsIgnoreStart
+   */
+  public function options_form(&$form, &$form_state) {
+    // @codingStandardsIgnoreEnd
     parent::options_form($form, $form_state);
 
     $form['ervw'] = array(
@@ -105,4 +134,5 @@ class entityreference_view_widget_handler_field_checkbox extends views_handler_f
       '#default_value' => $this->options['ervw']['label_display'],
     );
   }
+
 }
diff --git a/views/entityreference_view_widget_plugin_display.inc b/views/entityreference_view_widget_plugin_display.inc
index 110ec51..5c5def1 100755
--- a/views/entityreference_view_widget_plugin_display.inc
+++ b/views/entityreference_view_widget_plugin_display.inc
@@ -1,11 +1,24 @@
 <?php
 
 /**
+ * @file
+ * File: entityreference_view_widget_plugin_display.inc.
+ */
+
+/**
+ * Plugin display.
+ *
  * Provides the "Entityreference View Widget" display which configures
  * the view for inclusion in the widget.
+ *
+ * @codingStandardsIgnoreStart
  */
 class entityreference_view_widget_plugin_display extends views_plugin_display {
-  function option_definition() {
+  /**
+   * Option definition.
+   */
+  public function option_definition() {
+    // @codingStandardsIgnoreEnd
     $options = parent::option_definition();
 
     $options['style_plugin']['default'] = 'table';
@@ -24,4 +37,5 @@ class entityreference_view_widget_plugin_display extends views_plugin_display {
     $options['hide_left'] = array('default' => FALSE);
     return $options;
   }
+
 }
