Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created
modules/ModuleBuilder/views/view.displaydeploy.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -41,29 +41,29 @@
 block discarded – undo
41 41
 
42 42
 class ViewDisplaydeploy extends SugarView 
43 43
 {
44
-	function ViewDisplaydeploy()
45
-	{
46
-		$smarty = new Sugar_Smarty();
47
- 		$smarty->assign('package', $_REQUEST['name']);
48
-		$smarty->assign('message', $GLOBALS['mod_strings']['LBL_DEPLOY_IN_PROGRESS']);
49
-		$ajax = new AjaxCompose();
50
-		$ajax->addCrumb($GLOBALS['mod_strings']['LBL_MODULEBUILDER'], 'ModuleBuilder.main("mb")');
51
-		$ajax->addCrumb($_REQUEST['name'],'ModuleBuilder.getContent("module=ModuleBuilder&action=package&package='.$_REQUEST['name'].'")');
52
-		$ajax->addCrumb(translate('LBL_SECTION_DEPLOY', 'ModuleBuilder'), '');
53
-		$ajax->addSection('center', translate('LBL_SECTION_DEPLOY', 'ModuleBuilder'), $smarty->fetch('modules/ModuleBuilder/tpls/MBPackage/deploy.tpl'));
54
-		echo $ajax->getJavascript();
55
-	}
44
+    function ViewDisplaydeploy()
45
+    {
46
+        $smarty = new Sugar_Smarty();
47
+            $smarty->assign('package', $_REQUEST['name']);
48
+        $smarty->assign('message', $GLOBALS['mod_strings']['LBL_DEPLOY_IN_PROGRESS']);
49
+        $ajax = new AjaxCompose();
50
+        $ajax->addCrumb($GLOBALS['mod_strings']['LBL_MODULEBUILDER'], 'ModuleBuilder.main("mb")');
51
+        $ajax->addCrumb($_REQUEST['name'],'ModuleBuilder.getContent("module=ModuleBuilder&action=package&package='.$_REQUEST['name'].'")');
52
+        $ajax->addCrumb(translate('LBL_SECTION_DEPLOY', 'ModuleBuilder'), '');
53
+        $ajax->addSection('center', translate('LBL_SECTION_DEPLOY', 'ModuleBuilder'), $smarty->fetch('modules/ModuleBuilder/tpls/MBPackage/deploy.tpl'));
54
+        echo $ajax->getJavascript();
55
+    }
56 56
 	
57
-	/**
58
-	 * @see SugarView::_getModuleTitleParams()
59
-	 */
60
-	protected function _getModuleTitleParams($browserTitle = false)
61
-	{
62
-	    global $mod_strings;
57
+    /**
58
+     * @see SugarView::_getModuleTitleParams()
59
+     */
60
+    protected function _getModuleTitleParams($browserTitle = false)
61
+    {
62
+        global $mod_strings;
63 63
 	    
64
-    	return array(
65
-    	   translate('LBL_MODULE_NAME','Administration'),
66
-    	   ModuleBuilderController::getModuleTitle(),
67
-    	   );
64
+        return array(
65
+            translate('LBL_MODULE_NAME','Administration'),
66
+            ModuleBuilderController::getModuleTitle(),
67
+            );
68 68
     }
69 69
 }
Please login to merge, or discard this patch.
modules/ModuleBuilder/views/view.deletepackage.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,20 +42,20 @@  discard block
 block discarded – undo
42 42
 
43 43
 class Viewdeletepackage extends SugarView
44 44
 {
45
- 	/**
46
-	 * @see SugarView::_getModuleTitleParams()
47
-	 */
48
-	protected function _getModuleTitleParams($browserTitle = false)
49
-	{
50
-	    global $mod_strings;
45
+        /**
46
+         * @see SugarView::_getModuleTitleParams()
47
+         */
48
+    protected function _getModuleTitleParams($browserTitle = false)
49
+    {
50
+        global $mod_strings;
51 51
 	    
52
-    	return array(
53
-    	   translate('LBL_MODULE_NAME','Administration'),
54
-    	   ModuleBuilderController::getModuleTitle(),
55
-    	   );
52
+        return array(
53
+            translate('LBL_MODULE_NAME','Administration'),
54
+            ModuleBuilderController::getModuleTitle(),
55
+            );
56 56
     }
57 57
 
58
-	function display()
58
+    function display()
59 59
     {
60 60
         global $mod_strings;
61 61
         
@@ -63,5 +63,5 @@  discard block
 block discarded – undo
63 63
         $ajax->addSection('center', $mod_strings['LBL_PACKAGE_DELETED'], 
64 64
             str_replace('[[package]]',$_REQUEST['package'],$mod_strings['LBL_PACKAGE_WAS_DELETED']));
65 65
         echo $ajax->getJavascript();
66
- 	}
66
+        }
67 67
 }
68 68
\ No newline at end of file
Please login to merge, or discard this patch.
modules/ModuleBuilder/views/view.home.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -40,51 +40,51 @@
 block discarded – undo
40 40
 require_once('modules/ModuleBuilder/MB/AjaxCompose.php');
41 41
 class ViewHome extends SugarView
42 42
 {
43
-	/**
44
-	 * @see SugarView::_getModuleTitleParams()
45
-	 */
46
-	protected function _getModuleTitleParams($browserTitle = false)
47
-	{
48
-	    global $mod_strings;
43
+    /**
44
+     * @see SugarView::_getModuleTitleParams()
45
+     */
46
+    protected function _getModuleTitleParams($browserTitle = false)
47
+    {
48
+        global $mod_strings;
49 49
 	    
50
-    	return array(
51
-    	   translate('LBL_MODULE_NAME','Administration'),
52
-    	   ModuleBuilderController::getModuleTitle(),
53
-    	   );
50
+        return array(
51
+            translate('LBL_MODULE_NAME','Administration'),
52
+            ModuleBuilderController::getModuleTitle(),
53
+            );
54 54
     }
55 55
 
56
-	function display()
57
-	{
58
-		global $current_user;
59
-		global $mod_strings;
60
-		$smarty = new Sugar_Smarty();
61
-		$smarty->assign('title' , $mod_strings['LBL_DEVELOPER_TOOLS']);
62
-		$smarty->assign('question', $mod_strings['LBL_QUESTION_EDITOR']);
63
-		$smarty->assign('defaultHelp', 'mainHelp');
64
-		$this->generateHomeButtons();
65
-		$smarty->assign('buttons', $this->buttons);
66
-		$assistant=array('group'=>'main', 'key'=>'welcome');
67
-		$smarty->assign('assistant',$assistant);
68
-		//initialize Assistant's display property.
69
-		$userPref = $current_user->getPreference('mb_assist', 'Assistant');
70
-		if(!$userPref) $userPref="na";
71
-		$smarty->assign('userPref',$userPref);
72
-		$ajax = new AjaxCompose();
73
-		$ajax->addSection('center', $mod_strings['LBL_HOME'],$smarty->fetch('modules/ModuleBuilder/tpls/wizard.tpl'));
74
-		echo $ajax->getJavascript();
75
-	}
56
+    function display()
57
+    {
58
+        global $current_user;
59
+        global $mod_strings;
60
+        $smarty = new Sugar_Smarty();
61
+        $smarty->assign('title' , $mod_strings['LBL_DEVELOPER_TOOLS']);
62
+        $smarty->assign('question', $mod_strings['LBL_QUESTION_EDITOR']);
63
+        $smarty->assign('defaultHelp', 'mainHelp');
64
+        $this->generateHomeButtons();
65
+        $smarty->assign('buttons', $this->buttons);
66
+        $assistant=array('group'=>'main', 'key'=>'welcome');
67
+        $smarty->assign('assistant',$assistant);
68
+        //initialize Assistant's display property.
69
+        $userPref = $current_user->getPreference('mb_assist', 'Assistant');
70
+        if(!$userPref) $userPref="na";
71
+        $smarty->assign('userPref',$userPref);
72
+        $ajax = new AjaxCompose();
73
+        $ajax->addSection('center', $mod_strings['LBL_HOME'],$smarty->fetch('modules/ModuleBuilder/tpls/wizard.tpl'));
74
+        echo $ajax->getJavascript();
75
+    }
76 76
 
77 77
 
78
-	function generateHomeButtons() 
79
-	{
80
-	    global $current_user;
78
+    function generateHomeButtons() 
79
+    {
80
+        global $current_user;
81 81
         if(displayStudioForCurrentUser() == true) {
82
-		//$this->buttons['Application'] = array ('action' => '', 'imageTitle' => 'Application', 'size' => '128', 'help'=>'appBtn');
83
-		$this->buttons[$GLOBALS['mod_strings']['LBL_STUDIO']] = array ('action' => 'javascript:ModuleBuilder.main("studio")', 'imageTitle' => 'Studio', 'size' => '128', 'help'=>'studioBtn');
82
+        //$this->buttons['Application'] = array ('action' => '', 'imageTitle' => 'Application', 'size' => '128', 'help'=>'appBtn');
83
+        $this->buttons[$GLOBALS['mod_strings']['LBL_STUDIO']] = array ('action' => 'javascript:ModuleBuilder.main("studio")', 'imageTitle' => 'Studio', 'size' => '128', 'help'=>'studioBtn');
84 84
         }
85 85
         if(is_admin($current_user)) {
86
-		$this->buttons[$GLOBALS['mod_strings']['LBL_MODULEBUILDER']] = array ('action' => 'javascript:ModuleBuilder.main("mb")', 'imageTitle' => 'ModuleBuilder', 'size' => '128', 'help'=>'mbBtn');
86
+        $this->buttons[$GLOBALS['mod_strings']['LBL_MODULEBUILDER']] = array ('action' => 'javascript:ModuleBuilder.main("mb")', 'imageTitle' => 'ModuleBuilder', 'size' => '128', 'help'=>'mbBtn');
87 87
         }
88
-		$this->buttons[$GLOBALS['mod_strings']['LBL_DROPDOWNEDITOR']] = array ('action' => 'javascript:ModuleBuilder.main("dropdowns")', 'imageTitle' => $GLOBALS['mod_strings']['LBL_HOME_EDIT_DROPDOWNS'], 'imageName' => 'DropDownEditor', 'size' => '128', 'help'=>'dropDownEditorBtn');
89
-	}
88
+        $this->buttons[$GLOBALS['mod_strings']['LBL_DROPDOWNEDITOR']] = array ('action' => 'javascript:ModuleBuilder.main("dropdowns")', 'imageTitle' => $GLOBALS['mod_strings']['LBL_HOME_EDIT_DROPDOWNS'], 'imageName' => 'DropDownEditor', 'size' => '128', 'help'=>'dropDownEditorBtn');
89
+    }
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/StandardField.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
 class StandardField extends DynamicField
46 46
 {
47
-	var $custom_def = array();
48
-	var $base_def = array();
49
-	var $baseField;
47
+    var $custom_def = array();
48
+    var $base_def = array();
49
+    var $baseField;
50 50
 	
51 51
 
52 52
     function __construct($module = '') {
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
     }
55 55
     
56 56
     protected function loadCustomDef($field){
57
-    	global $beanList;
58
-    	if (!empty($beanList[$this->module]) && is_file("custom/Extension/modules/{$this->module}/Ext/Vardefs/sugarfield_$field.php"))
59
-    	{
57
+        global $beanList;
58
+        if (!empty($beanList[$this->module]) && is_file("custom/Extension/modules/{$this->module}/Ext/Vardefs/sugarfield_$field.php"))
59
+        {
60 60
             $bean_name = get_valid_bean_name($this->module);
61 61
             $dictionary = array($bean_name => array("fields" => array($field => array())));
62 62
             include("$this->base_path/sugarfield_$field.php");
63 63
             if (!empty($dictionary[$bean_name]) && isset($dictionary[$bean_name]["fields"][$field]))
64 64
                 $this->custom_def = $dictionary[$bean_name]["fields"][$field];
65
-    	}
65
+        }
66 66
     }
67 67
 
68 68
     protected function loadBaseDef($field){
@@ -118,24 +118,24 @@  discard block
 block discarded – undo
118 118
         $this->baseField = get_widget ( $field->type) ;
119 119
         foreach ($field->vardef_map as $property => $fmd_col){
120 120
            
121
-        	if ($property == "action" || $property == "label_value" || $property == "label"
122
-            	|| ((substr($property, 0,3) == 'ext' && strlen($property) == 4))
121
+            if ($property == "action" || $property == "label_value" || $property == "label"
122
+                || ((substr($property, 0,3) == 'ext' && strlen($property) == 4))
123 123
             ) 
124
-            	continue;
124
+                continue;
125 125
        	 		
126 126
             // Bug 37043 - Avoid writing out vardef defintions that are the default value.
127 127
             if (isset($newDef[$property]) &&
128
-            	((!isset($currdef[$property]) && !$this->isDefaultValue($property,$newDef[$property], $this->baseField))
129
-            		|| (isset($currdef[$property]) && $currdef[$property] != $newDef[$property])
130
-            	)
128
+                ((!isset($currdef[$property]) && !$this->isDefaultValue($property,$newDef[$property], $this->baseField))
129
+                    || (isset($currdef[$property]) && $currdef[$property] != $newDef[$property])
130
+                )
131 131
             ){
132
-            	$this->custom_def[$property] =
132
+                $this->custom_def[$property] =
133 133
                     is_string($newDef[$property]) ? htmlspecialchars_decode($newDef[$property], ENT_QUOTES) : $newDef[$property];
134 134
             }
135 135
             
136 136
             //Remove any orphaned entries
137 137
             if (isset($this->custom_def[$property]) && !isset($newDef[$property]))
138
-            	unset($this->custom_def[$property]);
138
+                unset($this->custom_def[$property]);
139 139
 
140 140
             //Handle overrides of out of the box definitions with empty
141 141
             if (!empty($this->base_def[$property]) && !isset($newDef[$property]))
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         }
154 154
         
155 155
         if (isset($this->custom_def["duplicate_merge_dom_value"]) && !isset($this->custom_def["duplicate_merge"]))
156
-        	unset($this->custom_def["duplicate_merge_dom_value"]);
156
+            unset($this->custom_def["duplicate_merge_dom_value"]);
157 157
         
158 158
         $this->writeVardefExtension($bean_name, $field, $this->custom_def);
159 159
     }
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/parser.searchfields.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 class ParserSearchFields extends ModuleBuilderParser
46 46
 {
47 47
 
48
-	var $searchFields;
49
-	var $packageKey; 
48
+    var $searchFields;
49
+    var $packageKey; 
50 50
 	
51 51
     function ParserSearchFields ($moduleName, $packageName='')
52 52
     {
@@ -63,36 +63,36 @@  discard block
 block discarded – undo
63 63
     
64 64
     function addSearchField($name, $searchField)
65 65
     {
66
-    	if(empty($name) || empty($searchField) || !is_array($searchField))
67
-    	{
68
-    		return;
69
-    	}
66
+        if(empty($name) || empty($searchField) || !is_array($searchField))
67
+        {
68
+            return;
69
+        }
70 70
     	
71
-    	$key = isset($this->packageKey) ? $this->packageKey . '_' . $this->moduleName : $this->moduleName;
71
+        $key = isset($this->packageKey) ? $this->packageKey . '_' . $this->moduleName : $this->moduleName;
72 72
         $this->searchFields[$key][$name] = $searchField;
73 73
     }
74 74
     
75 75
     function removeSearchField($name) 
76 76
     {
77 77
 
78
-    	$key = isset($this->packageKey) ? $this->packageKey . '_' . $this->moduleName : $this->moduleName;
78
+        $key = isset($this->packageKey) ? $this->packageKey . '_' . $this->moduleName : $this->moduleName;
79 79
 
80
-    	if(isset($this->searchFields[$key][$name]))
81
-    	{
82
-    		unset($this->searchFields[$key][$name]);
83
-    	}
80
+        if(isset($this->searchFields[$key][$name]))
81
+        {
82
+            unset($this->searchFields[$key][$name]);
83
+        }
84 84
     }
85 85
     
86 86
     function getSearchFields()
87 87
     {
88
-    	$searchFields = array();
88
+        $searchFields = array();
89 89
         if (!empty($this->packageName) && file_exists("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php")) //we are in Module builder
90 90
         {
91
-			include("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php");      	        	
91
+            include("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php");      	        	
92 92
         } else if(file_exists("custom/modules/{$this->moduleName}/metadata/SearchFields.php")) {
93
-			include("custom/modules/{$this->moduleName}/metadata/SearchFields.php");      	        	
93
+            include("custom/modules/{$this->moduleName}/metadata/SearchFields.php");      	        	
94 94
         } else if(file_exists("modules/{$this->moduleName}/metadata/SearchFields.php")) {
95
-			include("modules/{$this->moduleName}/metadata/SearchFields.php");      	        	        	
95
+            include("modules/{$this->moduleName}/metadata/SearchFields.php");      	        	        	
96 96
         }
97 97
         
98 98
         return $searchFields;
@@ -102,19 +102,19 @@  discard block
 block discarded – undo
102 102
     {
103 103
         if (!empty($this->packageName)) //we are in Module builder
104 104
         {
105
-			$header = file_get_contents('modules/ModuleBuilder/MB/header.php');
105
+            $header = file_get_contents('modules/ModuleBuilder/MB/header.php');
106 106
             if(!file_exists("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php"))
107 107
             {
108
-               mkdir_recursive("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata");
108
+                mkdir_recursive("custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata");
109 109
             }
110
-			write_array_to_file("searchFields['{$this->packageKey}_{$this->moduleName}']", $searchFields["{$this->packageKey}_{$this->moduleName}"], "custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php", 'w', $header);                	        	
110
+            write_array_to_file("searchFields['{$this->packageKey}_{$this->moduleName}']", $searchFields["{$this->packageKey}_{$this->moduleName}"], "custom/modulebuilder/packages/{$this->packageName}/modules/{$this->moduleName}/metadata/SearchFields.php", 'w', $header);                	        	
111 111
         } else {
112
-			$header = file_get_contents('modules/ModuleBuilder/MB/header.php');
112
+            $header = file_get_contents('modules/ModuleBuilder/MB/header.php');
113 113
             if(!file_exists("custom/modules/{$this->moduleName}/metadata/SearchFields.php"))
114 114
             {
115
-               mkdir_recursive("custom/modules/{$this->moduleName}/metadata");
115
+                mkdir_recursive("custom/modules/{$this->moduleName}/metadata");
116 116
             }			
117
-			write_array_to_file("searchFields['{$this->moduleName}']", $searchFields[$this->moduleName], "custom/modules/{$this->moduleName}/metadata/SearchFields.php", 'w', $header);                	        	
117
+            write_array_to_file("searchFields['{$this->moduleName}']", $searchFields[$this->moduleName], "custom/modules/{$this->moduleName}/metadata/SearchFields.php", 'w', $header);                	        	
118 118
         }
119 119
         $this->searchFields = $searchFields;
120 120
     }
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/AbstractRelationship.php 1 patch
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public static $definitionKeys = array ( 
60 60
         // atttributes of this relationship - here in the definition so they are preserved across saves and loads
61 61
         'for_activities',
62
-    	'is_custom',
62
+        'is_custom',
63 63
         'from_studio',
64 64
         'readonly' , // a readonly relationship cannot be Built by subclasses of AbstractRelationships
65 65
         'deleted' , // a deleted relationship will not be built, and if it had been built previously the built relationship will be removed
@@ -221,48 +221,48 @@  discard block
 block discarded – undo
221 221
         $labelDefinitions = array ( ) ;
222 222
         if (!$this->relationship_only)
223 223
         {
224
-        	if(!$this->is_custom && $update && file_exists("modules/{$this->rhs_module}/metadata/subpaneldefs.php")){
225
-        		include("modules/{$this->rhs_module}/metadata/subpaneldefs.php");
226
-        		if(isset($layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'])){
227
-        			$rightSysLabel = $layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'];
228
-        		}
229
-        		$layout_defs = array();
230
-        	}
231
-        	if(!$this->is_custom && $update && file_exists("modules/{$this->lhs_module}/metadata/subpaneldefs.php")){
232
-        		include("modules/{$this->lhs_module}/metadata/subpaneldefs.php");
233
-        		if(isset($layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'])){
234
-        			$leftSysLabel = $layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'];
235
-        		}
236
-        		$layout_defs = array();
237
-        	}
238
-        	$labelDefinitions [] = array (
239
-        		'module' => $this->rhs_module ,
240
-        		'system_label' => isset($rightSysLabel)?$rightSysLabel : 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getLeftModuleSystemLabel() ) . '_TITLE' ,
241
-        		'display_label' => ($update && !empty($_REQUEST [ 'lhs_label' ] ))?$_REQUEST [ 'lhs_label' ] :(empty($this->lhs_label) ? translate ( $this->lhs_module ) : $this->lhs_label),
242
-        	) ;
224
+            if(!$this->is_custom && $update && file_exists("modules/{$this->rhs_module}/metadata/subpaneldefs.php")){
225
+                include("modules/{$this->rhs_module}/metadata/subpaneldefs.php");
226
+                if(isset($layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'])){
227
+                    $rightSysLabel = $layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'];
228
+                }
229
+                $layout_defs = array();
230
+            }
231
+            if(!$this->is_custom && $update && file_exists("modules/{$this->lhs_module}/metadata/subpaneldefs.php")){
232
+                include("modules/{$this->lhs_module}/metadata/subpaneldefs.php");
233
+                if(isset($layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'])){
234
+                    $leftSysLabel = $layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'];
235
+                }
236
+                $layout_defs = array();
237
+            }
238
+            $labelDefinitions [] = array (
239
+                'module' => $this->rhs_module ,
240
+                'system_label' => isset($rightSysLabel)?$rightSysLabel : 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getLeftModuleSystemLabel() ) . '_TITLE' ,
241
+                'display_label' => ($update && !empty($_REQUEST [ 'lhs_label' ] ))?$_REQUEST [ 'lhs_label' ] :(empty($this->lhs_label) ? translate ( $this->lhs_module ) : $this->lhs_label),
242
+            ) ;
243 243
             $labelDefinitions [] = array (
244
-            	'module' => $this->lhs_module ,
245
-            	'system_label' =>  isset($leftSysLabel)?$leftSysLabel :'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getRightModuleSystemLabel() ) . '_TITLE' ,
246
-            	'display_label' => ($update && !empty($_REQUEST [ 'rhs_label' ] ))?$_REQUEST [ 'rhs_label' ] :(empty($this->rhs_label) ? translate ( $this->rhs_module ) : $this->rhs_label),
244
+                'module' => $this->lhs_module ,
245
+                'system_label' =>  isset($leftSysLabel)?$leftSysLabel :'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $this->getRightModuleSystemLabel() ) . '_TITLE' ,
246
+                'display_label' => ($update && !empty($_REQUEST [ 'rhs_label' ] ))?$_REQUEST [ 'rhs_label' ] :(empty($this->rhs_label) ? translate ( $this->rhs_module ) : $this->rhs_label),
247 247
             ) ;
248 248
         }
249 249
         return $labelDefinitions ;
250 250
     }
251 251
 
252
-	function getLeftModuleSystemLabel()
252
+    function getLeftModuleSystemLabel()
253 253
     {
254
-		if($this->lhs_module == $this->rhs_module){
255
-			return $this->lhs_module.'_L';
256
-		}
257
-		return $this->lhs_module;
254
+        if($this->lhs_module == $this->rhs_module){
255
+            return $this->lhs_module.'_L';
256
+        }
257
+        return $this->lhs_module;
258 258
     }
259 259
 
260 260
     function getRightModuleSystemLabel()
261 261
     {
262
-		if($this->lhs_module == $this->rhs_module){
263
-			return $this->rhs_module.'_R';
264
-		}
265
-		return $this->rhs_module;
262
+        if($this->lhs_module == $this->rhs_module){
263
+            return $this->rhs_module.'_R';
264
+        }
265
+        return $this->rhs_module;
266 266
     }
267 267
 
268 268
     /**
@@ -298,24 +298,24 @@  discard block
 block discarded – undo
298 298
     protected function getSubpanelDefinition ($relationshipName , $sourceModule , $subpanelName, $titleKeyName = '', $source = "")
299 299
     {
300 300
         if (empty($source)) 
301
-        	$source = $this->getValidDBName($relationshipName);
302
-    	$subpanelDefinition = array ( ) ;
301
+            $source = $this->getValidDBName($relationshipName);
302
+        $subpanelDefinition = array ( ) ;
303 303
         $subpanelDefinition [ 'order' ] = 100 ;
304 304
         $subpanelDefinition [ 'module' ] = $sourceModule ;
305 305
         $subpanelDefinition [ 'subpanel_name' ] = $subpanelName ;
306 306
         // following two lines are required for the subpanel pagination code in ListView.php->processUnionBeans() to correctly determine the relevant field for sorting
307 307
         $subpanelDefinition [ 'sort_order' ] = 'asc' ;
308 308
         $subpanelDefinition [ 'sort_by' ] = 'id' ;
309
-		if(!empty($titleKeyName)){
310
-			$subpanelDefinition [ 'title_key' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $titleKeyName ) . '_TITLE' ;
311
-		}else{
312
-			$subpanelDefinition [ 'title_key' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $sourceModule ) . '_TITLE' ;
313
-		}
309
+        if(!empty($titleKeyName)){
310
+            $subpanelDefinition [ 'title_key' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $titleKeyName ) . '_TITLE' ;
311
+        }else{
312
+            $subpanelDefinition [ 'title_key' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $sourceModule ) . '_TITLE' ;
313
+        }
314 314
         $subpanelDefinition [ 'get_subpanel_data' ] = $source ;
315 315
         $subpanelDefinition [ 'top_buttons' ] = array(
316
-		    array('widget_class' => "SubPanelTopButtonQuickCreate"),
317
-		    array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
318
-		);
316
+            array('widget_class' => "SubPanelTopButtonQuickCreate"),
317
+            array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
318
+        );
319 319
         
320 320
         return array ( $subpanelDefinition );
321 321
     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         $vardef [ 'module' ] = $sourceModule ;
340 340
         $vardef [ 'bean_name' ] = BeanFactory::getObjectName($sourceModule) ;
341 341
         if ($right_side)
342
-        	$vardef [ 'side' ] = 'right' ;
342
+            $vardef [ 'side' ] = 'right' ;
343 343
         if (!empty($vname))
344 344
             $vardef [ 'vname' ] = $vname;
345 345
         if (!empty($id_name))
@@ -364,11 +364,11 @@  discard block
 block discarded – undo
364 364
         $vardef [ 'type' ] = 'link' ;
365 365
         $vardef [ 'relationship' ] = $relationshipName ;
366 366
         $vardef [ 'source' ] = 'non-db' ;
367
-		$vardef ['reportable'] = false;
367
+        $vardef ['reportable'] = false;
368 368
         if ($right_side)
369
-        	$vardef [ 'side' ] = 'right' ;
369
+            $vardef [ 'side' ] = 'right' ;
370 370
         else
371
-        	$vardef [ 'side' ] = 'left' ;
371
+            $vardef [ 'side' ] = 'left' ;
372 372
         if (!empty($vname))
373 373
             $vardef [ 'vname' ] = $vname;
374 374
 
@@ -389,11 +389,11 @@  discard block
 block discarded – undo
389 389
         $vardef [ 'type' ] = 'relate' ;
390 390
 
391 391
         $vardef [ 'source' ] = 'non-db' ;
392
-		if(!empty($vnameLabel)){
393
-			$vardef [ 'vname' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $vnameLabel ) . '_TITLE' ;
394
-		}else{
395
-			$vardef [ 'vname' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $sourceModule ) . '_TITLE' ;
396
-		}
392
+        if(!empty($vnameLabel)){
393
+            $vardef [ 'vname' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $vnameLabel ) . '_TITLE' ;
394
+        }else{
395
+            $vardef [ 'vname' ] = 'LBL_' . strtoupper ( $relationshipName . '_FROM_' . $sourceModule ) . '_TITLE' ;
396
+        }
397 397
         
398 398
         $vardef [ 'save' ] = true; // the magic value to tell SugarBean to save this relate field even though it is not listed in the $relationship_fields array
399 399
        
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
             if (in_array( 'file' , array_keys ( $module->config [ 'templates' ] ) ) ){
422 422
                 $vardef [ 'rname' ] = 'document_name' ;
423 423
             }elseif(in_array ( 'person' , array_keys ( $module->config [ 'templates' ] ) ) ){
424
-            	$vardef [ 'db_concat_fields' ] = array( 0 =>'first_name', 1 =>'last_name') ;
424
+                $vardef [ 'db_concat_fields' ] = array( 0 =>'first_name', 1 =>'last_name') ;
425 425
             }
426 426
         }
427 427
         else
@@ -450,11 +450,11 @@  discard block
 block discarded – undo
450 450
                     require_once ( $GLOBALS ['beanFiles'] [ $object ] );
451 451
                     $bean = new $object();
452 452
                     if ( isset ( $GLOBALS [ 'dictionary' ] [ $object ] [ 'templates'] )){
453
-                    	if(in_array ( 'file' , $GLOBALS [ 'dictionary' ] [ $object ] [ 'templates'] )){
454
-                    		$vardef [ 'rname' ] = 'document_name' ;
455
-                    	}elseif(in_array ( 'person' , $GLOBALS [ 'dictionary' ] [ $object ] [ 'templates'] )){
456
-                    		 $vardef [ 'db_concat_fields' ] = array( 0 =>'first_name', 1 =>'last_name') ;
457
-                    	}
453
+                        if(in_array ( 'file' , $GLOBALS [ 'dictionary' ] [ $object ] [ 'templates'] )){
454
+                            $vardef [ 'rname' ] = 'document_name' ;
455
+                        }elseif(in_array ( 'person' , $GLOBALS [ 'dictionary' ] [ $object ] [ 'templates'] )){
456
+                                $vardef [ 'db_concat_fields' ] = array( 0 =>'first_name', 1 =>'last_name') ;
457
+                        }
458 458
                     }
459 459
                         
460 460
             }
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     function getJoinKeyLHS()
635 635
     {
636 636
         if (!isset($this->joinKeyLHS))
637
-        	$this->joinKeyLHS = $this->getValidDBName ( $this->relationship_name . $this->lhs_module . "_ida"  , true) ;
637
+            $this->joinKeyLHS = $this->getValidDBName ( $this->relationship_name . $this->lhs_module . "_ida"  , true) ;
638 638
         
639 639
         return $this->joinKeyLHS;
640 640
     }
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
     function getJoinKeyRHS()
643 643
     {
644 644
         if (!isset($this->joinKeyRHS))
645
-        	$this->joinKeyRHS = $this->getValidDBName ( $this->relationship_name . $this->rhs_module . "_idb"  , true) ;
645
+            $this->joinKeyRHS = $this->getValidDBName ( $this->relationship_name . $this->rhs_module . "_idb"  , true) ;
646 646
     	
647 647
         return $this->joinKeyRHS;
648 648
     }
@@ -674,32 +674,32 @@  discard block
 block discarded – undo
674 674
     }
675 675
 
676 676
     public function getTitleKey($left=false){
677
-		if(!$this->is_custom && !$left && file_exists("modules/{$this->rhs_module}/metadata/subpaneldefs.php")){
678
-    		include("modules/{$this->rhs_module}/metadata/subpaneldefs.php");
679
-    		if(isset($layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'])){
680
-    			return $layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'];
681
-    		}
682
-    	}else if(!$this->is_custom &&  file_exists("modules/{$this->lhs_module}/metadata/subpaneldefs.php")){
683
-    		include("modules/{$this->lhs_module}/metadata/subpaneldefs.php");
684
-    		if(isset($layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'])){
685
-    			return $layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'];
686
-    		}
687
-    	}
677
+        if(!$this->is_custom && !$left && file_exists("modules/{$this->rhs_module}/metadata/subpaneldefs.php")){
678
+            include("modules/{$this->rhs_module}/metadata/subpaneldefs.php");
679
+            if(isset($layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'])){
680
+                return $layout_defs[$this->rhs_module]['subpanel_setup'][strtolower($this->lhs_module)]['title_key'];
681
+            }
682
+        }else if(!$this->is_custom &&  file_exists("modules/{$this->lhs_module}/metadata/subpaneldefs.php")){
683
+            include("modules/{$this->lhs_module}/metadata/subpaneldefs.php");
684
+            if(isset($layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'])){
685
+                return $layout_defs[$this->lhs_module]['subpanel_setup'][strtolower($this->rhs_module)]['title_key'];
686
+            }
687
+        }
688 688
     	
689
-    	if($left){
690
-    		$titleKeyName = $this->getRightModuleSystemLabel();
691
-    		$sourceModule = $this->rhs_module;
692
-    	}else{
693
-    		$titleKeyName = $this->getLeftModuleSystemLabel();
694
-    		$sourceModule = $this->lhs_module;
695
-    	}
689
+        if($left){
690
+            $titleKeyName = $this->getRightModuleSystemLabel();
691
+            $sourceModule = $this->rhs_module;
692
+        }else{
693
+            $titleKeyName = $this->getLeftModuleSystemLabel();
694
+            $sourceModule = $this->lhs_module;
695
+        }
696 696
     	
697
-		if(!empty($titleKeyName)){
698
-			$title_key = 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $titleKeyName ) . '_TITLE' ;
699
-		}else{
700
-			$title_key = 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $sourceModule ) . '_TITLE' ;
701
-		}
697
+        if(!empty($titleKeyName)){
698
+            $title_key = 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $titleKeyName ) . '_TITLE' ;
699
+        }else{
700
+            $title_key = 'LBL_' . strtoupper ( $this->relationship_name . '_FROM_' . $sourceModule ) . '_TITLE' ;
701
+        }
702 702
 		
703
-		return $title_key;
704
-	}
703
+        return $title_key;
704
+    }
705 705
 }
706 706
\ No newline at end of file
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/AbstractRelationships.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -66,15 +66,15 @@  discard block
 block discarded – undo
66 66
     // have different actual relationship names other than <relationshipName>
67 67
     // e.g $dictionary[ 'quotes_accounts' ] has two relationships: quotes_billto_accounts, quotes_shipto_accounts
68 68
     protected $specialCaseBaseNames = array( 'quotes_accounts',
69
-                                             'quotes_contacts',
70
-                                             'emails_beans',
71
-                                             'linked_documents',
72
-                                             'project_relation',
73
-                                             'prospect_lists_prospects',
74
-                                             'queues_beans',
75
-                                             'queues_queue',
76
-                                             'tracker_sessions'
77
-                                          );
69
+                                                'quotes_contacts',
70
+                                                'emails_beans',
71
+                                                'linked_documents',
72
+                                                'project_relation',
73
+                                                'prospect_lists_prospects',
74
+                                                'queues_beans',
75
+                                                'queues_queue',
76
+                                                'tracker_sessions'
77
+                                            );
78 78
     /*
79 79
      * Find all deployed modules that can participate in a relationship
80 80
      * Return a list of modules with associated subpanels
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     protected function build ($basepath , $installDefPrefix , $relationships )
334 334
     {
335 335
         global $sugar_config;
336
-    	// keep the relationships data separate from any other build data by ading /relationships to the basepath
336
+        // keep the relationships data separate from any other build data by ading /relationships to the basepath
337 337
         $basepath .= '/relationships' ;
338 338
 
339 339
         $installDefs = array ( ) ;
@@ -393,34 +393,34 @@  discard block
 block discarded – undo
393 393
     {
394 394
         global $sugar_config;
395 395
         
396
-       	mkdir_recursive ( "$basepath/language" ) ;
396
+            mkdir_recursive ( "$basepath/language" ) ;
397 397
     	
398
-       	$headerString = "<?php\n//THIS FILE IS AUTO GENERATED, DO NOT MODIFY\n" ;
398
+            $headerString = "<?php\n//THIS FILE IS AUTO GENERATED, DO NOT MODIFY\n" ;
399 399
         $installDefs = array ( ) ;
400 400
         foreach ( $labelDefinitions as $definition )
401 401
         {
402
-        	$mod_strings = array();
403
-        	$app_list_strings = array();
402
+            $mod_strings = array();
403
+            $app_list_strings = array();
404 404
         	
405
-        	$out = $headerString;
405
+            $out = $headerString;
406 406
         	
407
-        	$filename = "{$basepath}/language/{$definition['module']}.php" ;
407
+            $filename = "{$basepath}/language/{$definition['module']}.php" ;
408 408
     	
409
-	    	if (file_exists ( $filename ))
410
-	    		include ($filename);
409
+            if (file_exists ( $filename ))
410
+                include ($filename);
411 411
 	    		
412 412
             
413 413
             //Check for app strings
414 414
             $GLOBALS [ 'log' ]->debug ( get_class ( $this ) . "->saveLabels(): saving the following to {$filename}" 
415
-                                      . print_r ( $definition, true ) ) ;
415
+                                        . print_r ( $definition, true ) ) ;
416 416
             if ($definition['module'] == 'application') {
417
-            	$app_list_strings[$definition [ 'system_label' ]] = $definition [ 'display_label' ];
418
-            	foreach ($app_list_strings as $key => $val)
419
-            		$out .= override_value_to_string_recursive2('app_list_strings', $key, $val);
417
+                $app_list_strings[$definition [ 'system_label' ]] = $definition [ 'display_label' ];
418
+                foreach ($app_list_strings as $key => $val)
419
+                    $out .= override_value_to_string_recursive2('app_list_strings', $key, $val);
420 420
             } else {
421
-            	$mod_strings[ $definition [ 'system_label' ]] = $definition [ 'display_label' ];
422
-            	foreach ($mod_strings as $key => $val)
423
-            		$out .= override_value_to_string_recursive2('mod_strings', $key, $val);
421
+                $mod_strings[ $definition [ 'system_label' ]] = $definition [ 'display_label' ];
422
+                foreach ($mod_strings as $key => $val)
423
+                    $out .= override_value_to_string_recursive2('mod_strings', $key, $val);
424 424
             }
425 425
             
426 426
             $fh = fopen ( $filename, 'w' ) ;
@@ -430,17 +430,17 @@  discard block
 block discarded – undo
430 430
         	
431 431
             foreach($sugar_config['languages'] as $lk => $lv)
432 432
             {
433
-            	$installDefs [ $definition [ 'module' ] . "_$lk" ] = array ( 
434
-            		'from' => "{$installDefPrefix}/relationships/language/{$definition [ 'module' ]}.php" , 
435
-            		'to_module' => $definition [ 'module' ] , 
436
-            		'language' => $lk 
437
-            	) ;                                 		
433
+                $installDefs [ $definition [ 'module' ] . "_$lk" ] = array ( 
434
+                    'from' => "{$installDefPrefix}/relationships/language/{$definition [ 'module' ]}.php" , 
435
+                    'to_module' => $definition [ 'module' ] , 
436
+                    'language' => $lk 
437
+                ) ;                                 		
438 438
             }
439 439
             
440 440
             /* do not use the following write_array_to_file method to write the label file - 
441 441
              * module installer appends each of the label files together (as it does for all files) 
442 442
 			 * into a combined label file and so the last $mod_strings is the only one received by the application */
443
-        	// write_array_to_file ( 'mod_strings', array ( $definition [ 'system_label' ] => $definition [ 'display_label' ] ), $filename, "a" ) ;
443
+            // write_array_to_file ( 'mod_strings', array ( $definition [ 'system_label' ] => $definition [ 'display_label' ] ), $filename, "a" ) ;
444 444
         }
445 445
         
446 446
         return $installDefs ;
@@ -534,11 +534,11 @@  discard block
 block discarded – undo
534 534
             $relName = $moduleName;
535 535
             foreach ( $definitions as $definition )
536 536
             {
537
-            	if (!empty($definition['relationship']))
538
-            	{
539
-            		$relName = $definition['relationship'];
540
-            		break;
541
-            	}
537
+                if (!empty($definition['relationship']))
538
+                {
539
+                    $relName = $definition['relationship'];
540
+                    break;
541
+                }
542 542
             }
543 543
             
544 544
             $filename = "$basepath/vardefs/{$relName}_{$moduleName}.php" ;
@@ -547,14 +547,14 @@  discard block
 block discarded – undo
547 547
             foreach ( $definitions as $definition )
548 548
             {
549 549
                 $GLOBALS [ 'log' ]->debug ( get_class ( $this ) . "->saveVardefs(): saving the following to {$filename}" . print_r ( $definition, true ) ) ;
550
-               	$out .= '$dictionary["' . $object . '"]["fields"]["' . $definition [ 'name' ] . '"] = '
551
-               		  . var_export_helper($definition) . ";\n";
550
+                    $out .= '$dictionary["' . $object . '"]["fields"]["' . $definition [ 'name' ] . '"] = '
551
+                            . var_export_helper($definition) . ";\n";
552 552
             }
553 553
             file_put_contents($filename, $out);
554 554
             
555 555
             $installDefs [ $moduleName ] = array ( 
556
-            	'from' => "{$installDefPrefix}/relationships/vardefs/{$relName}_{$moduleName}.php" , 
557
-            	'to_module' => $moduleName 
556
+                'from' => "{$installDefPrefix}/relationships/vardefs/{$relName}_{$moduleName}.php" , 
557
+                'to_module' => $moduleName 
558 558
             ) ;
559 559
         }
560 560
         
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/UndeployedRelationships.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
             }
285 285
             $module->setAppListStrings ( 'en_us', $appStrings ) ;
286 286
             $module->save () ;
287
-			//Bug42170================================
288
-		}
287
+            //Bug42170================================
288
+        }
289 289
         
290 290
         // use an installDefPrefix of <basepath>/SugarModules for compatibility with the rest of ModuleBuilder
291 291
         $this->installDefs = parent::build ( $basepath, "<basepath>/SugarModules", $relationships ) ;
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
                         $fieldsToAdd [$deployedModuleName] = $fieldName;
419 419
                     }
420 420
                 }
421
-        	}
421
+            }
422 422
         }
