original_string: public static function prepareContainer($id)
  	{
  		// use array key exists so non existing column will researched
  		if(array_key_exists('id', self::$container)) {
  			return static::$container[$id];
  		}
  
  		$model = ColumnsetModel::findByPk($id);
  
  		if($model === null)
  		{
  			static::$container[$id] = null;
  			return null;
  		}
  
  		$sizes = deserialize($model->sizes, true);
  		$container = array();
  
  		foreach($sizes as $size)
  		{
  			$key = 'columnset_' . $size;
  			$columns = deserialize($model->{$key}, true);
  
  			foreach($columns as $index => $column) {
  				if(isset($container[$index][0])) {
  					$container[$index][0] .= ' ' . self::prepareSize($size, deserialize($column, true));
  				}
  				else {
  					$container[$index][0] .= self::prepareSize($size, deserialize($column, true));
  				}
  			}
  		}
  
  		static::$container[$id] = $container;
  
  		return $container;
  	}
code: public static function prepareContainer($id)
  	{
  		// use array key exists so non existing column will researched
  		if(array_key_exists('id', self::$container)) {
  			return static::$container[$id];
  		}
  
  		$model = ColumnsetModel::findByPk($id);
  
  		if($model === null)
  		{
  			static::$container[$id] = null;
  			return null;
  		}
  
  		$sizes = deserialize($model->sizes, true);
  		$container = array();
  
  		foreach($sizes as $size)
  		{
  			$key = 'columnset_' . $size;
  			$columns = deserialize($model->{$key}, true);
  
  			foreach($columns as $index => $column) {
  				if(isset($container[$index][0])) {
  					$container[$index][0] .= ' ' . self::prepareSize($size, deserialize($column, true));
  				}
  				else {
  					$container[$index][0] .= self::prepareSize($size, deserialize($column, true));
  				}
  			}
  		}
  
  		static::$container[$id] = $container;
  
  		return $container;
  	}
code_tokens: public static function prepareContainer ( $ id ) { // use array key exists so non existing column will researched if ( array_key_exists ( 'id' , self :: $ container ) ) { return static :: $ container [ $ id ] ; } $ model = ColumnsetModel :: findByPk ( $ id ) ; if ( $ model === null ) { static :: $ container [ $ id ] = null ; return null ; } $ sizes = deserialize ( $ model -> sizes , true ) ; $ container = array ( ) ; foreach ( $ sizes as $ size ) { $ key = 'columnset_' . $ size ; $ columns = deserialize ( $ model -> { $ key } , true ) ; foreach ( $ columns as $ index => $ column ) { if ( isset ( $ container [ $ index ] [ 0 ] ) ) { $ container [ $ index ] [ 0 ] .= ' ' . self :: prepareSize ( $ size , deserialize ( $ column , true ) ) ; } else { $ container [ $ index ] [ 0 ] .= self :: prepareSize ( $ size , deserialize ( $ column , true ) ) ; } } } static :: $ container [ $ id ] = $ container ; return $ container ; }
docstring: prepare the container which sub columns expects
  
  @param int $id id of the columnset
  @return array
docstring_tokens: prepare the container which sub columns expects