Completed
Push — gcconnex ( ee5ffc...718fe4 )
by Ilia
09:37 queued 04:29
created
mod/ideas/pages/ideas/all_group.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -8,48 +8,48 @@
 block discarded – undo
8 8
 $lang = get_current_language();
9 9
 
10 10
 
11
-    $title_breadcrumbs = gc_explode_translation($page_owner->title, $lang);
11
+	$title_breadcrumbs = gc_explode_translation($page_owner->title, $lang);
12 12
 
13 13
 
14 14
 elgg_push_breadcrumb($title_breadcrumbs);
15 15
 elgg_push_breadcrumb(elgg_echo('ideas:filter:new'));
16 16
 
17 17
 if ($page_owner->canEdit() || elgg_is_admin_logged_in()) {
18
-    elgg_register_menu_item('title', array(
19
-        'name' => 'settings',
20
-        'href' => "ideas/group/$page_owner->guid/settings",
21
-        'text' => elgg_echo('ideas:group_settings'),
22
-        'link_class' => 'elgg-button elgg-button-action edit-button gwfb group_admin_only',
23
-    ));
18
+	elgg_register_menu_item('title', array(
19
+		'name' => 'settings',
20
+		'href' => "ideas/group/$page_owner->guid/settings",
21
+		'text' => elgg_echo('ideas:group_settings'),
22
+		'link_class' => 'elgg-button elgg-button-action edit-button gwfb group_admin_only',
23
+	));
24 24
 }
25 25
 
26 26
 $offset = (int)get_input('offset', 0);
27 27
 $order_by = get_input('order', 'desc');
28 28
 
29 29
 $content = elgg_list_entities(array(
30
-    'type' => 'object',
31
-    'subtype' => 'idea',
32
-    'container_guid' => $page_owner->guid,
33
-    'limit' => 10,
34
-    'offset' => $offset,
35
-    'pagination' => true,
36
-    'order_by' => 'time_created ' . $order_by,
37
-    'full_view' => false,
38
-    'list_class' => 'ideas-list',
39
-    'item_class' => 'elgg-item-idea'
30
+	'type' => 'object',
31
+	'subtype' => 'idea',
32
+	'container_guid' => $page_owner->guid,
33
+	'limit' => 10,
34
+	'offset' => $offset,
35
+	'pagination' => true,
36
+	'order_by' => 'time_created ' . $order_by,
37
+	'full_view' => false,
38
+	'list_class' => 'ideas-list',
39
+	'item_class' => 'elgg-item-idea'
40 40
 ));
41 41
 
42 42
 if (!$content) {
43
-    $content = elgg_echo('ideas:none');
43
+	$content = elgg_echo('ideas:none');
44 44
 }
45 45
 
46 46
 $title = elgg_echo('ideas:owner', array(gc_explode_translation($page_owner->name,$lang)));
47 47
 
48 48
 $vars = array(
49
-    'filter_context' => 'all',
50
-    'content' => $content,
51
-    'title' => $title,
52
-    'sidebar' => elgg_view('ideas/sidebar'),
49
+	'filter_context' => 'all',
50
+	'content' => $content,
51
+	'title' => $title,
52
+	'sidebar' => elgg_view('ideas/sidebar'),
53 53
 );
54 54
 
55 55
 $body = elgg_view_layout('ideas', $vars);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     ));
24 24
 }
25 25
 
26
-$offset = (int)get_input('offset', 0);
26
+$offset = (int) get_input('offset', 0);
27 27
 $order_by = get_input('order', 'desc');
28 28
 
29 29
 $content = elgg_list_entities(array(
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     $content = elgg_echo('ideas:none');
44 44
 }
45 45
 
46
-$title = elgg_echo('ideas:owner', array(gc_explode_translation($page_owner->name,$lang)));
46
+$title = elgg_echo('ideas:owner', array(gc_explode_translation($page_owner->name, $lang)));
47 47
 
48 48
 $vars = array(
49 49
     'filter_context' => 'all',
Please login to merge, or discard this patch.
mod/ideas/pages/ideas/top.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	));
24 24
 }
25 25
 
26
-$offset = (int)get_input('offset', 0);
26
+$offset = (int) get_input('offset', 0);
27 27
 $order_by = get_input('order', 'desc');
