• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jojo1981 / json-ast-builder / 17578687754

09 Sep 2025 09:48AM UTC coverage: 35.019%. Remained the same
17578687754

push

github

jojo1981
Fix: Make compatible with PHP versions: ^8.0|^8.1|^8.2|^8.3|^8.4. Closes #1
https://github.com/jojo1981/json-ast-builder/issues/1

161 of 407 new or added lines in 17 files covered. (39.56%)

290 existing lines in 25 files now uncovered.

374 of 1068 relevant lines covered (35.02%)

3.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Helper/PlantUmlHelper.php
1
<?php
2
/*
3
 * This file is part of the jojo1981/json-ast-builder package
4
 *
5
 * Copyright (c) 2025 Joost Nijhuis <jnijhuis81@gmail.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed in the root of the source code
9
 */
10
declare(strict_types=1);
11

12
namespace Jojo1981\JsonAstBuilder\Helper;
13

14
use function implode;
15

16
/**
17
 * @package Jojo1981\JsonAstBuilder\Helper
18
 */
19
final class PlantUmlHelper
20
{
21
    /**
22
     * @param string[] $objects
23
     * @param string[] $links
24
     * @return string
25
     */
26
    public static function generateDocument(array $objects, array $links): string
27
    {
NEW
28
        $lines = [];
×
NEW
29
        $lines[] = '@startuml';
×
NEW
30
        $lines[] = '';
×
NEW
31
        $lines[] = 'hide empty members';
×
NEW
32
        $lines[] = '';
×
NEW
33
        $lines[] = 'title';
×
NEW
34
        $lines[] = 'Data objects diagram';
×
NEW
35
        $lines[] = '';
×
NEW
36
        $lines[] = 'end title';
×
NEW
37
        $lines[] = '';
×
NEW
38
        $lines[] = implode(PHP_EOL, $objects);
×
NEW
39
        $lines[] = '';
×
NEW
40
        $lines[] = implode(PHP_EOL, $links);
×
NEW
41
        $lines[] = '@enduml';
×
42

NEW
43
        return implode(PHP_EOL, $lines);
×
44
    }
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc