Fix spacing between control structure and opening parenthesis

This commit is contained in:
Tautvidas Sipavičius
2016-06-29 18:54:01 +03:00
parent 0bfbe6dc79
commit 48f0c03425
16 changed files with 35 additions and 35 deletions

View File

@@ -21,7 +21,7 @@ class StructureTransformer {
* and inserts tags before top ancestor
*/
private function hoistImagesToRoot($root) {
foreach ($root->query('img') as $item) {
foreach($root->query('img') as $item) {
$top_ancestor = $this->findTopAncestor($item);
$offset = $top_ancestor->index();
@@ -34,7 +34,7 @@ class StructureTransformer {
}
private static function findTopAncestor($item) {
while ($item->parent->parent !== null) {
while($item->parent->parent !== null) {
$item = $item->parent;
}
return $item;
@@ -86,7 +86,7 @@ class StructureTransformer {
private function mergeNeighboringBlocks($structure) {
$updated_structure = array();
$text_accumulator = '';
foreach ($structure as $item) {
foreach($structure as $item) {
if($item['type'] === 'text') {
$text_accumulator .= $item['text'];
}