Merge pull request #15784 from civicrm/5.20
[civicrm-core.git] / CRM / Event / StateMachine / Search.php
index c4ca4e7d5be98b6ca7a19314d3aaa88edb6b6e80..10ea007b3578425044cda55c3128693403e5e3da 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017                                |
+ | Copyright CiviCRM LLC (c) 2004-2020                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2020
  * $Id$
  *
  */
@@ -45,12 +45,12 @@ class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
    * Class constructor.
    *
    * @param object $controller
-   * @param \const|int $action
+   * @param int $action
    */
   public function __construct($controller, $action = CRM_Core_Action::NONE) {
     parent::__construct($controller, $action);
 
-    $this->_pages = array();
+    $this->_pages = [];
 
     $this->_pages['CRM_Event_Form_Search'] = NULL;
     list($task, $result) = $this->taskName($controller, 'Search');
@@ -82,7 +82,7 @@ class CRM_Event_StateMachine_Search extends CRM_Core_StateMachine {
    *
    * @param string $formName
    *
-   * @return string
+   * @return array
    *   the name of the form that will handle the task
    */
   public function taskName($controller, $formName = 'Search') {