Completed
Push — develop ( 729d24...25c17f )
by Tom
05:15
created
src/N98/Magento/Command/Database/DumpCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
     }
314 314
 
315 315
     /**
316
-     * @param array $execs
316
+     * @param string[] $execs
317 317
      * @param string $fileName
318 318
      * @param InputInterface $input
319 319
      * @param OutputInterface $output
Please login to merge, or discard this patch.
src/N98/Magento/Command/Category/Create/DummyCommand.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
          * LOOP to create categories
50 50
          */
51 51
         for ($i = 0; $i < $_argument['category-number']; $i++) {
52
-            if(!is_null($_argument['category-name-prefix'])) {
52
+            if (!is_null($_argument['category-name-prefix'])) {
53 53
                 $name = $_argument['category-name-prefix'] . " " . $i;
54 54
             }
55 55
             else {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 ->addAttributeToSelect('name')
62 62
                 ->addAttributeToFilter('name', array('eq' => $name));
63 63
             $_size = $collection->getSize();
64
-            if($_size > 0) {
64
+            if ($_size > 0) {
65 65
                 $output->writeln("<comment>CATEGORY: WITH NAME: '" . $name . "' EXISTS! Skip</comment>\r");
66 66
                 $_argument['category-number']++;
67 67
                 continue;
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
             $category->setDisplayMode('PRODUCTS');
77 77
             $category->setIsAnchor(self::DEFAULT_CATEGORY_ANCHOR);
78 78
 
79
-            if(\Mage::getVersion() === "1.5.1.0")
80
-                $category->setStoreId(array(0,$_argument['store-id']));
79
+            if (\Mage::getVersion() === "1.5.1.0")
80
+                $category->setStoreId(array(0, $_argument['store-id']));
81 81
             else
82 82
                 $category->setStoreId($_argument['store-id']);
83 83
             $parentCategory = \Mage::getModel('catalog/category')->load($_category_root_id);
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
                 $category->setDisplayMode('PRODUCTS');
99 99
                 $category->setIsAnchor(self::DEFAULT_CATEGORY_ANCHOR);
100 100
 
101
-                if(\Mage::getVersion() === "1.5.1.0")
102
-                    $category->setStoreId(array(0,$_argument['store-id']));
101
+                if (\Mage::getVersion() === "1.5.1.0")
102
+                    $category->setStoreId(array(0, $_argument['store-id']));
103 103
                 else
104 104
                     $category->setStoreId($_argument['store-id']);
105 105
                 $parentCategory = \Mage::getModel('catalog/category')->load($_parent_id);
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
         $_argument = array();
130 130
 
131 131
         // STORE ID
132
-        if(is_null($input->getArgument('store-id'))) {
132
+        if (is_null($input->getArgument('store-id'))) {
133 133
             $store_id = \Mage::getModel('core/store')->getCollection()
134 134
                 ->addFieldToSelect('*')
135 135
                 ->addFieldToFilter('store_id', array('gt' => 0))
136
-                ->setOrder('store_id', 'ASC');;
136
+                ->setOrder('store_id', 'ASC'); ;
137 137
             $_store_ids = array();
138 138
 
139 139
             foreach ($store_id as $item) {
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
         $_argument['store-id'] = $input->getArgument('store-id');
154 154
 
155 155
         // NUMBER OF CATEGORIES
156
-        if(is_null($input->getArgument('category-number'))) {
156
+        if (is_null($input->getArgument('category-number'))) {
157 157
             $question = new Question("Please enter the number of categories to create (default 1): ", 1);
158 158
             $question->setValidator(function ($answer) {
159
-                $answer = (int)($answer);
160
-                if(!is_int($answer) || $answer <= 0) {
159
+                $answer = (int) ($answer);
160
+                if (!is_int($answer) || $answer <= 0) {
161 161
                     throw new \RuntimeException(
162 162
                         'Please enter an integer value or > 0'
163 163
                     );
@@ -170,11 +170,11 @@  discard block
 block discarded – undo
170 170
         $_argument['category-number'] = $input->getArgument('category-number');
171 171
 
172 172
         // NUMBER OF CHILDREN CATEGORIES
173
-        if(is_null($input->getArgument('children-categories-number'))) {
173
+        if (is_null($input->getArgument('children-categories-number'))) {
174 174
             $question = new Question("Number of children for each category created (default: 0 - use '-1' for random from 0 to 5): ", 0);
175 175
             $question->setValidator(function ($answer) {
176
-                $answer = (int)($answer);
177
-                if(!is_int($answer) || $answer < -1) {
176
+                $answer = (int) ($answer);
177
+                if (!is_int($answer) || $answer < -1) {
178 178
                     throw new \RuntimeException(
179 179
                         "Please enter an integer value or >= -1"
180 180
                     );
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             });
184 184
             $input->setArgument('children-categories-number', $helper->ask($input, $output, $question));
185 185
         }
186
-        if($input->getArgument('children-categories-number') == -1) {
186
+        if ($input->getArgument('children-categories-number') == -1) {
187 187
             $input->setArgument('children-categories-number', rand(0, 5));
188 188
         }
189 189
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $_argument['children-categories-number'] = $input->getArgument('children-categories-number');
192 192
 
193 193
         // CATEGORY NAME PREFIX
194
-        if(is_null($input->getArgument('category-name-prefix'))) {
194
+        if (is_null($input->getArgument('category-name-prefix'))) {
195 195
             $question = new Question("Please enter the category name prefix (default '" . self::DEFAULT_CATEGORY_NAME . "'): ", self::DEFAULT_CATEGORY_NAME);
196 196
             $input->setArgument('category-name-prefix', $helper->ask($input, $output, $question));
197 197
         }
Please login to merge, or discard this patch.
Braces   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
         for ($i = 0; $i < $_argument['category-number']; $i++) {
52 52
             if(!is_null($_argument['category-name-prefix'])) {
53 53
                 $name = $_argument['category-name-prefix'] . " " . $i;
54
-            }
55
-            else {
54
+            } else {
56 55
                 $name = self::DEFAULT_CATEGORY_NAME . " " . $i;
57 56
             }
58 57
 
@@ -76,10 +75,11 @@  discard block
 block discarded – undo
76 75
             $category->setDisplayMode('PRODUCTS');
77 76
             $category->setIsAnchor(self::DEFAULT_CATEGORY_ANCHOR);
78 77
 
79
-            if(\Mage::getVersion() === "1.5.1.0")
80
-                $category->setStoreId(array(0,$_argument['store-id']));
81
-            else
82
-                $category->setStoreId($_argument['store-id']);
78
+            if(\Mage::getVersion() === "1.5.1.0") {
79
+                            $category->setStoreId(array(0,$_argument['store-id']));
80
+            } else {
81
+                            $category->setStoreId($_argument['store-id']);
82
+            }
83 83
             $parentCategory = \Mage::getModel('catalog/category')->load($_category_root_id);
84 84
             $category->setPath($parentCategory->getPath());
85 85
 
@@ -98,10 +98,11 @@  discard block
 block discarded – undo
98 98
                 $category->setDisplayMode('PRODUCTS');
99 99
                 $category->setIsAnchor(self::DEFAULT_CATEGORY_ANCHOR);
100 100
 
101
-                if(\Mage::getVersion() === "1.5.1.0")
102
-                    $category->setStoreId(array(0,$_argument['store-id']));
103
-                else
104
-                    $category->setStoreId($_argument['store-id']);
101
+                if(\Mage::getVersion() === "1.5.1.0") {
102
+                                    $category->setStoreId(array(0,$_argument['store-id']));
103
+                } else {
104
+                                    $category->setStoreId($_argument['store-id']);
105
+                }
105 106
                 $parentCategory = \Mage::getModel('catalog/category')->load($_parent_id);
106 107
                 $category->setPath($parentCategory->getPath());
107 108
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Eav/Attribute/Create/DummyCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         'Atm Anthony Thomas Melillo', 'Aurelia Probiotic Skincare', 'Aurelie Bidermann', 'Ava Adore', 'Avant Toi',
40 40
         'Avelon', 'Awake', 'B May', 'Badgley Mischka', 'Baja East', 'Bakel', 'Balenciaga Eyewear', 'Balenciaga Vintage',
41 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',
42
+        'Bark', 'Barn\'s', 'Barrie', 'Bassike', 'Bata', 'Bazar Deluxe', 'Bea Bongiasca', 'Beau Souci', 'Becca',
43 43
         'Beek..', 'Bella Freud', 'Belstaff', 'Bernhard Willhelm', 'Beth Orduna', 'Bhindi Jewelers', 'Bianca Spender',
44 44
         'Biba Vintage', 'Bibi Van Der Velden', 'Bintthani', 'Bionda Castana', 'Birkenstock', 'Bjorg', 'Blancha',
45 45
         'Blk Dnm', 'Blugirl', 'Blumarine', 'Boboutic', 'Borbonese', 'Bottega Veneta Eyewear', 'Boutique Moschino',
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         'Gcds', 'Gedebe', 'Gemco', 'Geoffrey B. Small', 'Getting Back To Square One', 'Giada Benincasa', 'Giamba',
87 87
         'Giambattista Valli', 'Gianfranco Ferre Vintage', 'Gianluca Capannolo', 'Gianvito Rossi', 'Gig',
88 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',
89
+        'Giorgio Brato', 'Gisele For Eshvi', 'Giuliana Romanno', 'Giuseppe Zanotti Design', 'Givenchy',
90 90
         'Givenchy Vintage', 'Gold And Wood', 'Golden Goose Deluxe Brand', 'Goldfaden Md', 'Goldsign',
91 91
         'Good For Nothing Emb', 'Goti', 'Goyard Vintage', 'Greg Lauren', 'Grenson', 'Greta Constantine', 'Grey Ant',
92 92
         'Grey Jason Wu', 'G-Star', 'Gucci Eyewear', 'Guidi', 'Guild Prime', 'Guy Laroche Vintage', 'Hache',
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         'Isabel Benenato', 'Isabel Marant', 'Isabel Marant Étoile', 'Isabel Marant For Oliver Peoples', 'Isolda',
103 103
         'Issey Miyake', 'Issey Miyake Cauliflower', 'Issey Miyake Men', 'Issey Miyake Vintage', 'Italia Independent',
104 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',
105
+        'Jacques Marie Mage', 'Jacquie Aiche', 'Jagga', 'James Perse', 'James Read', 'Jamin Puech', 'Jane Bowler',
106 106
         'Janis Savitt', 'Japsis Jewellery', 'Jason Wu', 'Jay Ahr', 'Jc De Castelbajac Vintage',
107 107
         'Jean Louis Scherrer Vintage', 'Jean Paul Gaultier Vintage', 'Jean-François Mimilla', 'Jean-Michel Cazabat',
108 108
         'Jeffrey Campbell', 'Jenni Kayne', 'Jeremy Deller', 'Jeremy Scott', 'Jérôme Dreyfuss', 'Jessie Harris',
@@ -136,20 +136,20 @@  discard block
 block discarded – undo
136 136
         'Marchesa', 'Marchesa Notte', 'Marco De Vincenzo', 'Maria Black', 'Maria Lucia Hohan', 'Maria Teresa Sottile',
137 137
         'Marie Helene De Taillac', 'Mark Cross', 'Markus Lupfer', 'Marni', 'Marsèll', 'Marshall', 'Martha Medeiros',
138 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',
139
+        'Marysia', 'Masnada', 'Massimo Alba', 'Master & Dynamic', 'Masunaga', 'Matar', 'Mathilde Danglade', 'Maticevski',
140 140
         'Matsuda', 'Matthew Darbyshire', 'Matthew Williamson', 'Mawi', 'Max Mara', 'Max Mara Studio', 'Max Tan',
141 141
         'Maxime Llorens', 'Maxwell Snow', 'MCM', 'Mcm Vintage', 'McQ Alexander McQueen', 'Me&Mr.Gentleman',
142 142
         'Melissa + Jeremy Scott', 'Melissa Joy Manning', 'Melissa Odabash', 'Mes Demoiselles', 'Miahatami', 'Miansai',
143 143
         'Michael Kors', 'Michael Michael Kors', 'Michael Schmidt', 'Michel Vivien', 'Micol Ragni', 'Mih Jeans',
144 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',
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 147
         'Monies', 'Monique Lhuillier', 'Monocle Eyewear', 'Monreal London', 'Moo Piyasombatkul', 'Moohong',
148 148
         'Moratorium', 'Moreau', 'Moschino', 'Moschino Vintage', 'Mother', 'Mother Of Pearl', 'Mou', 'Movitra',
149 149
         'Mr & Mrs Italy', 'MSGM', 'Mua Mua', 'Mugler', 'Murmur', 'Musée', 'Muubaa', 'Muveil', 'Mykita',
150 150
         'Myriam Schaefer', 'Myswear', 'N.Peal', 'Nafsika Skourti', 'Narciso Rodriguez', 'Nasir Mazhar',
151 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',
152
+        'Neuw', 'Nevermind', 'New Balance', 'Newbark', 'Nicholas Kirkwood', 'Nicole Miller', 'Nicopanda',
153 153
         'Night Market', 'Nike', 'Nikos Koulis', 'Nili Lotan', 'Nina Ricci', 'Nina Ricci Vintage', 'Nixon', 'Niza Huang',
154 154
         'Nº21', 'Nobody Denim', 'Nomia', 'Noor Fares', 'Noritamy', 'Norma Kamali', 'Norse Projects', 'NSF', 'Nuface',
155 155
         'O&M', 'Oamc', 'Obey', 'Occulter', 'Odeeh', 'Odeur', 'Of Rare Origin', 'Officine Creative', 'Off-White',
Please login to merge, or discard this patch.