original_string: private function getAvailableCommands()
      {
          $commands = $this->getDefaultPiwikCommands();
          $detected = PluginManager::getInstance()->findMultipleComponents('Commands', 'Piwik\\Plugin\\ConsoleCommand');
  
          $commands = array_merge($commands, $detected);
  
          /**
           * Triggered to filter / restrict console commands. Plugins that want to restrict commands
           * should subscribe to this event and remove commands from the existing list.
           *
           * **Example**
           *
           *     public function filterConsoleCommands(&$commands)
           *     {
           *         $key = array_search('Piwik\Plugins\MyPlugin\Commands\MyCommand', $commands);
           *         if (false !== $key) {
           *             unset($commands[$key]);
           *         }
           *     }
           *
           * @param array &$commands An array containing a list of command class names.
           */
          Piwik::postEvent('Console.filterCommands', array(&$commands));
  
          $commands = array_values(array_unique($commands));
  
          return $commands;
      }
code: private function getAvailableCommands()
      {
          $commands = $this->getDefaultPiwikCommands();
          $detected = PluginManager::getInstance()->findMultipleComponents('Commands', 'Piwik\\Plugin\\ConsoleCommand');
  
          $commands = array_merge($commands, $detected);
  
          /**
           * Triggered to filter / restrict console commands. Plugins that want to restrict commands
           * should subscribe to this event and remove commands from the existing list.
           *
           * **Example**
           *
           *     public function filterConsoleCommands(&$commands)
           *     {
           *         $key = array_search('Piwik\Plugins\MyPlugin\Commands\MyCommand', $commands);
           *         if (false !== $key) {
           *             unset($commands[$key]);
           *         }
           *     }
           *
           * @param array &$commands An array containing a list of command class names.
           */
          Piwik::postEvent('Console.filterCommands', array(&$commands));
  
          $commands = array_values(array_unique($commands));
  
          return $commands;
      }
code_tokens: private function getAvailableCommands ( ) { $ commands = $ this -> getDefaultPiwikCommands ( ) ; $ detected = PluginManager :: getInstance ( ) -> findMultipleComponents ( 'Commands' , 'Piwik\\Plugin\\ConsoleCommand' ) ; $ commands = array_merge ( $ commands , $ detected ) ; /**
           * Triggered to filter / restrict console commands. Plugins that want to restrict commands
           * should subscribe to this event and remove commands from the existing list.
           *
           * **Example**
           *
           *     public function filterConsoleCommands(&$commands)
           *     {
           *         $key = array_search('Piwik\Plugins\MyPlugin\Commands\MyCommand', $commands);
           *         if (false !== $key) {
           *             unset($commands[$key]);
           *         }
           *     }
           *
           * @param array &$commands An array containing a list of command class names.
           */ Piwik :: postEvent ( 'Console.filterCommands' , array ( & $ commands ) ) ; $ commands = array_values ( array_unique ( $ commands ) ) ; return $ commands ; }
docstring: Returns a list of available command classnames.
  
  @return string[]
docstring_tokens: Returns a list of available command classnames .