original_string: public function afterAction($action, $result)
      {
          if (Yii::$app instanceof WebApplication && !in_array($action->id, ['import', 'run', 'update', 'level-up'], true)) {
              Activity::add();
          }
          return parent::afterAction($action, $result);
      }
code: public function afterAction($action, $result)
      {
          if (Yii::$app instanceof WebApplication && !in_array($action->id, ['import', 'run', 'update', 'level-up'], true)) {
              Activity::add();
          }
          return parent::afterAction($action, $result);
      }
code_tokens: public function afterAction ( $ action , $ result ) { if ( Yii :: $ app instanceof WebApplication && ! in_array ( $ action -> id , [ 'import' , 'run' , 'update' , 'level-up' ] , true ) ) { Activity :: add ( ) ; } return parent :: afterAction ( $ action , $ result ) ; }
docstring: Registers user activity after every action.
  @see Activity::add()
  @param Action $action the action just executed
  @param mixed $result the action return result
  @return mixed the processed action result
docstring_tokens: Registers user activity after every action .