mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Unused variables in Controller removed
This commit is contained in:
parent
cebcd64090
commit
d484d90fe5
3 changed files with 0 additions and 6 deletions
|
@ -308,9 +308,6 @@ class DbAcl extends Object implements AclInterface {
|
|||
return false;
|
||||
}
|
||||
|
||||
$aroNode = $aroPath[0];
|
||||
$acoNode = $acoPath[0];
|
||||
|
||||
if ($action != '*' && !in_array('_' . $action, $permKeys)) {
|
||||
trigger_error(__d('cake_dev', "ACO permissions key %s does not exist in DbAcl::check()", $action), E_USER_NOTICE);
|
||||
return false;
|
||||
|
|
|
@ -565,7 +565,6 @@ class RequestHandlerComponent extends Component {
|
|||
$defaults = array('index' => null, 'charset' => null, 'attachment' => false);
|
||||
$options = $options + $defaults;
|
||||
|
||||
$cType = null;
|
||||
if (strpos($type, '/') === false) {
|
||||
$cType = $this->response->getMimeType($type);
|
||||
if ($cType === false) {
|
||||
|
|
|
@ -732,8 +732,6 @@ class Controller extends Object {
|
|||
* @link http://book.cakephp.org/view/979/set
|
||||
*/
|
||||
public function set($one, $two = null) {
|
||||
$data = array();
|
||||
|
||||
if (is_array($one)) {
|
||||
if (is_array($two)) {
|
||||
$data = array_combine($one, $two);
|
||||
|
|
Loading…
Reference in a new issue