Skip to content

Commit 73e10b2

Browse files
committed
Removed package Stringy of project
1 parent f9ee389 commit 73e10b2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"require": {
2020
"php": ">=7.0",
2121
"psr/http-message": "^1.0",
22-
"danielstjules/stringy": "^2.3",
2322
"phpmailer/phpmailer": "^5.2",
2423
"neitanod/forceutf8": "^2.0"
2524
},

src/Data/Validator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Simples\Core\Data\Validators\NumberValidator;
1010
use Simples\Core\Data\Validators\StringValidator;
1111
use Simples\Core\Helper\JSON;
12-
use Stringy\Stringy;
1312

1413
/**
1514
* Class Validator
@@ -75,7 +74,7 @@ public static function rule($criteria, $value): array
7574
*/
7675
public function apply(string $rule, $value, $options): bool
7776
{
78-
$method = (string)Stringy::create("is-{$rule}")->camelize();
77+
$method = camelize("is-{$rule}");
7978
if (method_exists($this, $method)) {
8079
return $this->$method($value, $options);
8180
}

0 commit comments

Comments
 (0)