From 85625318b1982361152484eeedd793d95c217acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 28 Aug 2016 00:01:00 +0200 Subject: [PATCH] [core] variable renaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- lib/Bridge.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index 111d9713..c34e5c81 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -291,9 +291,9 @@ abstract class BridgeAbstract implements BridgeInterface { $contexts[]='global'; } foreach($contexts as $context){ - foreach($this->parameters[$context] as $p=>$properties){ + foreach($this->parameters[$context] as $name=>$properties){ if(!isset($properties['type'])){ - $this->parameters[$context][$p]['type']='text'; + $this->parameters[$context][$name]['type']='text'; } if(isset($properties['value'])){ continue; @@ -301,9 +301,9 @@ abstract class BridgeAbstract implements BridgeInterface { switch($properties['type']){ case 'checkbox': if(!isset($properties['defaultValue'])){ - $this->parameters[$context][$p]['value']=false; + $this->parameters[$context][$name]['value']=false; }else{ - $this->parameters[$context][$p]['value']=$properties['defaultValue']; + $this->parameters[$context][$name]['value']=$properties['defaultValue']; } break; }