28 28
 
29 29
 $content = elgg_list_entities_from_annotation_calculation(array(
Please login to merge, or discard this patch.
mod/ideas/views/default/river/object/ideas/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 $object = $vars['item']->getObjectEntity();
10 10
 
11 11
 
12
-	$description = gc_explode_translation($object->description,$lang);
12
+	$description = gc_explode_translation($object->description, $lang);
13 13
 
14 14
 
15 15
 $excerpt = elgg_get_excerpt($description, '140');
Please login to merge, or discard this patch.
mod/ideas/views/default/river/object/ideas/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 $lang = get_current_language();
10 10
 
11 11
 
12
-	$description = gc_explode_translation($object->description,$lang);
12
+	$description = gc_explode_translation($object->description, $lang);
13 13
 
14 14
 
15 15
 $excerpt = elgg_get_excerpt($description, '140');
Please login to merge, or discard this patch.
mod/machine_translation/views/default/machine_translation/replies.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2
-    /*
2
+	/*
3 3
      * replies.php
4 4
      * This file contains the extended view for group discussions.
5 5
      * Adds javascript to discussion for translating replies.
6 6
      * 
7 7
      */
8 8
     
9
-    ?>
9
+	?>
10 10
     <style>
11 11
     .outputArea{
12 12
         width:100%;
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
     <div class="basic-profile-standard-field-wrapper">
70 70
         <div class="alert alert-info">
71 71
             <?php 
72
-            echo elgg_echo('mc:LCtool:disclaimerTitle'); 
73
-            echo elgg_echo('mc:LCtool:disclaimer1');
74
-            echo elgg_echo('mc:LCtool:disclaimer2');
75
-            echo elgg_echo('mc:LCtool:disclaimer3');
76
-            ?>
72
+			echo elgg_echo('mc:LCtool:disclaimerTitle'); 
73
+			echo elgg_echo('mc:LCtool:disclaimer1');
74
+			echo elgg_echo('mc:LCtool:disclaimer2');
75
+			echo elgg_echo('mc:LCtool:disclaimer3');
76
+			?>
77 77
             
78 78
         </div> <!-- empty div for use later -->
79 79
         <div id="lctBody">
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 outputArea.hide();
147 147
                 $('#outputArea').remove();
148 148
                 
149
-                $('#outputContainer').html('<img id="loader" class="loader" src="<?php echo elgg_get_site_url();?>mod/machine_translation/lib/img/ajax-loader.gif" alt="Wait" />');
149
+                $('#outputContainer').html('<img id="loader" class="loader" src="<?php echo elgg_get_site_url(); ?>mod/machine_translation/lib/img/ajax-loader.gif" alt="Wait" />');
150 150
                 $('#textSpan').text('<?php echo elgg_echo('mc:LCtool:wait'); ?>');
151 151
                 var count = tmp.children('p').length;
152 152
                 //console.log(count);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                     $.ajax({
176 176
                         type: 'GET',
177 177
                         //async: false,
178
-                        url: '<?php echo elgg_get_plugin_setting('apiurl','machine_translation'); ?>',
178
+                        url: '<?php echo elgg_get_plugin_setting('apiurl', 'machine_translation'); ?>',
179 179
                         //jsonp: 'logResults',
180 180
                         data: sendData,
181 181
                         dataType: 'jsonp',
Please login to merge, or discard this patch.
mod/search/pages/search/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 $limit = ($search_type == 'all') ? 2 : get_input('limit', elgg_get_config('default_limit'));
39 39
 $offset = ($search_type == 'all') ? 0 : get_input('offset', 0);
40 40
 
41
-$user_type = ( get_input('user_type') ) ? get_input('user_type') : "";
41
+$user_type = (get_input('user_type')) ? get_input('user_type') : "";
42 42
 
43 43
 $entity_type = get_input('entity_type', ELGG_ENTITIES_ANY_VALUE);
44 44
 $entity_subtype = get_input('entity_subtype', ELGG_ENTITIES_ANY_VALUE);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 // cyu - 2014-07-04
90 90
 
91 91
 // MW - Customized ordering of search results
92
-if( strpos(elgg_get_site_entity()->name, 'collab') !== false ){
92
+if (strpos(elgg_get_site_entity()->name, 'collab') !== false) {
93 93
 	unset($types['object']);
94 94
 	$types['object'] = array('groupforumtopic', 'file', 'blog', 'thewire', 'comment', 'bookmarks', 'poll', 'event_calendar', 'idea', 'page', 'page_top', 'image', 'album', 'orgnode', 'mission', 'mission-feedback', 'mission-declination', 'mission-wasoffered', 'mission-inprogress', 'mission-posted', 'mission-cancelled', 'mission-completed');
95 95
 }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				'friends' => $friends
121 121
 			)));
122 122
 
123
-			$url = elgg_get_site_url()."search?$data";
123
+			$url = elgg_get_site_url() . "search?$data";
124 124
 			$menu_item = new ElggMenuItem($label, elgg_echo($label), $url);
125 125
 			elgg_register_menu_item('page', $menu_item);
126 126
 		}
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 		'search_type' => $type,
152 152
 	)));
