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

nette / di / 6739035766

02 Nov 2023 10:44PM UTC coverage: 52.037% (-41.8%) from 93.846%
6739035766

push

github

dg
x

1009 of 1939 relevant lines covered (52.04%)

0.52 hits per line

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

40.0
/src/DI/Config/Helpers.php
1
<?php
2

3
/**
4
 * This file is part of the Nette Framework (https://nette.org)
5
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6
 */
7

8
declare(strict_types=1);
9

10
namespace Nette\DI\Config;
11

12
use Nette;
13

14

15
/**
16
 * Configuration helpers.
17
 * @deprecated
18
 */
19
final class Helpers
20
{
21
        use Nette\StaticClass;
22

23
        public const PREVENT_MERGING = '_prevent_merging';
24

25

26
        /** @deprecated */
27
        public static function merge($left, $right)
28
        {
29
                return Nette\Schema\Helpers::merge($left, $right);
×
30
        }
31

32

33
        /** @deprecated */
34
        public static function takeParent(&$data): bool
35
        {
36
                if (is_array($data) && isset($data[self::PREVENT_MERGING])) {
1✔
37
                        unset($data[self::PREVENT_MERGING]);
×
38
                        return true;
×
39
                }
40

41
                return false;
1✔
42
        }
43
}
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

© 2026 Coveralls, Inc