mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 04:22:40 +00:00
Remove unused variables and statements.
This commit is contained in:
parent
c40d132f81
commit
0cd9a93e9e
12 changed files with 1 additions and 24 deletions
|
@ -266,7 +266,6 @@ class ContainableBehavior extends ModelBehavior {
|
|||
public function containments($Model, $contain, $containments = array(), $throwErrors = null) {
|
||||
$options = array('className', 'joinTable', 'with', 'foreignKey', 'associationForeignKey', 'conditions', 'fields', 'order', 'limit', 'offset', 'unique', 'finderQuery', 'deleteQuery', 'insertQuery');
|
||||
$keep = array();
|
||||
$depth = array();
|
||||
if ($throwErrors === null) {
|
||||
$throwErrors = (empty($this->settings[$Model->alias]) ? true : $this->settings[$Model->alias]['notices']);
|
||||
}
|
||||
|
|
|
@ -274,7 +274,7 @@ class TreeBehavior extends ModelBehavior {
|
|||
} elseif (!$id) {
|
||||
$id = null;
|
||||
}
|
||||
$name = $Model->alias;
|
||||
|
||||
extract($this->settings[$Model->alias]);
|
||||
|
||||
if (!is_null($overrideRecursive)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue