phpcs - Fix error, "Visibility must be declared on method"
[civicrm-core.git] / CRM / Core / Controller / Simple.php
index 7dafbf7f64054da8f20f856ae25ea03e2a194861..0107416f46cb3f6a619a7463de14137fd901b5e3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
 class CRM_Core_Controller_Simple extends CRM_Core_Controller {
 
   /**
-   * constructor
+   * Constructor
    *
    * @param null $path
    * @param bool $title
    * @param string  path        the class Path of the form being implemented
    * @param bool $imageUpload
-   * @param bool $addSequence
-   * @param bool $ignoreKey
+   * @param bool $addSequence should we add a unique sequence number to the end of the key
+   * @param bool $ignoreKey should we not set a qfKey for this controller (for standalone forms)
    * @param bool $attachUpload
    *
-   * @internal param \addSequence $boolean should we add a unique sequence number to the end of the key
-   * @internal param \ignoreKey $boolean should we not set a qfKey for this controller (for standalone forms)
    *
    * @return \CRM_Core_Controller_Simple
-  @access public
+   * @access public
    */
   function __construct(
     $path,
@@ -131,7 +129,7 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
    * A wrapper for getTemplateFileName that includes calling the hook to
    * prevent us from having to copy & paste the logic of calling the hook
    */
-  function getHookedTemplateFileName() {
+  public function getHookedTemplateFileName() {
     $pageTemplateFile = $this->getTemplateFileName();
     CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
     return $pageTemplateFile;