Skip to content

Commit 1d98c84

Browse files
new commit
1 parent 1331ac3 commit 1d98c84

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Methods/UltimateMethods.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ public static function merge(?array $keys = null, ?array $data = null)
152152
/**
153153
* Get needed data from array
154154
* @param array\keys $keys of needed data
155-
* @param array\data $data param to check from
155+
* @param array $allData param to check from
156156
*
157157
* @return array
158158
*/
159-
public static function onlyData(?array $keys = null, ?array $data = null)
159+
public static function onlyData(?array $keys = null, ?array $allData = null)
160160
{
161161
$data = [];
162162
if(is_array($keys) && is_array($data)){
163163
foreach($keys as $key){
164-
if(in_array($key, array_keys($data))){
165-
$data[$key] = $data[$key];
164+
if(in_array($key, array_keys($allData))){
165+
$data[$key] = $allData[$key];
166166
}
167167
}
168168
return $data;

src/UltimateValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@ public function merge(?array $keys = null, ?array $data = null)
351351
/**
352352
* Get needed data from array
353353
* @param array\keys $keys of needed data
354-
* @param array\data $data param to check from
354+
* @param array $allData param to check from
355355
*
356356
* @return array
357357
*/
358-
public function onlyData(?array $keys = null, ?array $data = null)
358+
public function onlyData(?array $keys = null, ?array $allData = null)
359359
{
360-
return UltimateMethods::onlyData($keys, $data);
360+
return UltimateMethods::onlyData($keys, $allData);
361361
}
362362

363363
/**

0 commit comments

Comments
 (0)