Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
dawlib committed May 25, 2021
1 parent 88deb19 commit 5fa8ea0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/Castle/Castle.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ public static function track(Array $attributes)
*/
public static function filter(Array $attributes)
{
$request = new Castle_Request();
$request->send('post', '/filter', $attributes);
$filter = new Castle_Filter($attributes);
$filter->save();
return $filter;
}

/**
Expand All @@ -183,8 +184,9 @@ public static function filter(Array $attributes)
*/
public static function log(Array $attributes)
{
$request = new Castle_Request();
$request->send('post', '/log', $attributes);
$log = new Castle_Log($attributes);
$log->save();
return $log;
}

/**
Expand All @@ -195,7 +197,8 @@ public static function log(Array $attributes)
*/
public static function risk(Array $attributes)
{
$request = new Castle_Request();
$request->send('post', '/risk', $attributes);
$risk = new Castle_Risk($attributes);
$risk->save();
return $risk;
}
}

0 comments on commit 5fa8ea0

Please sign in to comment.