original_string: public function actionRun()
      {
          $this->importScheduleFile();
  
          $events = $this->schedule->dueEvents(Yii::$app);
  
          foreach ($events as $event) {
              $this->stdout('Running scheduled command: ' . $event->getSummaryForDisplay() . "\n");
              $event->run(Yii::$app);
          }
  
          if (count($events) === 0) {
              $this->stdout("No scheduled commands are ready to run.\n");
          }
      }
code: public function actionRun()
      {
          $this->importScheduleFile();
  
          $events = $this->schedule->dueEvents(Yii::$app);
  
          foreach ($events as $event) {
              $this->stdout('Running scheduled command: ' . $event->getSummaryForDisplay() . "\n");
              $event->run(Yii::$app);
          }
  
          if (count($events) === 0) {
              $this->stdout("No scheduled commands are ready to run.\n");
          }
      }
code_tokens: public function actionRun ( ) { $ this -> importScheduleFile ( ) ; $ events = $ this -> schedule -> dueEvents ( Yii :: $ app ) ; foreach ( $ events as $ event ) { $ this -> stdout ( 'Running scheduled command: ' . $ event -> getSummaryForDisplay ( ) . "\n" ) ; $ event -> run ( Yii :: $ app ) ; } if ( count ( $ events ) === 0 ) { $ this -> stdout ( "No scheduled commands are ready to run.\n" ) ; } }
docstring: Run scheduled commands
docstring_tokens: Run scheduled commands