423 423
         return array(array('additional_fields' => $fieldsToAdd));
424 424
     }
Please login to merge, or discard this patch.
modules/ModuleBuilder/parsers/relationships/DeployedRelationships.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
                         
105 105
 
106 106
                         if (! empty ( $dictionary ) && ! empty ( $dictionary [ $name ] ) ) {
107
-                        	if (! empty ( $dictionary [ $name ] [ 'true_relationship_type' ] )) {
108
-                        		$definition [ 'relationship_type' ] = $dictionary [ $name ] [ 'true_relationship_type' ] ;
109
-                        	}
107
+                            if (! empty ( $dictionary [ $name ] [ 'true_relationship_type' ] )) {
108
+                                $definition [ 'relationship_type' ] = $dictionary [ $name ] [ 'true_relationship_type' ] ;
109
+                            }
110 110
                             if (! empty ( $dictionary [ $name ] [ 'from_studio' ] )) {
111 111
                                 $definition [ 'from_studio' ] = $dictionary [ $name ] [ 'from_studio' ] ;
112 112
                             }
113
-                        	$definition [ 'is_custom' ] = true;
113
+                            $definition [ 'is_custom' ] = true;
114 114
                         }
115 115
                             
116 116
                         
@@ -155,23 +155,23 @@  discard block
 block discarded – undo
