original_string: protected function countDrops()
      {
          $steps = array_reverse($this->steps);
          $drops = [];
          foreach ($steps as $step) {
              if (isset($step['call']) && $step['call'] === 'createTable') {
                  $drops[] = $step;
              }
          }
          if (Yii::$app->session->get(self::SESSION_KEY, 0) === 0) {
              Yii::$app->session->set(self::SESSION_STEPS, count($drops));
          }
          return $drops;
      }
code: protected function countDrops()
      {
          $steps = array_reverse($this->steps);
          $drops = [];
          foreach ($steps as $step) {
              if (isset($step['call']) && $step['call'] === 'createTable') {
                  $drops[] = $step;
              }
          }
          if (Yii::$app->session->get(self::SESSION_KEY, 0) === 0) {
              Yii::$app->session->set(self::SESSION_STEPS, count($drops));
          }
          return $drops;
      }
code_tokens: protected function countDrops ( ) { $ steps = array_reverse ( $ this -> steps ) ; $ drops = [ ] ; foreach ( $ steps as $ step ) { if ( isset ( $ step [ 'call' ] ) && $ step [ 'call' ] === 'createTable' ) { $ drops [ ] = $ step ; } } if ( Yii :: $ app -> session -> get ( self :: SESSION_KEY , 0 ) === 0 ) { Yii :: $ app -> session -> set ( self :: SESSION_STEPS , count ( $ drops ) ) ; } return $ drops ; }
docstring: Returns list of drops.
  @return array
docstring_tokens: Returns list of drops .