Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../includes/Admin
File: RestControllerSafeList.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace NinjaForms\Includes\Admin;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Configuration of what can be called and extended by NF_AJAX_REST_Controller
[5] Fix | Delete
*/
[6] Fix | Delete
class RestControllerSafeList
[7] Fix | Delete
{
[8] Fix | Delete
[9] Fix | Delete
const ALLOWED_METHOD_CALLS = [
[10] Fix | Delete
'NF_AJAX_Controllers_Form' => [
[11] Fix | Delete
'delete'
[12] Fix | Delete
],
[13] Fix | Delete
'NF_AJAX_REST_Forms' => [
[14] Fix | Delete
'delete'
[15] Fix | Delete
]
[16] Fix | Delete
];
[17] Fix | Delete
[18] Fix | Delete
public static function isClassMethodAllowed(string $fqcn, string $method): bool
[19] Fix | Delete
{
[20] Fix | Delete
$return = false;
[21] Fix | Delete
[22] Fix | Delete
if(isset(self::ALLOWED_METHOD_CALLS[$fqcn])
[23] Fix | Delete
&& in_array($method,self::ALLOWED_METHOD_CALLS[$fqcn])
[24] Fix | Delete
){
[25] Fix | Delete
$return = true;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
return $return;
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function