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

ICanBoogie / Inflector / 15253697430

26 May 2025 12:15PM UTC coverage: 78.404% (-16.1%) from 94.475%
15253697430

push

github

olvlvl
Avoid using helpers

Helpers are tested with a separate job

20 of 20 new or added lines in 3 files covered. (100.0%)

36 existing lines in 1 file now uncovered.

167 of 213 relevant lines covered (78.4%)

47.56 hits per line

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

0.0
/lib/helpers.php
1
<?php
2

3
namespace ICanBoogie;
4

5
// Avoid conflicts with ICanBoogie/Common
UNCOV
6
if (!function_exists(__NAMESPACE__ . '\downcase')) {
×
7
    /**
8
     * @see StaticInflector::downcase()
9
     */
10
    function downcase(string $str): string
UNCOV
11
    {
×
12
        return StaticInflector::downcase($str);
×
UNCOV
13
    }
×
UNCOV
14
}
×
15

16
// Avoid conflicts with ICanBoogie/Common
UNCOV
17
if (!function_exists(__NAMESPACE__ . '\upcase')) {
×
18
    /**
19
     * @see StaticInflector::upcase()
20
     */
21
    function upcase(string $str): string
UNCOV
22
    {
×
23
        return StaticInflector::upcase($str);
×
UNCOV
24
    }
×
UNCOV
25
}
×
26

27
// Avoid conflicts with ICanBoogie/Common
UNCOV
28
if (!function_exists(__NAMESPACE__ . '\capitalize')) {
×
29
    /**
30
     * @see StaticInflector::capitalize()
31
     */
32
    function capitalize(string $str, bool $preserve_str_end = false): string
UNCOV
33
    {
×
34
        return StaticInflector::capitalize($str, $preserve_str_end);
×
UNCOV
35
    }
×
UNCOV
36
}
×
37

38
/**
39
 * @see StaticInflector::pluralize()
40
 */
41
function pluralize(string $word, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
42
{
×
UNCOV
43
    return StaticInflector::pluralize($word, $locale);
×
UNCOV
44
}
×
45

46
/**
47
 * @see StaticInflector::singularize()
48
 */
49
function singularize(string $word, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
50
{
×
UNCOV
51
    return StaticInflector::singularize($word, $locale);
×
UNCOV
52
}
×
53

54
/**
55
 * @see StaticInflector::camelize()
56
 */
57
function camelize(
UNCOV
58
    string $str,
×
UNCOV
59
    bool $uppercase_first_letter = false,
×
UNCOV
60
    string $locale = Inflector::DEFAULT_LOCALE
×
UNCOV
61
): string {
×
UNCOV
62
    return StaticInflector::camelize($str, $uppercase_first_letter, $locale);
×
UNCOV
63
}
×
64

65
/**
66
 * @see StaticInflector::underscore()
67
 */
68
function underscore(string $camel_cased_word, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
69
{
×
UNCOV
70
    return StaticInflector::underscore($camel_cased_word, $locale);
×
UNCOV
71
}
×
72

73
/**
74
 * @see StaticInflector::hyphenate()
75
 */
76
function hyphenate(string $str, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
77
{
×
UNCOV
78
    return StaticInflector::hyphenate($str, $locale);
×
UNCOV
79
}
×
80

81
/**
82
 * @see StaticInflector::humanize()
83
 */
84
function humanize(string $lower_case_and_underscored_word, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
85
{
×
UNCOV
86
    return StaticInflector::humanize($lower_case_and_underscored_word, $locale);
×
UNCOV
87
}
×
88

89
/**
90
 * @see StaticInflector::titleize()
91
 */
92
function titleize(string $str, string $locale = Inflector::DEFAULT_LOCALE): string
UNCOV
93
{
×
UNCOV
94
    return StaticInflector::titleize($str, $locale);
×
UNCOV
95
}
×
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