Skip to content

Commit b6e5433

Browse files
authored
Update badges (#528)
1 parent b6d2a1f commit b6e5433

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
[![Latest stable version](https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
44
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://php.net)
55
[![License](https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg)](LICENSE)
6-
![Repository size](https://github-size-badge.herokuapp.com/kubawerlos/php-cs-fixer-custom-fixers.svg)
7-
[![Last commit](https://img.shields.io/github/last-commit/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/commits)
6+
![Tests](https://img.shields.io/badge/tests-2790-brightgreen.svg)
7+
[![Downloads](https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg)](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers)
88

99
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=main&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)
1010
[![Code coverage](https://img.shields.io/coveralls/github/kubawerlos/php-cs-fixer-custom-fixers/main.svg)](https://coveralls.io/github/kubawerlos/php-cs-fixer-custom-fixers?branch=main)
11-
![Tests](https://img.shields.io/badge/tests-2790-brightgreen.svg)
1211
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/main)](https://stryker-mutator.github.io)
1312
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers/coverage.svg)](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers)
1413

dev-tools/src/Readme/ReadmeCommand.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ private function badges(): string
7272
'LICENSE'
7373
),
7474
$this->badge(
75-
'Repository size',
76-
\sprintf('https://github-size-badge.herokuapp.com/%s.svg', $this->composer()->name)
75+
'Tests',
76+
\sprintf('%s/badge/tests-%d-brightgreen.svg', self::SHIELDS_HOST, $this->numberOfTests())
7777
),
7878
$this->badge(
79-
'Last commit',
80-
\sprintf('%s/github/last-commit/%s.svg', self::SHIELDS_HOST, $this->composer()->name),
81-
\sprintf('https://github.com/%s/commits', $this->composer()->name)
79+
'Downloads',
80+
\sprintf('%s/packagist/dt/%s.svg', self::SHIELDS_HOST, $this->composer()->name),
81+
\sprintf('https://packagist.org/packages/%s', $this->composer()->name)
8282
),
8383
'',
8484
$this->badge(
@@ -91,10 +91,6 @@ private function badges(): string
9191
\sprintf('%s/coveralls/github/%s/main.svg', self::SHIELDS_HOST, $this->composer()->name),
9292
\sprintf('https://coveralls.io/github/%s?branch=main', $this->composer()->name)
9393
),
94-
$this->badge(
95-
'Tests',
96-
\sprintf('%s/badge/tests-%d-brightgreen.svg', self::SHIELDS_HOST, $this->numberOfTests())
97-
),
9894
$this->badge(
9995
'Mutation testing badge',
10096
\sprintf('https://badge.stryker-mutator.io/github.com/%s/main', $this->composer()->name),

0 commit comments

Comments
 (0)