This small patch corrects indentations for objects in ctools_var_export().

Before:

<?php
 
  $object
= new stdClass;
 
$object->some_array_1 = array(
   
'obj_1' => (object) array(
 
'item_1' => 'val_1',
 
'item_2' => 'val_2',
 
'some_array_2' => array(
   
'obj_2' => (object) array(
 
'item_3' => 'val_3',
 
'item_4' => 'val_4',
),
  ),
 
'item_3' => 'val_3',
),
  );
?>

After:

<?php
 
  $object
= new stdClass;
 
$object->some_array_1 = array(
   
'obj_1' => (object) array(
     
'item_1' => 'val_1',
     
'item_2' => 'val_2',
     
'some_array_2' => array(
       
'obj_2' => (object) array(
         
'item_3' => 'val_3',
         
'item_4' => 'val_4',
        ),
      ),
     
'item_3' => 'val_3',
    ),
  );
?>
Files: 

Comments

vgoodvin’s picture

Status:Active» Needs review
merlinofchaos’s picture

Status:Needs review» Fixed

Easy one! Committed to both 6.x and 7.x

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.