153 153
 
154
-	$url = elgg_get_site_url()."search?$data";
154
+	$url = elgg_get_site_url() . "search?$data";
155 155
 
156 156
 	$menu_item = new ElggMenuItem($label, elgg_echo($label), $url);
157 157
 	elgg_register_menu_item('page', $menu_item);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 		$current_params['type'] = $type;
213 213
 		$current_params['subtype'] = ELGG_ENTITIES_NO_VALUE;
214 214
 
215
-		if( $type == 'user' && $user_type ){
215
+		if ($type == 'user' && $user_type) {
216 216
 			$current_params['user_type'] = $user_type;
217 217
 		}
218 218
 		
Please login to merge, or discard this patch.
mod/search/search_hooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
 		}
314 314
 
315 315
 		// different entities have different titles
316
-		switch($entity->type) {
316
+		switch ($entity->type) {
317 317
 			case 'site':
318 318
 			case 'user':
319 319
 			case 'group':
Please login to merge, or discard this patch.
mod/search/views/default/search/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	'container_guid' => $vars['params']['container_guid'],
34 34
 );
35 35
 
36
-if( $vars['params']['user_type'] ){
36
+if ($vars['params']['user_type']) {
37 37
 	$options['user_type'] = $vars['params']['user_type'];
38 38
 }
39 39
 
Please login to merge, or discard this patch.
mod/contactform/start.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,21 +8,21 @@
 block discarded – undo
8 8
 	$site = elgg_get_site_entity();
9 9
 	$action_path = elgg_get_plugins_path() . 'contactform/';
10 10
     
11
-    elgg_register_library('contact_lib', "{$action_path}/lib/functions.php");
12
-    elgg_load_library('contact_lib');
11
+	elgg_register_library('contact_lib', "{$action_path}/lib/functions.php");
12
+	elgg_load_library('contact_lib');
13 13
 
14 14
 	elgg_register_action('contactform/delete', "{$action_path}/actions/contactform/delete.php");
15 15
 	elgg_register_page_handler('contactform','contactform_page_handler');
16 16
 	elgg_extend_view('css/elgg', 'pages/css');
17 17
 
18
-    requirements_check2();
18
+	requirements_check2();
19 19
 	
20 20
 	// Add menu link
21 21
 	elgg_register_menu_item('site', array(
22 22
 		'name' => 'Help',
23
-        'href' => "{$site->getURL()}mod/contactform/",
24
-        'text' => elgg_echo('contactform:help_menu_item'),
25
-        'priority' => 1000,
23
+		'href' => "{$site->getURL()}mod/contactform/",
24
+		'text' => elgg_echo('contactform:help_menu_item'),
25
+		'priority' => 1000,
26 26
 	));
27 27
 }
28 28
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     elgg_load_library('contact_lib');
13 13
 
14 14
 	elgg_register_action('contactform/delete', "{$action_path}/actions/contactform/delete.php");
15
-	elgg_register_page_handler('contactform','contactform_page_handler');
15
+	elgg_register_page_handler('contactform', 'contactform_page_handler');
16 16
 	elgg_extend_view('css/elgg', 'pages/css');
17 17
 
18 18
     requirements_check2();
Please login to merge, or discard this patch.