155 155
      */
156 156
     function delete ($rel_name)
157 157
     {
158
-    	//Remove any fields from layouts
158
+        //Remove any fields from layouts
159 159
         $rel = $this->get($rel_name);
160 160
         if (!empty($rel))
161 161
         {
162 162
             $this->removeFieldsFromDeployedLayout($rel);
163 163
         }
164 164
         require_once("ModuleInstall/ModuleInstaller.php");
165
-    	require_once ('modules/Administration/QuickRepairAndRebuild.php') ;
166
-    	$mi = new ModuleInstaller();
167
-    	$mi->silent = true;
165
+        require_once ('modules/Administration/QuickRepairAndRebuild.php') ;
166
+        $mi = new ModuleInstaller();
167
+        $mi->silent = true;
168 168
         $mi->id_name = 'custom' . $rel_name; // provide the moduleinstaller with a unique name for this relationship - normally this value is set to the package key...
169
-    	$mi->uninstall_relationship("custom/metadata/{$rel_name}MetaData.php");
169
+        $mi->uninstall_relationship("custom/metadata/{$rel_name}MetaData.php");
170 170
         $mi->uninstallLabels('custom/Extension/modules/relationships/language/',$rel->buildLabels());
171 171
         $mi->uninstallExtLabels($rel->buildLabels());
172 172
     	
173
-    	// now clear all caches so that our changes are visible
174
-    	Relationship::delete_cache();
173
+        // now clear all caches so that our changes are visible
174
+        Relationship::delete_cache();
175 175
         $mi->rebuild_tabledictionary();
176 176
         
177 177
         $MBmodStrings = $GLOBALS [ 'mod_strings' ];
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
         foreach ( $this->relationships as $name => $relationship )
314 314
         {
315 315
             $relationship->setFromStudio();
316
-        	$GLOBALS [ 'mod_strings' ] = $MBModStrings ;
316
+            $GLOBALS [ 'mod_strings' ] = $MBModStrings ;
317 317
             $installDefs = parent::build ( $basepath, "<basepath>",  array ($name => $relationship ) ) ;
318 318
 
319 319
             // and mark as built so that the next time we come through we'll know and won't build again
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      * @param $relationship    The relationship that is getting deleted
408 408
      * return null
409 409
      */
410
-	private function removeFieldsFromDeployedLayout ($relationship)
410
+    private function removeFieldsFromDeployedLayout ($relationship)
411 411
     {
412 412
         
413 413
         // many-to-many relationships don't have fields so if we have a many-to-many we can just skip this...
Please login to merge, or discard this patch.