Skip to content

Commit

Permalink
CTU-40 CTU-82 Resolve notEmpty/notBlank CakePHP validation deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Stout committed Feb 19, 2019
1 parent 5fff372 commit 7c29e10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Model/IcingVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ class IcingVersion extends IcingAppModel {
),
'model' => array(
'notBlank' => array(
'rule' => array('notEmpty'),
'rule' => array('notBlank'),
),
),
'json' => array(
'notBlank' => array(
'rule' => array('notEmpty'),
'rule' => array('notBlank'),
),
),
'is_delete' => array(
Expand Down
4 changes: 2 additions & 2 deletions Model/Throttle.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public function __construct($id = false, $table = null, $ds = null) {
$this->validate = array(
'key' => array(
'notBlank' => array(
'rule' => array('notEmpty'),
'rule' => array('notBlank'),
'required' => true,
'allowEmpty' => false,
'message' => __('Please enter a key', true)
),
),
'expire_epoch' => array(
'notBlank' => array(
'rule' => array('notEmpty'),
'rule' => array('notBlank'),
'required' => true,
'allowEmpty' => false,
'message' => __('Please enter an Expires as an Epoch in the current server timezone', true)
Expand Down

0 comments on commit 7c29e10

Please sign in to comment.