Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php |
||
| 13 | class DummyCommand extends \N98\Magento\Command\AbstractMagentoCommand |
||
| 14 | { |
||
| 15 | private $sizes = array( |
||
| 16 | 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', |
||
| 17 | '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', |
||
| 18 | ); |
||
| 19 | |||
| 20 | private $designer = array( |
||
| 21 | '08Sircus', '11 By Boris Bidjan Saberi', '1-100', '3.1 Phillip Lim', '32 Paradis Sprung Frères', '321', '3X1', |
||
| 22 | '5 Preview', '69', '7 For All Mankind', '8pm', 'S Max Mara', 'A Diciannoveventitre', 'A.F.Vandevorst', 'A.L.C.', |
||
| 23 | 'A.P.C.', 'Aalto', 'Ack', 'Adam Lippes', 'Adidas', 'Adidas By Raf Simons', 'Adidas By Stella Mccartney', |
||
| 24 | 'Adidas Originals', 'Adieu Paris', 'Ag Jeans', 'Agnona', 'Ahlem', 'Akris', 'Alaïa Vintage', 'Alberta Ferretti', |
||
| 25 | 'Alberta Ferretti Vintage', 'Alberto Biani', 'Alberto Fasciani', 'Alberto Fermani', 'Aleksandr Manamïs', |
||
| 26 | 'Alessandra Marchi', 'Alex Perry', 'Alexa Wagner', 'Alexander McQueen', 'Alexander Wang', 'Alexandre Birman', |
||
| 27 | 'Alexandre Vauthier', 'Alexis Bittar', 'Alexis Mabille', 'Alfred Leder', 'Algenist', 'Alice Archer', |
||
| 28 | 'Alice Waese', 'Alice+Olivia', 'Alinka', 'Alison Lou', 'Alix', 'Allison Bryan', 'Allude', 'Ally Capellino', |
||
| 29 | 'Altruis By Vinaya', 'Altuzarra', 'Alvaro Gonzalez', 'Alyx', 'Amapô', 'Ambush', 'Amedeo', 'Amélie Pichard', |
||
| 30 | 'Amen', 'Ami Alexandre Mattiussi', 'Amo', 'A-Morir', 'Anapsara', 'Ancient Greek Sandals', 'Andrea Marques', |
||
| 31 | 'Andrea Ya aqov', 'Andy Wolf Eyewear', 'Anine Bing', 'Anita Ko', 'Ann Demeulemeester', |
||
| 32 | 'Ann Demeulemeester Blanche', 'Anna Baiguera', 'Anna Karin Karlsson', 'Anna Kosturova', 'Anndra Neen', |
||
| 33 | 'Anne Semonin', 'Anne Sofie Madsen', 'Annelise Michelson', 'Anrealage', 'Anthony Vaccarello', 'Antonia Zander', |
||
| 34 | 'Antonio Berardi', 'Antonio Marras', 'Anya Hindmarch', 'Aperlai', 'Apiece Apart', |
||
| 35 | 'April Chrichton & Nicholas Party', 'Aquazzura', 'Area Di Barbara Bologna', 'Arielle De Pinto', |
||
| 36 | 'Aristide Najean', 'Armani Collezioni', 'Armani Jeans', 'Army Yves Salomon', 'As29', 'Ash', 'Asherali Knopfer', |
||
| 37 | 'Ashish', 'Ashley Pittman', 'Aspesi', 'Assin', 'Assouline', 'Astley Clarke', 'Astraet', 'Atelier Bâba', |
||
| 38 | 'Atelier Buffile', 'Atelier Paulin', 'Athena', 'Atlantic Stars', 'Atlantique Ascoli', |
||
| 39 | 'Atm Anthony Thomas Melillo', 'Aurelia Probiotic Skincare', 'Aurelie Bidermann', 'Ava Adore', 'Avant Toi', |
||
| 40 | 'Avelon', 'Awake', 'B May', 'Badgley Mischka', 'Baja East', 'Bakel', 'Balenciaga Eyewear', 'Balenciaga Vintage', |
||
| 41 | 'Ballin', 'Bally', 'Balmain', 'Bao Bao Issey Miyake', 'Barbara Bui', 'Barbara Casasola', 'Barbara I Gongini', |
||
| 42 | 'Bark', 'Barn\'s', 'Barrie', 'Bassike', 'Bata', 'Bazar Deluxe', 'Bea Bongiasca', 'Beau Souci', 'Becca', |
||
| 43 | 'Beek..', 'Bella Freud', 'Belstaff', 'Bernhard Willhelm', 'Beth Orduna', 'Bhindi Jewelers', 'Bianca Spender', |
||
| 44 | 'Biba Vintage', 'Bibi Van Der Velden', 'Bintthani', 'Bionda Castana', 'Birkenstock', 'Bjorg', 'Blancha', |
||
| 45 | 'Blk Dnm', 'Blugirl', 'Blumarine', 'Boboutic', 'Borbonese', 'Bottega Veneta Eyewear', 'Boutique Moschino', |
||
| 46 | 'Boys Forever', 'Brandon Maxwell', 'Brian Atwood', 'Brioni', 'Brock Collection', 'Brother Vellies', |
||
| 47 | 'Brunello Cucinelli', 'Brute', 'Building Block', 'Bukkehave', 'Bulgari', 'Burberry', 'Burberry Brit', |
||
| 48 | 'Burberry Kids', 'Burberry London', 'Burberry Prorsum', 'Burberry Vintage', 'Buscemi', 'Buttero', 'By Boe', |
||
| 49 | 'By Kilian', 'By Malene Birger', 'By Terry', 'By Walid', 'Byredo', 'Ca&Lou', 'Calleen Cordero', 'Callens', |
||
| 50 | 'Calvin Klein Collection', 'Calvin Klein Jeans', 'Camilla', 'Camilla And Marc', 'Canali', 'Cane + Austin', |
||
| 51 | 'Capucci', 'Car Shoe', 'Carhartt', 'Carin Wester', 'Carl Rotter', 'Carole Shashona', 'Carolina Bucci', |
||
| 52 | 'Carolina Herrera', 'Cartier Vintage', 'Carven', 'Casadei', 'Case Scenario', 'Casey Casey', 'Casio', |
||
| 53 | 'Castañer', 'Catherine Michiels', 'Cazal', 'Cecilia Prado', 'Cecilie Copenhagen', 'Cédric Charlier', |
||
| 54 | 'Céline Eyewear', 'Céline Vintage', 'Cesare Paciotti', 'Chalayan', 'Chanel Eyewear', 'Chanel Vintage', |
||
| 55 | 'Chantecaille', 'Charlet Par Aime', 'Charlotte Chesnais', 'Charlotte Olympia', 'Cherevichkiotvichki', |
||
| 56 | 'Chiara Ferragni', 'Chie Mihara', 'Chinti And Parker', 'Chloé', 'Chloe Gosselin', 'Christian Dior', |
||
| 57 | 'Christian Dior Vintage', 'Christian Koban', 'Christian Lacroix Vintage', 'Christian Siriano', |
||
| 58 | 'Christian Wijnants', 'Christina Debs', 'Christopher Esber', 'Christopher Kane', 'Cinq A Sept', 'Cinzia Araia', |
||
| 59 | 'Cire Trudon', 'Citizens Of Humanity', 'Cityshop', 'Claire Barrow', 'Clarice Price Thomas', |
||
| 60 | 'Claude Montana Vintage', 'Claustrum', 'Closed', 'Co', 'Coach', 'Coco And Breezy', 'Colbert Md', 'Coliac', |
||
| 61 | 'Color Wow', 'Comme Des Garçons', 'Comme Des Garçons Comme Des Garçons', 'Comme Des Garçons Girl', |
||
| 62 | 'Comme Des Garçons Noir Kei Ninomiya', 'Comme Des Garçons Play', 'Comme Des Garçons Tricot', |
||
| 63 | 'Comme Des Garçons Vintage', 'Comme Des Garçons Wallet', 'Common Projects', 'Converse', 'Corlette', |
||
| 64 | 'Cornelia Webb', 'Côte&Ciel', 'Courrèges', 'Courrèges Vintage', 'Cover Fx', 'Creatures Of The Wind', |
||
| 65 | 'Cristina Ortiz', 'Current/Elliott', 'Cushnie Et Ochs', 'Cutler & Gross', 'Cutuli Cult', 'Cvc Stones', 'Dagmar', |
||
| 66 | 'Damir Doma', 'Dana Kellin', 'Dana Rebecca', 'Daniela Gregis', 'Daniela Villegas', 'David Koma', |
||
| 67 | 'Delfina Delettrez', 'Delpozo', 'Derek Lam', 'Derek Lam 10 Crosby', 'Desa Collection', 'Designinverso', 'Dezso', |
||
| 68 | 'Diadora', 'Diane Von Furstenberg', 'Diesel', 'Diesel Black Gold', 'Dima', 'Dimissianos & Miller', 'Dion Lee', |
||
| 69 | 'Dionea Orcini', 'Dior Eyewear', 'Diptyque', 'Dita Eyewear', 'DKNY', 'DKNY Pure', 'Dodo Bar Or', |
||
| 70 | 'Dolce & Gabbana', 'Dominic Jones', 'Dondup', 'Dorateymur', 'Doreen Mellen', 'Dorothee Schumacher', 'Dosa', |
||
| 71 | 'Dovetusai', 'Dr Sebagh', 'Dr. Martens', 'DressCamp', 'Dries Van Noten Eyewear', 'Drome', 'Dsquared2', |
||
| 72 | 'Dusan', 'Duvetica', 'Dylanlex', 'Each X Other', 'Eddie Borgo', 'Edge Of Ember', 'Edie Parker', 'Edun', 'Eggs', |
||
| 73 | 'Egrey', 'Ejxiii', 'Ek Thongprasert', 'Elena Ghisellini', 'Eleventy', 'Elie Saab', 'Elie Tahari', 'Elise Dray', |
||
| 74 | 'Elizabeth And James', 'Ellen Conde', 'Ellery', 'Emanuel Ungaro', 'Emanuel Ungaro Vintage', 'Emanuele Bicocchi', |
||
| 75 | 'Emilio Pucci', 'Emilio Pucci Vintage', 'Emma Hardie', 'Emporio Armani', 'Emporio Armani Vintage', |
||
| 76 | 'Enfants Riches Deprimes', 'Engineered Garments', 'Epos', 'Equipment', 'Erdem', 'Erickson Beamon', |
||
| 77 | 'Erika Cavallini', 'Ermanno Gallamini', 'Ermanno Scervino', 'Escada Vintage', 'Eshvi', 'Espèces', |
||
| 78 | 'Esteban Cortazar', 'Être Cécile', 'Etro', 'Études Studio', 'Eugenia Kim', 'Eve Lom', 'Extreme Cashmere', |
||
| 79 | 'Eyevan7285', 'Eytys', 'Fabiana Filippi', 'Facetasm', 'Factory 900', 'Fad Three', 'Fadeless', 'Faith Connexion', |
||
| 80 | 'Faliero Sarti', 'Family Affair', 'Fannie Schiavoni', 'Fashion Clinic', 'Faustine Steinmetz', 'Fausto Puglisi', |
||
| 81 | 'Fay', 'Federica Moretti', 'Fendi', 'Fendi Vintage', 'Feverish', 'Figue', 'Filles A Papa', 'Filù Hats', |
||
| 82 | 'Fiorentini + Baker', 'Fiya', 'Fleur Du Mal', 'For Love And Lemons', 'For Restless Sleepers', 'Fornasetti', |
||
| 83 | 'Fornasetti Profumi', 'Forte Forte', 'Frame Denim', 'Frances Valentine', 'Francesco Demaria', 'Frank & Eileen', |
||
| 84 | 'Franz Marfurt Lucerne', 'Frency & Mercury', 'Frends', 'Furla', 'G.V.G.V.', 'Gabriela Hearst', |
||
| 85 | 'Gabriella Ingram', 'Galvan', 'Gareth Pugh', 'Garrard', 'Garrett Leight', 'Gas Bijoux', 'Gavello', 'Gaydamak', |
||
| 86 | 'Gcds', 'Gedebe', 'Gemco', 'Geoffrey B. Small', 'Getting Back To Square One', 'Giada Benincasa', 'Giamba', |
||
| 87 | 'Giambattista Valli', 'Gianfranco Ferre Vintage', 'Gianluca Capannolo', 'Gianvito Rossi', 'Gig', |
||
| 88 | 'Gigi Burris Millinery', 'Gigli Vintage', 'GINGER & SMART', 'Giorgio Armani', 'Giorgio Armani Vintage', |
||
| 89 | 'Giorgio Brato', 'Gisele For Eshvi', 'Giuliana Romanno', 'Giuseppe Zanotti Design','Givenchy', |
||
| 90 | 'Givenchy Vintage', 'Gold And Wood', 'Golden Goose Deluxe Brand', 'Goldfaden Md', 'Goldsign', |
||
| 91 | 'Good For Nothing Emb', 'Goti', 'Goyard Vintage', 'Greg Lauren', 'Grenson', 'Greta Constantine', 'Grey Ant', |
||
| 92 | 'Grey Jason Wu', 'G-Star', 'Gucci Eyewear', 'Guidi', 'Guild Prime', 'Guy Laroche Vintage', 'Hache', |
||
| 93 | 'Haider Ackermann', 'Hakusan', 'Halston Heritage', 'Hanna Wallmark', 'Harcoza', 'Harris Wharf London', 'Haus', |
||
| 94 | 'Hayward', 'Hector Magazine', 'Heidi Klein', 'Heikki Salonen', 'Helmut Lang', 'Helmut Lang Vintage', |
||
| 95 | 'Hender Scheme', 'Henderson Baracco', 'Henrik Vibskov', 'Henson', 'Hermès Vintage', 'Herno', 'Heroine Sport', |
||
| 96 | 'Herrlicht', 'Hervé Léger', 'Hipanema', 'Hirondelle', 'Hl Heddie Lovu', 'Hogan', 'Hogan Rebel', 'Holiday', |
||
| 97 | 'Hood By Air', 'Hoorsenbuhs', 'Hope', 'Horisaki Design & Handel', 'House Of Holland', 'House Of Voltaire', |
||
| 98 | 'Htc Hollywood Trading Company', 'Hudson', 'Humanoid', 'Hussein Bazaza', 'Iceberg', 'Idonthaveasister', |
||
| 99 | 'Ilana Ariel', 'Ilaria Nistri', 'Ileana Makri', 'Illesteva', 'Iluminage', 'Imogen Belfield', 'Incotex', |
||
| 100 | 'Individual Sentiments', 'Industrie Veneziane', 'Ingie Paris', 'Institut Esthederm', 'Inverni', |
||
| 101 | 'Io Ivana Omazic', 'Iosselliani', 'Irene Neuwirth', 'Iro', 'Isaac Reina', 'Isaac Sellam Experience', |
||
| 102 | 'Isabel Benenato', 'Isabel Marant', 'Isabel Marant Étoile', 'Isabel Marant For Oliver Peoples', 'Isolda', |
||
| 103 | 'Issey Miyake', 'Issey Miyake Cauliflower', 'Issey Miyake Men', 'Issey Miyake Vintage', 'Italia Independent', |
||
| 104 | 'Ivo Scunzani', 'Ivy & Liv', 'Ivy Kirzhner', 'J Brand', 'J.W. Anderson', 'Jacob Cohen', 'Jacquemus', |
||
| 105 | 'Jacques Marie Mage', 'Jacquie Aiche', 'Jagga', 'James Perse','James Read', 'Jamin Puech', 'Jane Bowler', |
||
| 106 | 'Janis Savitt', 'Japsis Jewellery', 'Jason Wu', 'Jay Ahr', 'Jc De Castelbajac Vintage', |
||
| 107 | 'Jean Louis Scherrer Vintage', 'Jean Paul Gaultier Vintage', 'Jean-François Mimilla', 'Jean-Michel Cazabat', |
||
| 108 | 'Jeffrey Campbell', 'Jenni Kayne', 'Jeremy Deller', 'Jeremy Scott', 'Jérôme Dreyfuss', 'Jessie Harris', |
||
| 109 | 'Jezebel London', 'Jil Sander', 'Jil Sander Navy', 'Jil Sander Vintage', 'Jimmy Choo', 'Jitrois', |
||
| 110 | 'Joanna Laura Constantine', 'Jocelyn', 'Joëlle Jewellery', 'John Booth', 'John Brevard', |
||
| 111 | 'John Galliano Vintage', 'John Smedley', 'Joie', 'Jonathan Cohen', 'Jonathan Saunders', 'Jonathan Simkhai', |
||
| 112 | 'Joseph', 'Joshua Sanders', 'Jour/Né', 'Jozica', 'Juicy Couture', 'Julien David', 'Junior Gaultier', |
||
| 113 | 'Junya Watanabe Comme Des Garçons', 'Junya Watanabe Comme Des Garçons Vintage', 'Just Cavalli', 'Just Female', |
||
| 114 | 'Jvdf', 'K. Jacques', 'Kamushki', 'Kane Ny', 'Kansai Yamamoto Vintage', 'Karen Walker Eyewear', 'Karolin', |
||
| 115 | 'Kat Burki', 'Katherine Wallach', 'Katrine Kristensen', 'Kaufmanfranco', 'Kdia', 'Kenzo', 'Kenzo Vintage', |
||
| 116 | 'Kevyn Aucoin', 'Khai Khai', 'Khirma Eliazov', 'Kijima Takayuki', 'Kilometre X The Webster', 'Kim Mee Hye', |
||
| 117 | 'Kimberly Mcdonald', 'Kinz Kanaan', 'Kitx', 'Ko Studio', 'Koral', 'Krewe Du Optic', 'Kris Van Assche', |
||
| 118 | 'Kristensen Du Nord', 'Kristin Hanson', 'Krizia Vintage', 'Ksubi', 'KTZ', 'Kuboraum', 'Kyme', 'L.G.R', |
||
| 119 | 'La Brune Et La Blonde', 'La Mania', 'La Perla', 'Label Under Construction', 'Laboratorigarbo', 'Lafayette 148', |
||
| 120 | 'Lala Berlin', 'Lamat', 'Lancer', 'Lanvin', 'Lanvin Vintage', 'Lara Bohinc', 'Lareida', 'Larkspur & Hawk', |
||
| 121 | 'Larsson & Jennings', 'Laura B', 'Lauren Klassen', 'Laurence Dacade', 'Ld Tuttle', |
||
| 122 | 'Le Bon Marche X The Webster', 'Le Ciel Bleu', 'Le Coq Sportif', 'Le Kasha', 'Le Kilt', 'Le Specs', |
||
| 123 | 'Leather Crown', 'Lee Brennan Design', 'Leivankash', 'Lela Rose', 'Lemaire', 'Lemlem', 'Les Petits Joueurs', |
||
| 124 | 'Lesca', 'Levi\'s', 'Linda Farrow', 'Linda Farrow Gallery', 'Lindberg', 'Lipstick Queen', |
||
| 125 | 'Lisa Marie Fernandez', 'Liska', 'Liska Haute Fourrure By Romain Brau', 'Live The Process With Chelsea Leyland', |
||
| 126 | 'Living Proof', 'Lizzie Fortunato Jewels', 'Local Supply', 'Loeffler Randall', 'Loewe', 'Loquet', |
||
| 127 | 'Loree Rodkin', 'Loren Stewart', 'Loro Piana', 'Lost & Found Ria Dunn', 'Lost & Found Rooms', 'Lotos', |
||
| 128 | 'Louis Feraud Vintage', 'Louis Vuitton Vintage', 'Love Moschino', 'Loveless', 'Loyd/Ford', 'Lucas Hugh', |
||
| 129 | 'Lucien Pellat Finet', 'Luis Miguel Howard', 'Luis Morais', 'Luisa Cevese Riedizioni', 'Lulu Guinness', |
||
| 130 | 'Luxury Fashion', 'Lydia Courteille', 'M Missoni', 'M Missoni Vintage', 'M2malletier', 'Ma+', 'Mad Et Len', |
||
| 131 | 'Madame', 'Magda Butrym', 'Maharishi', 'Maison Close', 'Maison Kitsuné', 'Maison Margiela', |
||
| 132 | 'Maison Margiela Vintage', 'Maison Michel', 'Maison Rabih Kayrouz', 'Maison Recuerdo', 'Maison Ullens', |
||
| 133 | 'Maiyet', 'Majestic Filatures', 'Majesty Black', 'Malia Mills', 'Malin+Goetz', 'Malone Souliers', 'Mame', |
||
| 134 | 'Manebi', 'Manning Cartell', 'Manoush', 'Mansur Gavriel', 'Manu Atelier', 'Mara Hoffman', 'Marc Alary', |
||
| 135 | 'Marc By Marc Jacobs', 'Marc Jacobs', 'Marc Le Bihan', 'Marcelo Burlon County Of Milan', 'March La.B', |
||
| 136 | 'Marchesa', 'Marchesa Notte', 'Marco De Vincenzo', 'Maria Black', 'Maria Lucia Hohan', 'Maria Teresa Sottile', |
||
| 137 | 'Marie Helene De Taillac', 'Mark Cross', 'Markus Lupfer', 'Marni', 'Marsèll', 'Marshall', 'Martha Medeiros', |
||
| 138 | 'Martine Jarlgaard', 'Mary Katrantzou', 'Mary Katrantzou X Adidas Originals', 'Maryam Nassir Zadeh', |
||
| 139 | 'Marysia', 'Masnada', 'Massimo Alba', 'Master & Dynamic', 'Masunaga', 'Matar', 'Mathilde Danglade','Maticevski', |
||
| 140 | 'Matsuda', 'Matthew Darbyshire', 'Matthew Williamson', 'Mawi', 'Max Mara', 'Max Mara Studio', 'Max Tan', |
||
| 141 | 'Maxime Llorens', 'Maxwell Snow', 'MCM', 'Mcm Vintage', 'McQ Alexander McQueen', 'Me&Mr.Gentleman', |
||
| 142 | 'Melissa + Jeremy Scott', 'Melissa Joy Manning', 'Melissa Odabash', 'Mes Demoiselles', 'Miahatami', 'Miansai', |
||
| 143 | 'Michael Kors', 'Michael Michael Kors', 'Michael Schmidt', 'Michel Vivien', 'Micol Ragni', 'Mih Jeans', |
||
| 144 | 'Mihara Yasuhiro', 'Milly', 'Minimarket', 'Minjukim', 'Minna Parikka', 'Mira Mikati', 'Missoni', |
||
| 145 | 'Missoni Vintage', 'Miu Miu Eyewear', 'Mm6 Maison Margiela', 'Moa Master Of Arts', 'Moeva', 'Monan', |
||
| 146 | 'Moncler', 'Moncler Gamme Rouge', 'Moncler Grenoble', 'Moncler X Erdem', 'Monday Active', 'Monica Sordo', |
||
| 147 | 'Monies', 'Monique Lhuillier', 'Monocle Eyewear', 'Monreal London', 'Moo Piyasombatkul', 'Moohong', |
||
| 148 | 'Moratorium', 'Moreau', 'Moschino', 'Moschino Vintage', 'Mother', 'Mother Of Pearl', 'Mou', 'Movitra', |
||
| 149 | 'Mr & Mrs Italy', 'MSGM', 'Mua Mua', 'Mugler', 'Murmur', 'Musée', 'Muubaa', 'Muveil', 'Mykita', |
||
| 150 | 'Myriam Schaefer', 'Myswear', 'N.Peal', 'Nafsika Skourti', 'Narciso Rodriguez', 'Nasir Mazhar', |
||
| 151 | 'Natasha Collis', 'Natasha Zinko', 'Nathalie Trad', 'Natura Bisse', 'Neil Barrett', 'Nektar De Stagni', |
||
| 152 | 'Neuw', 'Nevermind', 'New Balance', 'Newbark', 'Nicholas Kirkwood', 'Nicole Miller', 'Nicopanda', |
||
| 153 | 'Night Market', 'Nike', 'Nikos Koulis', 'Nili Lotan', 'Nina Ricci', 'Nina Ricci Vintage', 'Nixon', 'Niza Huang', |
||
| 154 | 'Nº21', 'Nobody Denim', 'Nomia', 'Noor Fares', 'Noritamy', 'Norma Kamali', 'Norse Projects', 'NSF', 'Nuface', |
||
| 155 | 'O&M', 'Oamc', 'Obey', 'Occulter', 'Odeeh', 'Odeur', 'Of Rare Origin', 'Officine Creative', 'Off-White', |
||
| 156 | 'Oliver Goldsmith', 'Oliver Peoples', 'Olympia Le-Tan', 'One Oak By Sara', 'Onia', 'Opening Ceremony', |
||
| 157 | 'Organic By John Patrick', 'Orolog By Jaime Hayon', 'Oscar de la Renta', 'Oskia', 'Osman', 'Ouigal', |
||
| 158 | 'P.A.R.O.S.H.', 'Paco Rabanne', 'Paige', 'Palm Angels', 'Paloma Barceló', 'Pamela Love', 'Paname', |
||
| 159 | 'Pantos Paris', 'Paolo Piovan', 'Parfums De Marly', 'Pascia', 'Paul & Joe', 'Paul Andrew', 'Paul Smith', |
||
| 160 | 'Paul Smith Black Label', 'Paula Cademartori', 'Paule Ka', 'Pb 0110', 'Pearl', 'Pearls Before Swine', |
||
| 161 | 'Pedro Garcia', 'Pelle Moda', 'Pepa Pombo', 'Peppercotton', 'Percy And Reed', 'Perricone Md', 'Perrin Paris', |
||
| 162 | 'Persol', 'Persol Vintage', 'Petar Petrov', 'Peter & May Walk', 'Peter Cohen', 'Peter Jensen', 'Peter Non', |
||
| 163 | 'Peter Pilotto', 'Petit Bateau', 'Petralux', 'Phat Buddha', 'Philipp Plein', 'Philippe Model', |
||
| 164 | 'Philosophy Di Lorenzo Serafini', 'Piamita', 'Piazza Sempione', 'Pierre Balmain', 'Pierre Cardin Vintage', |
||
| 165 | 'Pierre Hardy', 'Pierre-Louis Mascia', 'Piers Atkinson', 'Pleats Please By Issey Miyake', |
||
| 166 | 'Pleats Please By Issey Miyake Vintage', 'Plein Sud', 'Pollini', 'Polo Ralph Lauren', 'Pomellato', |
||
| 167 | 'Porter-Yoshida & Co', 'Ports 1961', 'Poupette St Barth', 'Prabal Gurung', 'Prada Eyewear', 'Prada Vintage', |
||
| 168 | 'Pramma', 'Preen By Thornton Bregazzi', 'Premiata', 'Premiata White', 'Prism', 'Proenza Schouler', |
||
| 169 | 'Protagonist', 'PS Paul Smith', 'Pt01', 'Puma', 'Puro Iosselliani', 'R13', 'Rachel Comey', 'Racil', |
||
| 170 | 'Radical Skincare', 'Rag & Bone', 'Rag & Bone /Jean', 'Ralph Lauren', 'Ralph Lauren Black', |
||
| 171 | 'Ralph Lauren Purple', 'Ram', 'Ramy Brook', 'Raquel Allegra', 'Rauwolf', 'Ray-Ban', 'Re/Done', 'Reality Studio', |
||
| 172 | 'Rebecca Minkoff', 'Rebecca Taylor', 'Rebecca Vallance', 'Red Valentino', 'Reebok', 'Reinaldo Lourenço', |
||
| 173 | 'Reinhard Plank', 'Ren', 'René Caovilla', 'Renee So', 'Repetto', 'Retrosuperfuture', 'Rewind Vintage Affairs', |
||
| 174 | 'Rick Owens', 'Rick Owens DRKSHDW', 'Rick Owens Lilies', 'Ritch Erani NYFC', 'Robert Clergerie', |
||
| 175 | 'Roberta Di Camerino Vintage', 'Roberto Cavalli', 'Roberto Collina', 'Roberto Del Carlo', 'Roberto Marroni', |
||
| 176 | 'Rochas', 'Rochelle Sara', 'Rocio', 'Rockins', 'Rodarte', 'Rodebjer', 'Rodial', 'Roksanda', 'Roland Mouret', |
||
| 177 | 'Romeo Gigli Vintage', 'Ros Millar', 'Rosa De La Cruz', 'Rosa Maria', 'Rosamosario', 'Rosantica', |
||
| 178 | 'Rosetta Getty', 'Rosie Assoulin', 'Rovant Antiqu', 'Rta', 'Ruifier', 'Rula Galayini', 'Rundholz', |
||
| 179 | 'Rundholz Black Label', 'Rupert Sanderson', 'Ryan Lo', 'Ryan Roche', 'Sabine G', 'Sacai', 'Sachajuan', |
||
| 180 | 'Saint Laurent', 'Saks Potts', 'Salinas', 'Saloni', 'Salvatore Ferragamo', 'Salvatore Santoro', 'Sam & Lavi', |
||
| 181 | 'Sam Edelman', 'Sama Eyewear', 'Samantha Sung', 'Samira13', 'Samsung By Colombo Via Della Spiga', 'San Lorenzo', |
||
| 182 | 'Sandrine Rose', 'Sandy Liang', 'Santoni', 'Saqqara', 'Sara Battaglia', 'Sara Weinstock', 'Sarah & Sebastian', |
||
| 183 | 'Sarah Angold Studio', 'Sarah Chapman', 'Sarah Chofakian', 'Sarah Noor', 'Sarah’s Bag', 'Sartore', 'Saturnino', |
||
| 184 | 'Saucony', 'Savas', 'Scanlan Theodore', 'Schutz', 'Scunzani Ivo', 'Sea', 'See By Chloé', 'See Concept', 'Seeme', |
||
| 185 | 'Self-Portrait', 'Selin Kent', 'Sener Besim', 'Serapian', 'Sergio Rossi', 'Serpui', |
||
| 186 | 'Shades Of Grey By Micah Cohen', 'Shamballa Jewels', 'Shaun Leane', 'Shinola', 'Shiseido', 'Shourouk', |
||
| 187 | 'Shrimps', 'Shylee Rose', 'Si-Jay', 'Silvano Sassetti', 'Simon Harrison', 'Simon Miller', 'Simona Tagliaferri', |
||
| 188 | 'Simone Rocha', 'Sirciam', 'Sjal', 'Slave To Ancestors', 'Smoke X Mirrors', 'Smythe', 'Smythson', |
||
| 189 | 'Société Anonyme', 'Soha Sardinia', 'Soludos', 'Sonia By Sonia Rykiel', 'Sonia Rykiel', 'Sonia Rykiel Vintage', |
||
| 190 | 'Sophia Webster', 'Sophie Bille Brahe', 'Sophie Hulme', 'Sophie Theallet', 'Soulland', 'Spektre', |
||
| 191 | 'Spencer Vladimir', 'Spinelli Kilcollin', 'Stampd', 'Stefano Mortari', 'Steffen Schraut', 'Stella McCartney', |
||
| 192 | 'Stephan Schneider', 'Stephane Kélian', 'Stephen Sprouse Vintage', 'Stephen Webster', 'Stine Goya', 'Stone', |
||
| 193 | 'Stouls', 'Strut This', 'Stuart Weitzman', 'Studio Chofakian', 'Stussy', 'Stutterheim', 'Suicoke', |
||
| 194 | 'Sun Buddies', 'Sunday Riley', 'Suno', 'Superga', 'Suzusan', 'SW/TCH', 'Swear', 'Swedish Hasbeens', |
||
| 195 | 'Sylvie Schimmel', 'Sylvio Giardina', 'T By Alexander Wang', 'T3', 'Tabitha Simmons', 'Tag Heuer', 'Tagliatore', |
||
| 196 | 'Taher Chemirik', 'Talika', 'Talitha', 'Tamara Mellon', 'Tanya Taylor', 'Tara4779', 'Tata Naka', |
||
| 197 | 'Temperley London', 'Ter Et Bantine', 'The Cambridge Satchel Company', 'The Elder Statesman', 'The Great', |
||
| 198 | 'The Last Conspiracy', 'The Row', 'The Seafarer', 'The Soloist', 'The Webster', 'Theo By Tim Van Steenbergen', |
||
| 199 | 'Theory', 'Thierry Lasry', 'Thierry Mugler Vintage', 'This Works', 'Thom Browne', 'Thom Krom', 'Thomas Wylde', |
||
| 200 | 'Thomasine', 'Thoraval', 'Thorsun', 'Tibi', 'Tobias Wistisen', 'Tod\'s', 'Toga', 'Tom Binns', 'Tomas Maier', |
||
| 201 | 'Tomasini', 'Tome', 'Tone It Up', 'Toogood', 'Tori Praver', 'Tory Burch', 'Trippen', 'Troubadour', 'True Rocks', |
||
| 202 | 'Tsumori Chisato', 'Tu Es Mon Tresor', 'Twin-Set', 'Ugo Cacciatori', 'Ulla Johnson', 'Ulla Soucasse', |
||
| 203 | 'Uma Wang', 'Unconditional', 'Undercover', 'Unif', 'United Nude', 'Unravel', 'Urban Zen', 'Uribe', |
||
| 204 | 'Uzerai Edits', 'V Jewellery', 'V73', 'Valas', 'Valdez Panama Hats', 'Valencia', 'Valentino', |
||
| 205 | 'Valentino Garavani', 'Valery Kovalska', 'Valextra', 'Vanessa Bruno', 'Vanessa Bruno Athé', 'Vans', 'Vava', |
||
| 206 | 'Veneffect', 'Venessa Arizaga', 'Venyx', 'Vera Wang', 'Veronica Beard', 'Veronique Branquinho', |
||
| 207 | 'Veronique Leroy', 'Versace', 'Versace Collection', 'Versace Vintage', 'Versus', 'Very Gavello', 'Vibe Harsløf', |
||
| 208 | 'Victoria Beckham', 'Victoria Beckham Denim', 'Victoria Victoria Beckham', 'Vieri', 'Vince', 'Vince Camuto', |
||
| 209 | 'Visvim', 'Vita Fede', 'Vita Kin', 'Vivetta', 'Vivienne Westwood', 'Vivienne Westwood Anglomania', |
||
| 210 | 'Vivienne Westwood Gold Label', 'Vivienne Westwood Red Label', 'Vojd Studios', 'W.I.T.H.', |
||
| 211 | 'Walter Van Beirendonck Vintage', 'Want Les Essentiels De La Vie', 'Warm-Me', 'Weber Hodel Feder', |
||
| 212 | 'Werkstatt:München', 'Westward Leaning', 'Windle And Moodie', 'Won Hundred', 'Wood Wood', 'Woolrich', |
||
| 213 | 'Wouters & Hendrix', 'Wouters & Hendrix Gold', 'Wrq.E.D', 'Wuki', 'Wunderkind', 'Wwake', 'Wxyz By Laura Wass', |
||
| 214 | 'Y / Project', 'Y-3', 'Y-3 By Yohji Yamamoto Vintage', 'Yang Li', 'Yannis Sergakis', 'Yazbukey', 'Yeezy', |
||
| 215 | 'Yigal Azrouel', 'YMC', 'Yohji Yamamoto', 'Yohji Yamamoto Vintage', 'Yosuzi', 'Yukié Deuxpoints', |
||
| 216 | 'Yves Saint Laurent Vintage', 'Yves Salomon', 'Yvonne Léon', 'Zac Zac Posen', 'Zadig & Voltaire', 'Zanellato', |
||
| 217 | 'Zanone', 'Zanzan', 'Zayiana', 'Zero + Maria Cornejo', 'Zilla', 'Zimmermann', 'Zoe And Morgan', 'Zoe Karssen', |
||
| 218 | 'Zuhair Murad', |
||
| 219 | ); |
||
| 220 | |||
| 221 | private $faker; |
||
| 222 | |||
| 223 | private $supportedLocales = array( |
||
| 224 | 'en_US', 'en_GB', |
||
| 225 | ); |
||
| 226 | |||
| 227 | protected function configure() |
||
| 242 | |||
| 243 | /** |
||
| 244 | * @param InputInterface $input |
||
| 245 | * @param OutputInterface $output |
||
| 246 | * |
||
| 247 | * @return int|void |
||
| 248 | */ |
||
| 249 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 284 | |||
| 285 | /** |
||
| 286 | * Ask for command arguments |
||
| 287 | * |
||
| 288 | * @param InputInterface $input |
||
| 289 | * @param OutputInterface $output |
||
| 290 | * |
||
| 291 | * @return array |
||
| 292 | */ |
||
| 293 | private function askForArguments(InputInterface $input, OutputInterface $output) |
||
| 353 | |||
| 354 | /** |
||
| 355 | * Create option type |
||
| 356 | * |
||
| 357 | * @param string $type |
||
| 358 | * |
||
| 359 | * @return int|string |
||
| 360 | */ |
||
| 361 | private function createValue($type, $locale) |
||
| 389 | |||
| 390 | /** |
||
| 391 | * Check if an option exist |
||
| 392 | * |
||
| 393 | * @param Mage_Eav_Model_Entity_Attribute $attribute |
||
| 394 | * @param string $arg_value |
||
| 395 | * |
||
| 396 | * @return bool |
||
| 397 | */ |
||
| 398 | private function attributeValueExists(Mage_Eav_Model_Entity_Attribute $attribute, $arg_value) |
||
| 412 | } |
||
| 413 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.