- Refactored using @badshark's comments

- Integrated changes to JSON data
This commit is contained in:
MrCasual
2015-09-23 11:24:08 -04:00
parent 01b5416882
commit b3e376cd01
14 changed files with 1066 additions and 1197 deletions

View File

@ -1,8 +1,7 @@
<?php namespace MailPoet\Newsletter\Renderer\Blocks;
class Renderer {
function render($data, $column = null) {
function render($data) {
array_map(function ($block) use (&$blockContent, &$columns) {
$blockContent .= $this->createElementFromBlockType($block);
if(isset($block['blocks'])) {