Completed
Push — master ( dd25b7...31bd97 )
by Gilmar
28:58 queued 04:06
created
src/Client/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@
 block discarded – undo
34 34
 
35 35
     protected function renderAuthorization()
36 36
     {
37
-        $list = [];
37
+        $list = [ ];
38 38
 
39
-        foreach (['client_id', 'access_token'] as $key) {
39
+        foreach ([ 'client_id', 'access_token' ] as $key) {
40 40
             $value = $this->getOptions()->get($key);
41 41
             if (empty($value)) {
42 42
                 throw new \InvalidArgumentException('[' . $key . '] ausente!');
43 43
             }
44 44
 
45
-            $list[] = $key . ':' . $value;
45
+            $list[ ] = $key . ':' . $value;
46 46
         }
47 47
 
48 48
         return $list;
Please login to merge, or discard this patch.
src/Console/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
         ],
28 28
         [
29 29
             'key'     => 'env',
30
-            'options' => ['sandbox', 'api'],
30
+            'options' => [ 'sandbox', 'api' ],
31 31
             'default' => 'sandbox',
32 32
             'name'    => 'Version',
33 33
         ],
34 34
         [
35 35
             'key'     => 'sslVersion',
36
-            'options' => ['SecureTransport', 'TLS'],
36
+            'options' => [ 'SecureTransport', 'TLS' ],
37 37
             'default' => 'SecureTransport',
38 38
             'name'    => 'SSL Version',
39 39
         ],
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function factorySdk(array $options)
47 47
     {
48
-        $options['version'] = $options['env'];
48
+        $options[ 'version' ] = $options[ 'env' ];
49 49
 
50 50
         return  Factory::getInstance()->setup($options, $this->factoryLogger());
51 51
     }
52 52
 
53
-    public function appendCommand($name, $description, array $definition = [])
53
+    public function appendCommand($name, $description, array $definition = [ ])
54 54
     {
55 55
         return $this->register($name)
56 56
             ->setDescription($description)
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 class Factory extends FactoryAbstract
20 20
 {
21
-    public function setClient(array $clientOptions = [])
21
+    public function setClient(array $clientOptions = [ ])
22 22
     {
23 23
         $this->client = new Client($clientOptions, $this->logger);
24 24
     }
Please login to merge, or discard this patch.
src/Entity/Templates/Manager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
19 19
     protected $entity = 'Templates';
20 20
 
21 21
     public $maps = [
22
-        'brands'       => ['GET', '/brands'],
23
-        'flavors'      => ['GET', '/flavors'],
24
-        'colors'       => ['GET', '/colors'],
25
-        'sizes'        => ['GET', '/sizes'],
26
-        'departments'  => ['GET', '/bus/{buId}/departments'],
27
-        'productTypes' => ['GET', '/department/{departmentCode}/productType'],
28
-        'attributes'   => ['GET', '/department/{departmentCode}/productType/{productTypeCode}/templates'],
22
+        'brands'       => [ 'GET', '/brands' ],
23
+        'flavors'      => [ 'GET', '/flavors' ],
24
+        'colors'       => [ 'GET', '/colors' ],
25
+        'sizes'        => [ 'GET', '/sizes' ],
26
+        'departments'  => [ 'GET', '/bus/{buId}/departments' ],
27
+        'productTypes' => [ 'GET', '/department/{departmentCode}/productType' ],
28
+        'attributes'   => [ 'GET', '/department/{departmentCode}/productType/{productTypeCode}/templates' ],
29 29
     ];
30 30
 }
Please login to merge, or discard this patch.
src/Entity/Product/Manager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@  discard block
 block discarded – undo
20 20
     protected $entity = 'Product';
21 21
 
22 22
     protected $maps = [
23
-        'save'     => ['POST', '/products'],
24
-        'findById' => ['GET', '/products/{itemId}'],
25
-        'patch'    => ['PATCH', '/products/{itemId}'],
26
-        'update'   => ['PUT', '/products/{itemId}'],
27
-        'fetch'    => ['GET', '/products?page={offset}&size={limit}'],
23
+        'save'     => [ 'POST', '/products' ],
24
+        'findById' => [ 'GET', '/products/{itemId}' ],
25
+        'patch'    => [ 'PATCH', '/products/{itemId}' ],
26
+        'update'   => [ 'PUT', '/products/{itemId}' ],
27
+        'fetch'    => [ 'GET', '/products?page={offset}&size={limit}' ],
28 28
     ];
29 29
 
30 30
     public function save(EntityInterface $product, $route = 'save')
31 31
     {
32 32
         $existent = $product->getPrevious();
33 33
 
34
-        $this->log('INFO', 'save', ['route' => $route, 'existent' => $existent]);
34
+        $this->log('INFO', 'save', [ 'route' => $route, 'existent' => $existent ]);
35 35
 
36 36
         if ($existent) {
37 37
             return $this->update($product, $existent);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     protected function getMap($route, Product $product)
44 44
     {
45
-        return $this->factoryMap($route, ['itemId' => $product->getId()]);
45
+        return $this->factoryMap($route, [ 'itemId' => $product->getId() ]);
46 46
     }
47 47
 
48 48
     public function commit()
Please login to merge, or discard this patch.