From 77b42e070b1a574424ede94b14bef0dd52f679e3 Mon Sep 17 00:00:00 2001
From: Spomky <contact@spomky-labs.com>
Date: Tue, 23 Nov 2021 22:36:25 +0100
Subject: [PATCH] Badges and ECS

---
 README.md                         | 9 +++++----
 src/CBORDecoder.php               | 3 +--
 tests/Functional/DecodingTest.php | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index a5561e2..7f7088f 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,11 @@
 CBOR Encder/Decoder for Symfony
 ===============================
 
-[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spomky-labs/cbor-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/spomky-labs/cbor-bundle/?branch=master)
-[![Coverage Status](https://coveralls.io/repos/github/spomky-labs/cbor-bundle/badge.svg?branch=master)](https://coveralls.io/github/spomky-labs/cbor-bundle?branch=master)
+![Build Status](https://github.com/spomky-labs/cbor-bundle/workflows/Coding%20Standards/badge.svg)
+![Build Status](https://github.com/spomky-labs/cbor-bundle/workflows/Static%20Analyze/badge.svg)
 
-[![Build Status](https://travis-ci.org/spomky-labs/cbor-bundle.svg?branch=master)](https://travis-ci.org/spomky-labs/cbor-bundle)
+![Build Status](https://github.com/spomky-labs/cbor-bundle/workflows/Unit%20and%20Functional%20Tests/badge.svg)
+![Build Status](https://github.com/spomky-labs/cbor-bundle/workflows/Rector%20Checkstyle/badge.svg)
 
 [![Latest Stable Version](https://poser.pugx.org/spomky-labs/cbor-bundle/v/stable.png)](https://packagist.org/packages/spomky-labs/cbor-bundle)
 [![Total Downloads](https://poser.pugx.org/spomky-labs/cbor-bundle/downloads.png)](https://packagist.org/packages/spomky-labs/cbor-bundle)
@@ -37,7 +38,7 @@ If you want to load a CBOR encoded data, you just have to use de decoder availab
 
 use SpomkyLabs\CborBundle\CBORDecoder;
 
-// CBOR object (in hex for the example)
+// CBOR object (shall be a binary string; in hex for the example)
 $data = hex2bin('fb3fd5555555555555');
 
 // Load the data
diff --git a/src/CBORDecoder.php b/src/CBORDecoder.php
index 1e69f8e..d129167 100644
--- a/src/CBORDecoder.php
+++ b/src/CBORDecoder.php
@@ -12,8 +12,7 @@ class CBORDecoder
 {
     public function __construct(
         private Decoder $decoder
-    )
-    {
+    ) {
     }
 
     public function decode(string $data): CBORObject
diff --git a/tests/Functional/DecodingTest.php b/tests/Functional/DecodingTest.php
index 59a824a..50f1213 100644
--- a/tests/Functional/DecodingTest.php
+++ b/tests/Functional/DecodingTest.php
@@ -6,9 +6,9 @@
 
 use CBOR\Decoder;
 use CBOR\Normalizable;
-use SpomkyLabs\CborBundle\CBORDecoder;
 use function is_string;
 use RuntimeException;
+use SpomkyLabs\CborBundle\CBORDecoder;
 use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
 
 /**