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

FluidTYPO3 / vhs / 30001290505

23 Jul 2026 10:57AM UTC coverage: 70.309% (-1.7%) from 72.022%
30001290505

push

github

NamelessCoder
[TER] 8.0.0

4819 of 6854 relevant lines covered (70.31%)

6.54 hits per line

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

66.67
/Classes/ViewHelpers/Math/CeilViewHelper.php
1
<?php
2
namespace FluidTYPO3\Vhs\ViewHelpers\Math;
3

4
/*
5
 * This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.md file that was distributed with this source code.
9
 */
10

11
/**
12
 * Math: Ceil
13
 *
14
 * Ceiling on $a which can be either an array-accessible
15
 * value (Iterator+ArrayAccess || array) or a raw numeric
16
 * value.
17
 */
18
class CeilViewHelper extends AbstractSingleMathViewHelper
19
{
20
    /**
21
     * @param mixed $a
22
     * @return integer|array
23
     */
24
    protected static function calculateAction($a, array $arguments = [])
25
    {
26
        if (static::assertIsArrayOrIterator($a)) {
3✔
27
            return array_map('ceil', static::arrayFromArrayOrTraversableOrCSVStatic($a));
×
28
        }
29
        /** @var integer|float $a */
30
        return (int) ceil($a);
3✔
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc