Skip to content

Commit

Permalink
PHPStan errors fixed or added to the baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Jan 22, 2024
1 parent 118fbaf commit 89c8992
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 29 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Progressive Web App for Symfony
===============================

![Build Status](https://github.com/spomky-labs/phpwa/workflows/Coding%20Standards/badge.svg)
![Build Status](https://github.com/spomky-labs/phpwa/workflows/Static%20Analyze/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Coding%20Standards/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Static%20Analyze/badge.svg)

![Build Status](https://github.com/spomky-labs/phpwa/workflows/Unit%20and%20Functional%20Tests/badge.svg)
![Build Status](https://github.com/spomky-labs/phpwa/workflows/Rector%20Checkstyle/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Unit%20and%20Functional%20Tests/badge.svg)
![Build Status](https://github.com/Spomky-Labs/phpwa/workflows/Rector%20Checkstyle/badge.svg)

[![Latest Stable Version](https://poser.pugx.org/spomky-labs/phpwa/v/stable.png)](https://packagist.org/packages/spomky-labs/phpwa)
[![Total Downloads](https://poser.pugx.org/spomky-labs/phpwa/downloads.png)](https://packagist.org/packages/spomky-labs/phpwa)
[![Latest Unstable Version](https://poser.pugx.org/spomky-labs/phpwa/v/unstable.png)](https://packagist.org/packages/spomky-labs/phpwa)
[![License](https://poser.pugx.org/spomky-labs/phpwa/license.png)](https://packagist.org/packages/spomky-labs/phpwa)
[![Latest Stable Version](https://poser.pugx.org/Spomky-Labs/phpwa/v/stable.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![Total Downloads](https://poser.pugx.org/Spomky-Labs/phpwa/downloads.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![Latest Unstable Version](https://poser.pugx.org/Spomky-Labs/phpwa/v/unstable.png)](https://packagist.org/packages/Spomky-Labs/phpwa)
[![License](https://poser.pugx.org/Spomky-Labs/phpwa/license.png)](https://packagist.org/packages/Spomky-Labs/phpwa)

[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/spomky-labs/phpwa/badge)](https://api.securityscorecards.dev/projects/github.com/spomky-labs/phpwa)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/phpwa/badge)](https://api.securityscorecards.dev/projects/github.com/Spomky-Labs/phpwa)

# Scope

This bundle provides the [spomky-labs/phpwa](https://github.com/spomky-labs/phpwa) bundle for Symfony.
This bundle provides the [Spomky-Labs/phpwa](https://github.com/Spomky-Labs/phpwa) bundle for Symfony.
This will help you to generate Progressive Web Apps (PWA) Manifests and assets (icons or screenshots).
Also, it will help you to generate Service Workers based on [Workbox](https://developers.google.com/web/tools/workbox).

Expand All @@ -27,7 +27,7 @@ Please have a look at the [Web app manifests](https://developer.mozilla.org/en-U
Install the bundle with Composer:

```bash
composer require spomky-labs/phpwa
composer require Spomky-Labs/phpwa
```

This project follows the [semantic versioning](http://semver.org/) strictly.
Expand Down Expand Up @@ -205,7 +205,7 @@ It can be served by Asset Mapper.
```yaml
# config/packages/phpwa.yaml
pwa:
serviceworker: 'script/service-worker.js'
serviceworker: 'sw.js' # File located in assets/sw.js
```

The bundle provides a Service Worker based on [Workbox](https://developers.google.com/web/tools/workbox).
Expand Down Expand Up @@ -236,7 +236,7 @@ You can disable this feature by calling the Twig function with `false` as argume

The injection method uses a CDN version of `workbox-window`.
You can install this package with the following command.
The inject code will detect the presence of the package and will use it if available.
The injected code will detect the presence of the package and will use it if available.

```bash
symfony console importmap:require workbox-window
Expand All @@ -246,9 +246,9 @@ See https://developer.chrome.com/docs/workbox/using-workbox-window for more info

### Workbox Precaching

If you use the provided Service Worker, you can enable the Workbox Precaching feature.
It is enabled by default. You can disable it by removing the placeholder in the service worker file.
By default, the placeholder is `//PRECACHING_PLACEHOLDER`.
By default, the Workbox Precaching feature is enabled.
You can disable it by removing the placeholder in the service worker file.
The placeholder is `//PRECACHING_PLACEHOLDER` and can be changed from the bundle configuration.

### Workbox Warm Cache

Expand Down Expand Up @@ -299,9 +299,9 @@ If you really love that project and the work I have done or if you want I priori
# Contributing

Requests for new features, bug fixed and all other ideas to make this project useful are welcome.
The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/spomky-labs/phpwa/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).
The best contribution you could provide is by fixing the [opened issues where help is wanted](https://github.com/Spomky-Labs/phpwa/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).

Please report all issues in [the main repository](https://github.com/spomky-labs/phpwa/issues).
Please report all issues in [the main repository](https://github.com/Spomky-Labs/phpwa/issues).

Please make sure to [follow these best practices](.github/CONTRIBUTING.md).

Expand Down
Loading

0 comments on commit 89c8992

Please sign in to comment.