original_string: public static function getSizesFor(string $size, string $type, int $pageUid): array
      {
          $settings = ColumnLayoutUtility::getColumnLayoutSettings($pageUid);
  
          if (!array_key_exists($size . '.', $settings['sizes.'])) {
              throw new Exception(sprintf('The given size "%s" is not defined in the gridsystem', $size), 1520324173);
          }
  
          if (!array_key_exists($type, $settings['sizes.'][$size . '.'])) {
              throw new Exception(sprintf('The given type "%s" does not exist for size "%s"', $type, $size), 1520324252);
          }
  
          return ColumnLayoutUtility::processColumnSizes($settings['sizes.'][$size . '.'][$type], $settings['columnsCount']);
      }
code: public static function getSizesFor(string $size, string $type, int $pageUid): array
      {
          $settings = ColumnLayoutUtility::getColumnLayoutSettings($pageUid);
  
          if (!array_key_exists($size . '.', $settings['sizes.'])) {
              throw new Exception(sprintf('The given size "%s" is not defined in the gridsystem', $size), 1520324173);
          }
  
          if (!array_key_exists($type, $settings['sizes.'][$size . '.'])) {
              throw new Exception(sprintf('The given type "%s" does not exist for size "%s"', $type, $size), 1520324252);
          }
  
          return ColumnLayoutUtility::processColumnSizes($settings['sizes.'][$size . '.'][$type], $settings['columnsCount']);
      }
code_tokens: public static function getSizesFor ( string $ size , string $ type , int $ pageUid ) : array { $ settings = ColumnLayoutUtility :: getColumnLayoutSettings ( $ pageUid ) ; if ( ! array_key_exists ( $ size . '.' , $ settings [ 'sizes.' ] ) ) { throw new Exception ( sprintf ( 'The given size "%s" is not defined in the gridsystem' , $ size ) , 1520324173 ) ; } if ( ! array_key_exists ( $ type , $ settings [ 'sizes.' ] [ $ size . '.' ] ) ) { throw new Exception ( sprintf ( 'The given type "%s" does not exist for size "%s"' , $ type , $ size ) , 1520324252 ) ; } return ColumnLayoutUtility :: processColumnSizes ( $ settings [ 'sizes.' ] [ $ size . '.' ] [ $ type ] , $ settings [ 'columnsCount' ] ) ; }
docstring: Calculates the column sizes for the given size and the given size type
  
  @param string $size name of the sizes identifier (e.g. large, medium)
  @param string $type size type (e.g. columns, offset, order)
  @param int $pageUid the page which's TSConfig should be used
  @return array of column sizes
  @throws Exception when the given size or type is not defined
docstring_tokens: Calculates the column sizes for the given size and the given size type