Completed
Push — master ( 9da17b...7475e6 )
by Gilmar
22:57
created
src/Entity/AbstractMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
 
21 21
     protected function normalizeMetas($metas)
22 22
     {
23
-        $data = [];
23
+        $data = [ ];
24 24
 
25 25
         if (is_array($metas)) {
26 26
             foreach ($metas as $meta) {
27
-                $data[$meta['rel']] = str_replace('http://sandbox-catalogo-vs.netshoes.local/mp-catalogo-api/rs', '', $meta['href']);
27
+                $data[ $meta[ 'rel' ] ] = str_replace('http://sandbox-catalogo-vs.netshoes.local/mp-catalogo-api/rs', '', $meta[ 'href' ]);
28 28
             }
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Console/Command/ProductCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
     {
21 21
         $app->appendCommand('product:view', 'Consulta a situação de um produto')
22 22
             ->addArgument('productId', InputArgument::REQUIRED, 'Product ID')
23
-            ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
24
-                $list = $app->processInputParameters([], $input, $output);
23
+            ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) {
24
+                $list = $app->processInputParameters([ ], $input, $output);
25 25
 
26 26
             $p = $app->factorySdk($list)->factoryManager('product')->findById($input->getArgument('productId'));
27 27
 
28
-            $app->displayTableResults($output, [[
28
+            $app->displayTableResults($output, [ [
29 29
                 'Id'           => $p->getProductId(),
30 30
                 'Brand'        => $p->getBrand(),
31 31
                 'Department'   => $p->getDepartment(),
32 32
                 'Product Type' => $p->getProductType(),
33
-            ]]);
33
+            ] ]);
34 34
 
35 35
             $output->writeln('<fg=yellow>Skus</>');
36 36
 
Please login to merge, or discard this patch.
src/Console/Command/TemplatesCommand.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
             'sizes',
26 26
         ] as $templateKey) {
27 27
             $app->appendCommand('templates:' . $templateKey, 'List of ' . $templateKey)
28
-                ->setCode(function (InputInterface $input, OutputInterface $output) use ($app, $templateKey) {
29
-                    $list = $app->processInputParameters([], $input, $output);
28
+                ->setCode(function(InputInterface $input, OutputInterface $output) use ($app, $templateKey) {
29
+                    $list = $app->processInputParameters([ ], $input, $output);
30 30
                     $responseList = $app->factorySdk($list)->factoryManager('templates')->fetchByRoute($templateKey);
31 31
                     $app->displayTableResults($output, $responseList);
32 32
             });
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 
35 35
         $app->appendCommand('templates:departments', 'List of departments')
36 36
             ->addArgument('buId', InputArgument::REQUIRED, 'Business unit id - NS = Netshoes e ZT = Zattini')
37
-            ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
38
-                $list = $app->processInputParameters([], $input, $output);
37
+            ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) {
38
+                $list = $app->processInputParameters([ ], $input, $output);
39 39
                 $responseList = $app->factorySdk($list)->factoryManager('templates')
40 40
                     ->fetchByRoute('departments', 0, 50, [
41 41
                         'buId' => $input->getArgument('buId'),
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 
46 46
         $app->appendCommand('templates:productTypes', 'List of productTypes')
47 47
             ->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento')
48
-            ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
49
-                $list = $app->processInputParameters([], $input, $output);
48
+            ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) {
49
+                $list = $app->processInputParameters([ ], $input, $output);
50 50
                 $responseList = $app->factorySdk($list)->factoryManager('templates')
51 51
                     ->fetchByRoute('productTypes', 0, 50, [
52 52
                         'departmentCode' => $input->getArgument('departmentCode'),
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         $app->appendCommand('templates:attributes', 'List of attributes')
58 58
             ->addArgument('departmentCode', InputArgument::REQUIRED, 'Id do departamento')
59 59
             ->addArgument('productTypeCode', InputArgument::REQUIRED, 'Id do Product Type')
60
-            ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
61
-                $list = $app->processInputParameters([], $input, $output);
60
+            ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) {
61
+                $list = $app->processInputParameters([ ], $input, $output);
62 62
                 $responseList = $app->factorySdk($list)->factoryManager('templates')
63 63
                     ->fetchByRoute('attributes', 0, 50, [
64 64
                         'departmentCode'  => $input->getArgument('departmentCode'),
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 
70 70
         $app->appendCommand('templates:tree', 'Tree of templates')
71 71
             ->addArgument('buId', InputArgument::REQUIRED, 'Business unit id - NS = Netshoes e ZT = Zattini')
72
-            ->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
73
-                $list = $app->processInputParameters([], $input, $output);
72
+            ->setCode(function(InputInterface $input, OutputInterface $output) use ($app) {
73
+                $list = $app->processInputParameters([ ], $input, $output);
74 74
                 $buId = $input->getArgument('buId');
75 75
                 $manager = $app->factorySdk($list)->factoryManager('templates');
76 76
 
Please login to merge, or discard this patch.