Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Baked fixture files have bad tab indentation

#263

Using the infinitas template when baking fixtures it generates bad indentation in the file.

Example:

{{{ <?php

class GeneoToolFixture extends CakeTestFixture {
    public $name = 'GeneoTool';

        public $fields = array(
    'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'short_name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'geneo_tool_parameter_set_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'geneo_company_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
    'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
    'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'geneo_company_id' => array('column' => 'geneo_company_id', 'unique' => 0), 'geneo_tool_parameter_set_id' => array('column' => 'geneo_tool_parameter_set_id', 'unique' => 0)),
    'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);

        public $records = array(
    array(
        'id' => '4e673876-1b80-439d-bfe1-48976318cd70',
        'name' => 'Lorem ipsum dolor sit amet',
        'short_name' => 'Lorem ipsum dolor sit amet',
        'geneo_tool_parameter_set_id' => 'Lorem ipsum dolor sit amet',
        'geneo_company_id' => 'Lorem ipsum dolor sit amet',
        'created' => '2011-09-07 09:25:10',
        'modified' => '2011-09-07 09:25:10'
    ),
);
    }

}}}

Reported by Jelle Henkens · September 7th, 2011 @ 12:03 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. dogmatic69
    dogmatic69
    • State changed from new to resolved

    July 6th, 2013 @ 02:30 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.