original_string: public static function resolveAllSheetsInDS(array $dataStructArray) {
  		if (is_array($dataStructArray['sheets'])) {
  			$out = array('sheets' => array());
  			foreach ($dataStructArray['sheets'] as $sheetId => $sDat) {
  				list($ds, $aS) = self::resolveSheetDefInDS($dataStructArray, $sheetId);
  				if ($sheetId == $aS) {
  					$out['sheets'][$aS] = $ds;
  				}
  			}
  		} else {
  			list($ds) = self::resolveSheetDefInDS($dataStructArray);
  			$out = array('sheets' => array('sDEF' => $ds));
  		}
  		return $out;
  	}
code: public static function resolveAllSheetsInDS(array $dataStructArray) {
  		if (is_array($dataStructArray['sheets'])) {
  			$out = array('sheets' => array());
  			foreach ($dataStructArray['sheets'] as $sheetId => $sDat) {
  				list($ds, $aS) = self::resolveSheetDefInDS($dataStructArray, $sheetId);
  				if ($sheetId == $aS) {
  					$out['sheets'][$aS] = $ds;
  				}
  			}
  		} else {
  			list($ds) = self::resolveSheetDefInDS($dataStructArray);
  			$out = array('sheets' => array('sDEF' => $ds));
  		}
  		return $out;
  	}
code_tokens: public static function resolveAllSheetsInDS ( array $ dataStructArray ) { if ( is_array ( $ dataStructArray [ 'sheets' ] ) ) { $ out = array ( 'sheets' => array ( ) ) ; foreach ( $ dataStructArray [ 'sheets' ] as $ sheetId => $ sDat ) { list ( $ ds , $ aS ) = self :: resolveSheetDefInDS ( $ dataStructArray , $ sheetId ) ; if ( $ sheetId == $ aS ) { $ out [ 'sheets' ] [ $ aS ] = $ ds ; } } } else { list ( $ ds ) = self :: resolveSheetDefInDS ( $ dataStructArray ) ; $ out = array ( 'sheets' => array ( 'sDEF' => $ ds ) ) ; } return $ out ; }
docstring: Resolves ALL sheet definitions in dataStructArray
  If no sheet is found, then the default "sDEF" will be created with the dataStructure inside.
  
  @param array $dataStructArray Input data structure, possibly with a sheet-definition and references to external data source files.
  @return array Output data structure with all sheets resolved as arrays.
docstring_tokens: Resolves ALL sheet definitions in dataStructArray If no sheet is found then the default sDEF will be created with the dataStructure inside .