1- <?php
1+ <?php declare (strict_types= 1 );
22/**
33 * Created by PhpStorm.
44 * User: Inhere
@@ -63,14 +63,14 @@ protected function valueFiltering($value, $filters)
6363 $ args = (array )$ filter ;
6464 $ value = $ this ->callStringCallback ($ key , $ value , ...$ args );
6565
66- // closure
66+ // closure
6767 } elseif (is_object ($ filter ) && method_exists ($ filter , '__invoke ' )) {
6868 $ value = $ filter ($ value );
69- // string, trim, ....
69+ // string, trim, ....
7070 } elseif (is_string ($ filter )) {
7171 $ value = $ this ->callStringCallback ($ filter , $ value );
7272
73- // e.g ['Class', 'method'],
73+ // e.g ['Class', 'method'],
7474 } else {
7575 $ value = Helper::call ($ filter , $ value );
7676 }
@@ -94,21 +94,21 @@ protected function callStringCallback(string $filter, ...$args)
9494 // if $filter is a custom by addFiler()
9595 if ($ callback = $ this ->getFilter ($ filter )) {
9696 $ value = $ callback (...$ args );
97- // if $filter is a custom method of the subclass.
97+ // if $filter is a custom method of the subclass.
9898 } elseif (method_exists ($ this , $ filter . 'Filter ' )) {
9999 $ filter .= 'Filter ' ;
100100 $ value = $ this ->$ filter (...$ args );
101101
102- // if $filter is a custom add callback in the property {@see $_filters}.
102+ // if $filter is a custom add callback in the property {@see $_filters}.
103103 } elseif ($ callback = UserFilters::get ($ filter )) {
104104 $ value = $ callback (...$ args );
105105
106- // if $filter is a custom add callback in the property {@see $_filters}.
106+ // if $filter is a custom add callback in the property {@see $_filters}.
107107 // $filter is a method of the class 'FilterList'
108108 } elseif (method_exists (Filters::class, $ filterName )) {
109109 $ value = Filters::$ filterName (...$ args );
110110
111- // it is function name
111+ // it is function name
112112 } elseif (function_exists ($ filter )) {
113113 $ value = $ filter (...$ args );
114114 } else {
0 commit comments