original_string: public static function getMeasures($type)
      {
          /** @var ActiveQuery $query */
          $query = static::find()->select(['name', 'id'])->indexBy('id');
          if (empty($type) === false) {
              $query->where(['type' => $type]);
          }
          return $query->column();
      }
code: public static function getMeasures($type)
      {
          /** @var ActiveQuery $query */
          $query = static::find()->select(['name', 'id'])->indexBy('id');
          if (empty($type) === false) {
              $query->where(['type' => $type]);
          }
          return $query->column();
      }
code_tokens: public static function getMeasures ( $ type ) { /** @var ActiveQuery $query */ $ query = static :: find ( ) -> select ( [ 'name' , 'id' ] ) -> indexBy ( 'id' ) ; if ( empty ( $ type ) === false ) { $ query -> where ( [ 'type' => $ type ] ) ; } return $ query -> column ( ) ; }
docstring: Get measures by type name.
  @param string $type
  @return array of measures in the next format `measure_id => 'Measure name'`
docstring_tokens: Get measures by type name .