original_string: protected function formatDataList(DataList $dataList)
      {
          $formattedDataListMap = array();
  
          foreach ($dataList as $dataObject) {
              $formattedDataObjectMap = $this->formatDataObject($dataObject);
              if ($formattedDataObjectMap) {
                  array_push($formattedDataListMap, $formattedDataObjectMap);
              }
          }
  
          return $formattedDataListMap;
      }
code: protected function formatDataList(DataList $dataList)
      {
          $formattedDataListMap = array();
  
          foreach ($dataList as $dataObject) {
              $formattedDataObjectMap = $this->formatDataObject($dataObject);
              if ($formattedDataObjectMap) {
                  array_push($formattedDataListMap, $formattedDataObjectMap);
              }
          }
  
          return $formattedDataListMap;
      }
code_tokens: protected function formatDataList ( DataList $ dataList ) { $ formattedDataListMap = array ( ) ; foreach ( $ dataList as $ dataObject ) { $ formattedDataObjectMap = $ this -> formatDataObject ( $ dataObject ) ; if ( $ formattedDataObjectMap ) { array_push ( $ formattedDataListMap , $ formattedDataObjectMap ) ; } } return $ formattedDataListMap ; }
docstring: Format a DataList into a formatted array ready to be turned into JSON
  
  @param  DataList $dataList The DataList to format
  @return array              The formatted array representation of the DataList
docstring_tokens: Format a DataList into a formatted array ready to be turned into JSON