Skip to content

Commit f8e6ae1

Browse files
committed
Changed namespace.
1 parent 4c6dfb8 commit f8e6ae1

16 files changed

+38
-41
lines changed

.scrutinizer.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
build:
2-
tests:
3-
override:
4-
-
5-
command: './bin/phing unit'
6-
coverage:
7-
file: 'test/coverage.xml'
8-
format: 'php-clover'
2+
tests:
3+
override:
4+
- command: './bin/phing unit'
5+
coverage:
6+
file: 'test/coverage.xml'
7+
format: 'php-clover'

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ php:
33
- '7.1'
44
- '7.2'
55
- '7.3'
6-
6+
77
install:
88
- composer self-update
99
- composer install
10-
11-
script:
10+
11+
script:
1212
- ./bin/phing unit
1313

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ float, integer, or string values.
6969

7070
# Manual
7171

72-
The class `SetBased\Abc\Helper\Cast` has the following methods for testing mixed values against primitive data types:
72+
The class `SetBased\Helper\Cast` has the following methods for testing mixed values against primitive data types:
7373

7474
| Method | Null Value | Return Type |
7575
| ---------------- | ------------- | ----------- |
@@ -111,7 +111,7 @@ Code:
111111
<?php
112112
declare(strict_types=1);
113113

114-
use SetBased\Abc\Helper\Cast;
114+
use SetBased\Helper\Cast;
115115

116116
$value = "Ceci n'est pas une pipe.";
117117
if (Cast::isManInt($value))

build.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<exec command="composer update" checkreturn="true" passthru="true"/>
55
</target>
66

7-
<!-- Runs ApiGen -->
8-
<target name="apigen">
9-
<exec command="apigen generate --todo --tree --source src --destination doc" passthru="true"
10-
checkreturn="true"/>
11-
</target>
12-
137
<!-- Runs all unit tests -->
148
<target name="unit">
159
<exec command="bin/phpunit" passthru="true" checkreturn="true"/>

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"safely",
66
"cast"
77
],
8-
"type": "library",
98
"license": "MIT",
109
"require": {
1110
"php": ">=7.1.0"
@@ -16,12 +15,12 @@
1615
},
1716
"autoload": {
1817
"psr-4": {
19-
"SetBased\\Abc\\Helper\\": "src/"
18+
"SetBased\\Helper\\": "src/"
2019
}
2120
},
2221
"autoload-dev": {
2322
"psr-4": {
24-
"SetBased\\Abc\\Helper\\Test\\": "test/"
23+
"SetBased\\Helper\\Test\\": "test/"
2524
}
2625
},
2726
"config": {

src/Cast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace SetBased\Abc\Helper;
4+
namespace SetBased\Helper;
55

66
/**
77
* Utility class for casting safely mixed values to bool, float, int, or string.

src/InvalidCastException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
declare(strict_types=1);
23

3-
namespace SetBased\Abc\Helper;
4+
namespace SetBased\Helper;
45

56
/**
67
* Exception thrown for invalid casting.

test/CastBoolTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace SetBased\Abc\Helper\Test;
4+
namespace SetBased\Helper\Test;
55

66
use PHPUnit\Framework\TestCase;
7-
use SetBased\Abc\Helper\Cast;
8-
use SetBased\Abc\Helper\InvalidCastException;
7+
use SetBased\Helper\Cast;
8+
use SetBased\Helper\InvalidCastException;
99

1010
/**
1111
* Test cases with booleans for Cast.

test/CastFiniteFloatTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace SetBased\Abc\Helper\Test;
4+
namespace SetBased\Helper\Test;
55

66
use PHPUnit\Framework\TestCase;
7-
use SetBased\Abc\Helper\Cast;
8-
use SetBased\Abc\Helper\InvalidCastException;
7+
use SetBased\Helper\Cast;
8+
use SetBased\Helper\InvalidCastException;
99

1010
/**
1111
* Test cases with finite floats for Cast.

test/CastFloatTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace SetBased\Abc\Helper\Test;
4+
namespace SetBased\Helper\Test;
55

66
use PHPUnit\Framework\TestCase;
7-
use SetBased\Abc\Helper\Cast;
8-
use SetBased\Abc\Helper\InvalidCastException;
7+
use SetBased\Helper\Cast;
8+
use SetBased\Helper\InvalidCastException;
99

1010
/**
1111
* Test cases with floats for Cast.

0 commit comments

Comments
 (0)