Completed
Push — develop ( 531ade...a739c1 )
by Tom
04:50
created
src/N98/Magento/Command/Eav/Attribute/Create/DummyCommand.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -233,10 +233,10 @@  discard block
 block discarded – undo
233 233
 - en_GB
234 234
 HELP;
235 235
         $this->setName('eav:attribute:create-dummy-values')->addArgument('locale', InputArgument::OPTIONAL, 'Locale')
236
-             ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values')
237
-             ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)')
238
-             ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)')
239
-             ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help);
236
+                ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values')
237
+                ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)')
238
+                ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)')
239
+                ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help);
240 240
     }
241 241
 
242 242
     /**
@@ -296,9 +296,9 @@  discard block
 block discarded – undo
296 296
         // Attribute ID
297 297
         if(is_null($input->getArgument('attribute-id'))) {
298 298
             $attribute_code = Mage::getModel('eav/entity_attribute')->getCollection()->addFieldToSelect('*')
299
-                                  ->addFieldToFilter('entity_type_id', array('eq' => 4))
300
-                                  ->addFieldToFilter('backend_type', array('in' => array('int')))
301
-                                  ->setOrder('attribute_id', 'ASC');
299
+                                    ->addFieldToFilter('entity_type_id', array('eq' => 4))
300
+                                    ->addFieldToFilter('backend_type', array('in' => array('int')))
301
+                                    ->setOrder('attribute_id', 'ASC');
302 302
             $_attribute_codes = array();
303 303
 
304 304
             foreach($attribute_code as $item) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Eav/Attribute/Create/DummyValues.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -220,11 +220,11 @@
 block discarded – undo
220 220
     public static function getValueTypeList()
221 221
     {
222 222
         return array(
223
-              'int'      => 'int',
224
-              'string'   => 'string',
225
-              'color'    => 'color',
226
-              'size'     => 'size',
227
-              'designer' => 'designer',
223
+                'int'      => 'int',
224
+                'string'   => 'string',
225
+                'color'    => 'color',
226
+                'size'     => 'size',
227
+                'designer' => 'designer',
228 228
         );
229 229
     }
230 230
 
Please login to merge, or discard this patch.