Skip to content

Commit

Permalink
Create semicolons-kudos.yaml to enable Kudos (#11)
Browse files Browse the repository at this point in the history
* Create semicolons-kudos.yaml to enable Kudos

* Update MailingProcess.php

---------

Co-authored-by: AUDUL <[email protected]>
  • Loading branch information
oportier and AUDUL authored Dec 28, 2023
1 parent 8a1f63d commit f7c736f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/semicolons-kudos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: Kudos for Code
on:
push:
branches: ["master"]
workflow_dispatch:

jobs:
kudos:
name: Semicolons Kudos
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: LoremLabs/kudos-for-code-action@latest
with:
search-dir: "."
destination: "artifact"
generate-nomerges: true
generate-validemails: true
generate-limitdepth: 0
generate-fromrepo: true
analyze-repo: false
skip-ids: ""
4 changes: 2 additions & 2 deletions bundle/Core/Mailer/MailingProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public function runParallelProcess(
int $broadcastId,
\Generator $generator,
): void {
/** @var \Symfony\Component\Process\Process[]|null[] */
/** @var Process[]|null[] */
$processes = array_fill(0, $this->getNumberOfCPUCores() - 1, null);
do {
/** @var \Symfony\Component\Process\Process $process */
/** @var Process $process */
foreach ($processes as $key => $process) {
if ($process !== null && $process->isRunning()) {
continue;
Expand Down

0 comments on commit f7c736f

Please sign in to comment.