title: PHP Code Sniffer not Picking up File, Class and Function Doc Comments
body: <p>I'm working on implementing PHPCS into my build scripts and have resolved all ERROR and WARNINGS with relative ease (and a little help from SO :)).</p>
  
  <p>However, I cannot figure out why I'm still getting an ERROR saying the class is missing file, class and function doc comments.</p>
  
  <pre><code>----------------------------------------------------------------------
   FOUND 7 ERRORS AFFECTING 7 LINES
  ----------------------------------------------------------------------
     2 | ERROR | Missing file doc comment
    28 | ERROR | Missing class doc comment
    45 | ERROR | Missing function doc comment
    59 | ERROR | Missing function doc comment
    73 | ERROR | Missing function doc comment
    88 | ERROR | Missing function doc comment
   102 | ERROR | Missing function doc comment
  ----------------------------------------------------------------------
  </code></pre>
  
  <p>Here is the PHP class:</p>
  
  <pre><code>﻿&lt;?php
  /**
   * EndpointHelper File Doc Comment
   * 
   * @category    EndpointHelper
   * @package     Helper
   * @author      Brian Smith &lt;brian.smith@company.com&gt;
   * @copyright   Copyright 2015 Company, Inc. All rights reserved.
   * @license     GNU General Public License version 2 or later; see LICENSE
   * @link        http://arctg.com
   */
  
  /**
   * EndpointHelper Class Doc Comment
   * 
   * Endpoint Helper to retrieve application wide
   * URLs based on active webinstance.
   * 
   * @category    Class
   * @package     EndpointHelper
   * @author      Brian Smith &lt;brian.smith@company.com&gt;
   * @copyright   Copyright 2015 Company, Inc. All rights reserved.
   * @license     GNU General Public License version 2 or later; see LICENSE
   * @link        http://company.com
   * 
   * @since   1.0.1
   */
  class EndpointHelper
  {
      /**
       * Component params object
       * 
       * @var type 
       * @since   1.0.1
       */
      private static $params = false;
  
      /**
       * Retrieve Reservation URL based on web instance
       * 
       * @return String
       * 
       * @since   1.0.1
       */
      public static function getReservationUrl()
      {
          $instance = self::getInstanceType();
  
          return self::$params-&gt;get($instance . '_reservation_api_url');
      }
  
      /**
       * Retrieve Rental URL based on web instance
       * 
       * @return String
       * 
       * @since   1.0.1
       */
      public static function getRentalUrl()
      {
          $instance = self::getInstanceType();
  
          return self::$params-&gt;get($instance . '_rental_api_url');
      }
  
      /**
       * Retrieve cache URL based on web instance
       * 
       * @return String
       * 
       * @since   1.0.1
       */
      public static function getCacheUrl()
      {
          $instance = self::getInstanceType();
  
          return self::$params-&gt;get($instance . '_data_cache_api_url');
      }
  
      /**
       * Retrieve Systems Staging File Sync URL based on web
       * instance.
       * 
       * @return String
       * 
       * @since   1.0.1
       */
      public static function getFileSyncUrl()
      {
          $instance = self::getInstanceType();
  
          return self::$params-&gt;get($instance . '_file_sync');
      }
  
      /**
       * Private utilty class to retrieve current web instance
       * 
       * @return String
       * 
       * @since   1.0.1
       */
      private static function getInstanceType()
      {
          if (!self::$params)
          {
              self::$params = JComponentHelper::getParams('com_custom');
          }
  
          return self::$params-&gt;get('web_instance');
      }
  }
  </code></pre>
  
  <p>Thanks for any help!!</p>