original_string: public function getNewRegistrationIds()
      {
          if ($this->getNewRegistrationIdsCount() == 0) {
              return array();
          }
          $filteredResults = array_filter(
              $this->results,
              function ($result) {
                  return isset($result['registration_id']);
              }
          );
  
          $data = array_map(function ($result) {
                  return $result['registration_id'];
          }, $filteredResults);
  
          return $data;
      }
code: public function getNewRegistrationIds()
      {
          if ($this->getNewRegistrationIdsCount() == 0) {
              return array();
          }
          $filteredResults = array_filter(
              $this->results,
              function ($result) {
                  return isset($result['registration_id']);
              }
          );
  
          $data = array_map(function ($result) {
                  return $result['registration_id'];
          }, $filteredResults);
  
          return $data;
      }
code_tokens: public function getNewRegistrationIds ( ) { if ( $ this -> getNewRegistrationIdsCount ( ) == 0 ) { return array ( ) ; } $ filteredResults = array_filter ( $ this -> results , function ( $ result ) { return isset ( $ result [ 'registration_id' ] ) ; } ) ; $ data = array_map ( function ( $ result ) { return $ result [ 'registration_id' ] ; } , $ filteredResults ) ; return $ data ; }
docstring: Return an array of expired registration ids linked to new id
  All old registration ids must be updated to new ones in DB
  
  @return array oldRegistrationId => newRegistrationId
docstring_tokens: Return an array of expired registration ids linked to new id All old registration ids must be updated to new ones in DB