Passed
Push — dpa_docker_wrapper6 ( 85f8bb )
by David
08:52
created
drupal/sites/all/features/team_forums/team_forums.pages_default.inc 2 patches
Upper-Lower-Casing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  */
6 6
 function team_forums_default_page_manager_pages() {
7 7
   $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
8
+  $page->disabled = false; /* Edit this to true to make a default page disabled initially */
9 9
   $page->api_version = 1;
10 10
   $page->name = 'team_forums';
11 11
   $page->task = 'page';
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
           ),
23 23
         ),
24 24
         'context' => 'logged-in-user',
25
-        'not' => FALSE,
25
+        'not' => false,
26 26
       ),
27 27
     ),
28 28
     'logic' => 'and',
29 29
     'type' => 'none',
30
-    'settings' => NULL,
30
+    'settings' => null,
31 31
   );
32 32
   $page->menu = array(
33 33
     'type' => 'none',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
   $page->conf = array();
69 69
   $page->default_handlers = array();
70 70
   $handler = new stdClass;
71
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
71
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
72 72
   $handler->api_version = 1;
73 73
   $handler->name = 'page_team_forums_panel_context_2';
74 74
   $handler->task = 'page';
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             'paths' => 'community/teams/*/forum/add',
93 93
           ),
94 94
           'context' => 'empty',
95
-          'not' => FALSE,
95
+          'not' => false,
96 96
         ),
97 97
         1 => array(
98 98
           'name' => 'role',
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             ),
103 103
           ),
104 104
           'context' => 'logged-in-user',
105
-          'not' => FALSE,
105
+          'not' => false,
106 106
         ),
107 107
         2 => array(
108 108
           'name' => 'php',
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
112 112
 return boincteam_is_founder($team_id);',
113 113
           ),
114
-          'not' => FALSE,
114
+          'not' => false,
115 115
         ),
116 116
       ),
117 117
       'logic' => 'and',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
           0 => 'main',
129 129
           1 => 2,
130 130
         ),
131
-        'parent' => NULL,
131
+        'parent' => null,
132 132
       ),
133 133
       'main' => array(
134 134
         'type' => 'column',
@@ -184,15 +184,15 @@  discard block
 block discarded – undo
184 184
   );
185 185
   $display->panel_settings = array(
186 186
     'style_settings' => array(
187
-      'default' => NULL,
188
-      'center' => NULL,
189
-      'top_teams' => NULL,
190
-      'top' => NULL,
191
-      'left' => NULL,
192
-      'right' => NULL,
193
-      'bottom' => NULL,
194
-      'content' => NULL,
195
-      'sidebar_first' => NULL,
187
+      'default' => null,
188
+      'center' => null,
189
+      'top_teams' => null,
190
+      'top' => null,
191
+      'left' => null,
192
+      'right' => null,
193
+      'bottom' => null,
194
+      'content' => null,
195
+      'sidebar_first' => null,
196 196
     ),
197 197
   );
198 198
   $display->cache = array();
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     $pane->panel = 'left';
205 205
     $pane->type = 'custom';
206 206
     $pane->subtype = 'custom';
207
-    $pane->shown = TRUE;
207
+    $pane->shown = true;
208 208
     $pane->access = array();
209 209
     $pane->configuration = array(
210 210
       'admin_title' => 'Create team forum form',
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     );
216 216
     $pane->cache = array();
217 217
     $pane->style = array(
218
-      'settings' => NULL,
218
+      'settings' => null,
219 219
     );
220 220
     $pane->css = array(
221 221
       'css_id' => '',
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     $pane->panel = 'right';
231 231
     $pane->type = 'custom';
232 232
     $pane->subtype = 'custom';
233
-    $pane->shown = TRUE;
233
+    $pane->shown = true;
234 234
     $pane->access = array();
235 235
     $pane->configuration = array(
236 236
       'admin_title' => 'About team forums',
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     );
242 242
     $pane->cache = array();
243 243
     $pane->style = array(
244
-      'settings' => NULL,
244
+      'settings' => null,
245 245
     );
246 246
     $pane->css = array(
247 247
       'css_id' => '',
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
   $handler->conf['display'] = $display;
257 257
   $page->default_handlers[$handler->name] = $handler;
258 258
   $handler = new stdClass;
259
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
259
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
260 260
   $handler->api_version = 1;
261 261
   $handler->name = 'page_team_forums_panel_context_3';
262 262
   $handler->task = 'page';
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             'paths' => 'community/teams/*/forum/*/edit',
281 281
           ),
282 282
           'context' => 'empty',
283
-          'not' => FALSE,
283
+          'not' => false,
284 284
         ),
285 285
         1 => array(
286 286
           'name' => 'role',
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
             ),
291 291
           ),
292 292
           'context' => 'logged-in-user',
293
-          'not' => FALSE,
293
+          'not' => false,
294 294
         ),
295 295
         2 => array(
296 296
           'name' => 'php',
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
300 300
 return boincteam_is_founder($team_id);',
301 301
           ),
302
-          'not' => FALSE,
302
+          'not' => false,
303 303
         ),
304 304
       ),
305 305
       'logic' => 'and',
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
           0 => 'main',
317 317
           1 => 2,
318 318
         ),
319
-        'parent' => NULL,
319
+        'parent' => null,
320 320
       ),
321 321
       'main' => array(
322 322
         'type' => 'column',
@@ -372,15 +372,15 @@  discard block
 block discarded – undo
372 372
   );
373 373
   $display->panel_settings = array(
374 374
     'style_settings' => array(
375
-      'default' => NULL,
376
-      'center' => NULL,
377
-      'top_teams' => NULL,
378
-      'top' => NULL,
379
-      'left' => NULL,
380
-      'right' => NULL,
381
-      'bottom' => NULL,
382
-      'content' => NULL,
383
-      'sidebar_first' => NULL,
375
+      'default' => null,
376
+      'center' => null,
377
+      'top_teams' => null,
378
+      'top' => null,
379
+      'left' => null,
380
+      'right' => null,
381
+      'bottom' => null,
382
+      'content' => null,
383
+      'sidebar_first' => null,
384 384
     ),
385 385
   );
386 386
   $display->cache = array();
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     $pane->panel = 'left';
393 393
     $pane->type = 'custom';
394 394
     $pane->subtype = 'custom';
395
-    $pane->shown = TRUE;
395
+    $pane->shown = true;
396 396
     $pane->access = array();
397 397
     $pane->configuration = array(
398 398
       'admin_title' => 'Edit team forum form',
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     );
404 404
     $pane->cache = array();
405 405
     $pane->style = array(
406
-      'settings' => NULL,
406
+      'settings' => null,
407 407
     );
408 408
     $pane->css = array(
409 409
       'css_id' => '',
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     $pane->panel = 'right';
419 419
     $pane->type = 'custom';
420 420
     $pane->subtype = 'custom';
421
-    $pane->shown = TRUE;
421
+    $pane->shown = true;
422 422
     $pane->access = array();
423 423
     $pane->configuration = array(
424 424
       'admin_title' => 'About team forums',
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
     );
430 430
     $pane->cache = array();
431 431
     $pane->style = array(
432
-      'settings' => NULL,
432
+      'settings' => null,
433 433
     );
434 434
     $pane->css = array(
435 435
       'css_id' => '',
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
   $handler->conf['display'] = $display;
445 445
   $page->default_handlers[$handler->name] = $handler;
446 446
   $handler = new stdClass;
447
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
447
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
448 448
   $handler->api_version = 1;
449 449
   $handler->name = 'page_team_forums_panel_context';
450 450
   $handler->task = 'page';
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
             'paths' => 'community/teams/*/forum/*',
469 469
           ),
470 470
           'context' => 'empty',
471
-          'not' => FALSE,
471
+          'not' => false,
472 472
         ),
473 473
         1 => array(
474 474
           'name' => 'role',
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
             ),
479 479
           ),
480 480
           'context' => 'logged-in-user',
481
-          'not' => FALSE,
481
+          'not' => false,
482 482
         ),
483 483
         2 => array(
484 484
           'name' => 'php',
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 }
496 496
 return FALSE;',
497 497
           ),
498
-          'not' => FALSE,
498
+          'not' => false,
499 499
         ),
500 500
       ),
501 501
       'logic' => 'and',
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
           0 => 'main',
513 513
           1 => 2,
514 514
         ),
515
-        'parent' => NULL,
515
+        'parent' => null,
516 516
       ),
517 517
       'main' => array(
518 518
         'type' => 'column',
@@ -568,16 +568,16 @@  discard block
 block discarded – undo
568 568
   );
569 569
   $display->panel_settings = array(
570 570
     'style_settings' => array(
571
-      'default' => NULL,
572
-      'center' => NULL,
573
-      'top_teams' => NULL,
574
-      'top' => NULL,
575
-      'left' => NULL,
576
-      'right' => NULL,
577
-      'bottom' => NULL,
578
-      'content' => NULL,
579
-      'sidebar_first' => NULL,
580
-      'middle' => NULL,
571
+      'default' => null,
572
+      'center' => null,
573
+      'top_teams' => null,
574
+      'top' => null,
575
+      'left' => null,
576
+      'right' => null,
577
+      'bottom' => null,
578
+      'content' => null,
579
+      'sidebar_first' => null,
580
+      'middle' => null,
581 581
     ),
582 582
   );
583 583
   $display->cache = array();
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
     $pane->panel = 'middle';
590 590
     $pane->type = 'views_panes';
591 591
     $pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
592
-    $pane->shown = TRUE;
592
+    $pane->shown = true;
593 593
     $pane->access = array();
594 594
     $pane->configuration = array(
595 595
       'override_title' => 0,
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
     );
598 598
     $pane->cache = array();
599 599
     $pane->style = array(
600
-      'settings' => NULL,
600
+      'settings' => null,
601 601
     );
602 602
     $pane->css = array(
603 603
       'css_id' => '',
Please login to merge, or discard this patch.
Indentation   +297 added lines, -297 removed lines patch added patch discarded remove patch
@@ -4,78 +4,78 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_page_manager_pages().
5 5
  */
6 6
 function team_forums_default_page_manager_pages() {
7
-  $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
-  $page->api_version = 1;
10
-  $page->name = 'team_forums';
11
-  $page->task = 'page';
12
-  $page->admin_title = 'Team forums';
13
-  $page->admin_description = '';
14
-  $page->path = 'community/teams/%team_id/forum/!option_1/!option_2';
15
-  $page->access = array(
7
+    $page = new stdClass;
8
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
+    $page->api_version = 1;
10
+    $page->name = 'team_forums';
11
+    $page->task = 'page';
12
+    $page->admin_title = 'Team forums';
13
+    $page->admin_description = '';
14
+    $page->path = 'community/teams/%team_id/forum/!option_1/!option_2';
15
+    $page->access = array(
16 16
     'plugins' => array(
17
-      2 => array(
17
+        2 => array(
18 18
         'name' => 'role',
19 19
         'settings' => array(
20
-          'rids' => array(
20
+            'rids' => array(
21 21
             0 => 2,
22
-          ),
22
+            ),
23 23
         ),
24 24
         'context' => 'logged-in-user',
25 25
         'not' => FALSE,
26
-      ),
26
+        ),
27 27
     ),
28 28
     'logic' => 'and',
29 29
     'type' => 'none',
30 30
     'settings' => NULL,
31
-  );
32
-  $page->menu = array(
31
+    );
32
+    $page->menu = array(
33 33
     'type' => 'none',
34 34
     'title' => 'Teams',
35 35
     'name' => 'navigation',
36 36
     'weight' => '10',
37 37
     'parent' => array(
38
-      'type' => 'none',
39
-      'title' => '',
40
-      'name' => 'navigation',
41
-      'weight' => '0',
38
+        'type' => 'none',
39
+        'title' => '',
40
+        'name' => 'navigation',
41
+        'weight' => '0',
42 42
     ),
43
-  );
44
-  $page->arguments = array(
43
+    );
44
+    $page->arguments = array(
45 45
     'team_id' => array(
46
-      'id' => 1,
47
-      'identifier' => 'Node: ID',
48
-      'name' => 'nid',
49
-      'settings' => array(),
46
+        'id' => 1,
47
+        'identifier' => 'Node: ID',
48
+        'name' => 'nid',
49
+        'settings' => array(),
50 50
     ),
51 51
     'option_1' => array(
52
-      'id' => 1,
53
-      'identifier' => 'String',
54
-      'name' => 'string',
55
-      'settings' => array(
52
+        'id' => 1,
53
+        'identifier' => 'String',
54
+        'name' => 'string',
55
+        'settings' => array(
56 56
         'use_tail' => 0,
57
-      ),
57
+        ),
58 58
     ),
59 59
     'option_2' => array(
60
-      'id' => 2,
61
-      'identifier' => 'String 2',
62
-      'name' => 'string',
63
-      'settings' => array(
60
+        'id' => 2,
61
+        'identifier' => 'String 2',
62
+        'name' => 'string',
63
+        'settings' => array(
64 64
         'use_tail' => 0,
65
-      ),
65
+        ),
66 66
     ),
67
-  );
68
-  $page->conf = array();
69
-  $page->default_handlers = array();
70
-  $handler = new stdClass;
71
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
72
-  $handler->api_version = 1;
73
-  $handler->name = 'page_team_forums_panel_context_2';
74
-  $handler->task = 'page';
75
-  $handler->subtask = 'team_forums';
76
-  $handler->handler = 'panel_context';
77
-  $handler->weight = -30;
78
-  $handler->conf = array(
67
+    );
68
+    $page->conf = array();
69
+    $page->default_handlers = array();
70
+    $handler = new stdClass;
71
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
72
+    $handler->api_version = 1;
73
+    $handler->name = 'page_team_forums_panel_context_2';
74
+    $handler->task = 'page';
75
+    $handler->subtask = 'team_forums';
76
+    $handler->handler = 'panel_context';
77
+    $handler->weight = -30;
78
+    $handler->conf = array(
79 79
     'title' => 'Add team forum',
80 80
     'no_blocks' => 0,
81 81
     'pipeline' => 'standard',
@@ -84,123 +84,123 @@  discard block
 block discarded – undo
84 84
     'contexts' => array(),
85 85
     'relationships' => array(),
86 86
     'access' => array(
87
-      'plugins' => array(
87
+        'plugins' => array(
88 88
         0 => array(
89
-          'name' => 'path_visibility',
90
-          'settings' => array(
89
+            'name' => 'path_visibility',
90
+            'settings' => array(
91 91
             'visibility_setting' => '1',
92 92
             'paths' => 'community/teams/*/forum/add',
93
-          ),
94
-          'context' => 'empty',
95
-          'not' => FALSE,
93
+            ),
94
+            'context' => 'empty',
95
+            'not' => FALSE,
96 96
         ),
97 97
         1 => array(
98
-          'name' => 'role',
99
-          'settings' => array(
98
+            'name' => 'role',
99
+            'settings' => array(
100 100
             'rids' => array(
101
-              0 => 2,
101
+                0 => 2,
102
+            ),
102 103
             ),
103
-          ),
104
-          'context' => 'logged-in-user',
105
-          'not' => FALSE,
104
+            'context' => 'logged-in-user',
105
+            'not' => FALSE,
106 106
         ),
107 107
         2 => array(
108
-          'name' => 'php',
109
-          'settings' => array(
108
+            'name' => 'php',
109
+            'settings' => array(
110 110
             'description' => 'User is team founder',
111 111
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
112 112
 return boincteam_is_founder($team_id);',
113
-          ),
114
-          'not' => FALSE,
113
+            ),
114
+            'not' => FALSE,
115
+        ),
115 116
         ),
116
-      ),
117
-      'logic' => 'and',
117
+        'logic' => 'and',
118 118
     ),
119
-  );
120
-  $display = new panels_display;
121
-  $display->layout = 'twocol_stacked';
122
-  $display->layout_settings = array(
119
+    );
120
+    $display = new panels_display;
121
+    $display->layout = 'twocol_stacked';
122
+    $display->layout_settings = array(
123 123
     'items' => array(
124
-      'canvas' => array(
124
+        'canvas' => array(
125 125
         'type' => 'row',
126 126
         'contains' => 'column',
127 127
         'children' => array(
128
-          0 => 'main',
129
-          1 => 2,
128
+            0 => 'main',
129
+            1 => 2,
130 130
         ),
131 131
         'parent' => NULL,
132
-      ),
133
-      'main' => array(
132
+        ),
133
+        'main' => array(
134 134
         'type' => 'column',
135 135
         'width' => 50,
136 136
         'width_type' => '%',
137 137
         'children' => array(
138
-          0 => 'main-row',
139
-          1 => 1,
138
+            0 => 'main-row',
139
+            1 => 1,
140 140
         ),
141 141
         'parent' => 'canvas',
142
-      ),
143
-      'main-row' => array(
142
+        ),
143
+        'main-row' => array(
144 144
         'type' => 'row',
145 145
         'contains' => 'region',
146 146
         'children' => array(
147
-          0 => 'center',
147
+            0 => 'center',
148 148
         ),
149 149
         'parent' => 'main',
150
-      ),
151
-      'center' => array(
150
+        ),
151
+        'center' => array(
152 152
         'type' => 'region',
153 153
         'title' => 'Center',
154 154
         'width' => 100,
155 155
         'width_type' => '%',
156 156
         'parent' => 'main-row',
157
-      ),
158
-      1 => array(
157
+        ),
158
+        1 => array(
159 159
         'type' => 'row',
160 160
         'contains' => 'region',
161 161
         'children' => array(
162
-          0 => 'top_teams',
162
+            0 => 'top_teams',
163 163
         ),
164 164
         'parent' => 'main',
165 165
         'class' => 'panel-primary container shadow',
166
-      ),
167
-      'top_teams' => array(
166
+        ),
167
+        'top_teams' => array(
168 168
         'type' => 'region',
169 169
         'title' => 'Top teams',
170 170
         'width' => 100,
171 171
         'width_type' => '%',
172 172
         'parent' => '1',
173 173
         'class' => 'panel-primary container shadow',
174
-      ),
175
-      2 => array(
174
+        ),
175
+        2 => array(
176 176
         'type' => 'column',
177 177
         'width' => 50,
178 178
         'width_type' => '%',
179 179
         'parent' => 'canvas',
180 180
         'children' => array(),
181 181
         'class' => '',
182
-      ),
182
+        ),
183 183
     ),
184
-  );
185
-  $display->panel_settings = array(
184
+    );
185
+    $display->panel_settings = array(
186 186
     'style_settings' => array(
187
-      'default' => NULL,
188
-      'center' => NULL,
189
-      'top_teams' => NULL,
190
-      'top' => NULL,
191
-      'left' => NULL,
192
-      'right' => NULL,
193
-      'bottom' => NULL,
194
-      'content' => NULL,
195
-      'sidebar_first' => NULL,
187
+        'default' => NULL,
188
+        'center' => NULL,
189
+        'top_teams' => NULL,
190
+        'top' => NULL,
191
+        'left' => NULL,
192
+        'right' => NULL,
193
+        'bottom' => NULL,
194
+        'content' => NULL,
195
+        'sidebar_first' => NULL,
196 196
     ),
197
-  );
198
-  $display->cache = array();
199
-  $display->title = 'Teams';
200
-  $display->storage_type = 'page_manager';
201
-  $display->storage_id = 'page_team_forums_panel_context_2';
202
-  $display->content = array();
203
-  $display->panels = array();
197
+    );
198
+    $display->cache = array();
199
+    $display->title = 'Teams';
200
+    $display->storage_type = 'page_manager';
201
+    $display->storage_id = 'page_team_forums_panel_context_2';
202
+    $display->content = array();
203
+    $display->panels = array();
204 204
     $pane = new stdClass;
205 205
     $pane->pid = 'new-1';
206 206
     $pane->panel = 'left';
@@ -209,19 +209,19 @@  discard block
 block discarded – undo
209 209
     $pane->shown = TRUE;
210 210
     $pane->access = array();
211 211
     $pane->configuration = array(
212
-      'admin_title' => 'Create team forum form',
213
-      'title' => '',
214
-      'body' => '<?php echo boincteam_forum_create_form_panel(); ?>',
215
-      'format' => '3',
216
-      'substitute' => 1,
212
+        'admin_title' => 'Create team forum form',
213
+        'title' => '',
214
+        'body' => '<?php echo boincteam_forum_create_form_panel(); ?>',
215
+        'format' => '3',
216
+        'substitute' => 1,
217 217
     );
218 218
     $pane->cache = array();
219 219
     $pane->style = array(
220
-      'settings' => NULL,
220
+        'settings' => NULL,
221 221
     );
222 222
     $pane->css = array(
223
-      'css_id' => '',
224
-      'css_class' => 'panel-primary container shadow',
223
+        'css_id' => '',
224
+        'css_class' => 'panel-primary container shadow',
225 225
     );
226 226
     $pane->extras = array();
227 227
     $pane->position = 0;
@@ -235,37 +235,37 @@  discard block
 block discarded – undo
235 235
     $pane->shown = TRUE;
236 236
     $pane->access = array();
237 237
     $pane->configuration = array(
238
-      'admin_title' => 'About team forums',
239
-      'title' => '',
240
-      'body' => '<?php echo boincteam_forum_topic_overview_panel(%team_id:nid); ?>',
241
-      'format' => '3',
242
-      'substitute' => 1,
238
+        'admin_title' => 'About team forums',
239
+        'title' => '',
240
+        'body' => '<?php echo boincteam_forum_topic_overview_panel(%team_id:nid); ?>',
241
+        'format' => '3',
242
+        'substitute' => 1,
243 243
     );
244 244
     $pane->cache = array();
245 245
     $pane->style = array(
246
-      'settings' => NULL,
246
+        'settings' => NULL,
247 247
     );
248 248
     $pane->css = array(
249
-      'css_id' => '',
250
-      'css_class' => 'panel-secondary container shadow',
249
+        'css_id' => '',
250
+        'css_class' => 'panel-secondary container shadow',
251 251
     );
252 252
     $pane->extras = array();
253 253
     $pane->position = 0;
254 254
     $display->content['new-2'] = $pane;
255 255
     $display->panels['right'][0] = 'new-2';
256
-  $display->hide_title = PANELS_TITLE_FIXED;
257
-  $display->title_pane = 'new-1';
258
-  $handler->conf['display'] = $display;
259
-  $page->default_handlers[$handler->name] = $handler;
260
-  $handler = new stdClass;
261
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
262
-  $handler->api_version = 1;
263
-  $handler->name = 'page_team_forums_panel_context_3';
264
-  $handler->task = 'page';
265
-  $handler->subtask = 'team_forums';
266
-  $handler->handler = 'panel_context';
267
-  $handler->weight = -29;
268
-  $handler->conf = array(
256
+    $display->hide_title = PANELS_TITLE_FIXED;
257
+    $display->title_pane = 'new-1';
258
+    $handler->conf['display'] = $display;
259
+    $page->default_handlers[$handler->name] = $handler;
260
+    $handler = new stdClass;
261
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
262
+    $handler->api_version = 1;
263
+    $handler->name = 'page_team_forums_panel_context_3';
264
+    $handler->task = 'page';
265
+    $handler->subtask = 'team_forums';
266
+    $handler->handler = 'panel_context';
267
+    $handler->weight = -29;
268
+    $handler->conf = array(
269 269
     'title' => 'Edit team forum',
270 270
     'no_blocks' => 0,
271 271
     'pipeline' => 'standard',
@@ -274,123 +274,123 @@  discard block
 block discarded – undo
274 274
     'contexts' => array(),
275 275
     'relationships' => array(),
276 276
     'access' => array(
277
-      'plugins' => array(
277
+        'plugins' => array(
278 278
         0 => array(
279
-          'name' => 'path_visibility',
280
-          'settings' => array(
279
+            'name' => 'path_visibility',
280
+            'settings' => array(
281 281
             'visibility_setting' => '1',
282 282
             'paths' => 'community/teams/*/forum/*/edit',
283
-          ),
284
-          'context' => 'empty',
285
-          'not' => FALSE,
283
+            ),
284
+            'context' => 'empty',
285
+            'not' => FALSE,
286 286
         ),
287 287
         1 => array(
288
-          'name' => 'role',
289
-          'settings' => array(
288
+            'name' => 'role',
289
+            'settings' => array(
290 290
             'rids' => array(
291
-              0 => 2,
291
+                0 => 2,
292 292
             ),
293
-          ),
294
-          'context' => 'logged-in-user',
295
-          'not' => FALSE,
293
+            ),
294
+            'context' => 'logged-in-user',
295
+            'not' => FALSE,
296 296
         ),
297 297
         2 => array(
298
-          'name' => 'php',
299
-          'settings' => array(
298
+            'name' => 'php',
299
+            'settings' => array(
300 300
             'description' => 'User is team founder',
301 301
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
302 302
 return boincteam_is_founder($team_id);',
303
-          ),
304
-          'not' => FALSE,
303
+            ),
304
+            'not' => FALSE,
305 305
         ),
306
-      ),
307
-      'logic' => 'and',
306
+        ),
307
+        'logic' => 'and',
308 308
     ),
309
-  );
310
-  $display = new panels_display;
311
-  $display->layout = 'twocol_stacked';
312
-  $display->layout_settings = array(
309
+    );
310
+    $display = new panels_display;
311
+    $display->layout = 'twocol_stacked';
312
+    $display->layout_settings = array(
313 313
     'items' => array(
314
-      'canvas' => array(
314
+        'canvas' => array(
315 315
         'type' => 'row',
316 316
         'contains' => 'column',
317 317
         'children' => array(
318
-          0 => 'main',
319
-          1 => 2,
318
+            0 => 'main',
319
+            1 => 2,
320 320
         ),
321 321
         'parent' => NULL,
322
-      ),
323
-      'main' => array(
322
+        ),
323
+        'main' => array(
324 324
         'type' => 'column',
325 325
         'width' => 50,
326 326
         'width_type' => '%',
327 327
         'children' => array(
328
-          0 => 'main-row',
329
-          1 => 1,
328
+            0 => 'main-row',
329
+            1 => 1,
330 330
         ),
331 331
         'parent' => 'canvas',
332
-      ),
333
-      'main-row' => array(
332
+        ),
333
+        'main-row' => array(
334 334
         'type' => 'row',
335 335
         'contains' => 'region',
336 336
         'children' => array(
337
-          0 => 'center',
337
+            0 => 'center',
338 338
         ),
339 339
         'parent' => 'main',
340
-      ),
341
-      'center' => array(
340
+        ),
341
+        'center' => array(
342 342
         'type' => 'region',
343 343
         'title' => 'Center',
344 344
         'width' => 100,
345 345
         'width_type' => '%',
346 346
         'parent' => 'main-row',
347
-      ),
348
-      1 => array(
347
+        ),
348
+        1 => array(
349 349
         'type' => 'row',
350 350
         'contains' => 'region',
351 351
         'children' => array(
352
-          0 => 'top_teams',
352
+            0 => 'top_teams',
353 353
         ),
354 354
         'parent' => 'main',
355 355
         'class' => 'panel-primary container shadow',
356
-      ),
357
-      'top_teams' => array(
356
+        ),
357
+        'top_teams' => array(
358 358
         'type' => 'region',
359 359
         'title' => 'Top teams',
360 360
         'width' => 100,
361 361
         'width_type' => '%',
362 362
         'parent' => '1',
363 363
         'class' => 'panel-primary container shadow',
364
-      ),
365
-      2 => array(
364
+        ),
365
+        2 => array(
366 366
         'type' => 'column',
367 367
         'width' => 50,
368 368
         'width_type' => '%',
369 369
         'parent' => 'canvas',
370 370
         'children' => array(),
371 371
         'class' => '',
372
-      ),
372
+        ),
373 373
     ),
374
-  );
375
-  $display->panel_settings = array(
374
+    );
375
+    $display->panel_settings = array(
376 376
     'style_settings' => array(
377
-      'default' => NULL,
378
-      'center' => NULL,
379
-      'top_teams' => NULL,
380
-      'top' => NULL,
381
-      'left' => NULL,
382
-      'right' => NULL,
383
-      'bottom' => NULL,
384
-      'content' => NULL,
385
-      'sidebar_first' => NULL,
377
+        'default' => NULL,
378
+        'center' => NULL,
379
+        'top_teams' => NULL,
380
+        'top' => NULL,
381
+        'left' => NULL,
382
+        'right' => NULL,
383
+        'bottom' => NULL,
384
+        'content' => NULL,
385
+        'sidebar_first' => NULL,
386 386
     ),
387
-  );
388
-  $display->cache = array();
389
-  $display->title = 'Teams';
390
-  $display->storage_type = 'page_manager';
391
-  $display->storage_id = 'page_team_forums_panel_context_3';
392
-  $display->content = array();
393
-  $display->panels = array();
387
+    );
388
+    $display->cache = array();
389
+    $display->title = 'Teams';
390
+    $display->storage_type = 'page_manager';
391
+    $display->storage_id = 'page_team_forums_panel_context_3';
392
+    $display->content = array();
393
+    $display->panels = array();
394 394
     $pane = new stdClass;
395 395
     $pane->pid = 'new-1';
396 396
     $pane->panel = 'left';
@@ -399,19 +399,19 @@  discard block
 block discarded – undo
399 399
     $pane->shown = TRUE;
400 400
     $pane->access = array();
401 401
     $pane->configuration = array(
402
-      'admin_title' => 'Edit team forum form',
403
-      'title' => '',
404
-      'body' => '<?php echo boincteam_forum_edit_form_panel(%option_1:raw); ?>',
405
-      'format' => '3',
406
-      'substitute' => 1,
402
+        'admin_title' => 'Edit team forum form',
403
+        'title' => '',
404
+        'body' => '<?php echo boincteam_forum_edit_form_panel(%option_1:raw); ?>',
405
+        'format' => '3',
406
+        'substitute' => 1,
407 407
     );
408 408
     $pane->cache = array();
409 409
     $pane->style = array(
410
-      'settings' => NULL,
410
+        'settings' => NULL,
411 411
     );
412 412
     $pane->css = array(
413
-      'css_id' => '',
414
-      'css_class' => 'panel-primary container shadow',
413
+        'css_id' => '',
414
+        'css_class' => 'panel-primary container shadow',
415 415
     );
416 416
     $pane->extras = array();
417 417
     $pane->position = 0;
@@ -425,37 +425,37 @@  discard block
 block discarded – undo
425 425
     $pane->shown = TRUE;
426 426
     $pane->access = array();
427 427
     $pane->configuration = array(
428
-      'admin_title' => 'About team forums',
429
-      'title' => '',
430
-      'body' => '<?php echo boincteam_forum_topic_overview_panel(); ?>',
431
-      'format' => '3',
432
-      'substitute' => 1,
428
+        'admin_title' => 'About team forums',
429
+        'title' => '',
430
+        'body' => '<?php echo boincteam_forum_topic_overview_panel(); ?>',
431
+        'format' => '3',
432
+        'substitute' => 1,
433 433
     );
434 434
     $pane->cache = array();
435 435
     $pane->style = array(
436
-      'settings' => NULL,
436
+        'settings' => NULL,
437 437
     );
438 438
     $pane->css = array(
439
-      'css_id' => '',
440
-      'css_class' => 'panel-secondary container shadow',
439
+        'css_id' => '',
440
+        'css_class' => 'panel-secondary container shadow',
441 441
     );
442 442
     $pane->extras = array();
443 443
     $pane->position = 0;
444 444
     $display->content['new-2'] = $pane;
445 445
     $display->panels['right'][0] = 'new-2';
446
-  $display->hide_title = PANELS_TITLE_FIXED;
447
-  $display->title_pane = 'new-1';
448
-  $handler->conf['display'] = $display;
449
-  $page->default_handlers[$handler->name] = $handler;
450
-  $handler = new stdClass;
451
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
452
-  $handler->api_version = 1;
453
-  $handler->name = 'page_team_forums_panel_context';
454
-  $handler->task = 'page';
455
-  $handler->subtask = 'team_forums';
456
-  $handler->handler = 'panel_context';
457
-  $handler->weight = -28;
458
-  $handler->conf = array(
446
+    $display->hide_title = PANELS_TITLE_FIXED;
447
+    $display->title_pane = 'new-1';
448
+    $handler->conf['display'] = $display;
449
+    $page->default_handlers[$handler->name] = $handler;
450
+    $handler = new stdClass;
451
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
452
+    $handler->api_version = 1;
453
+    $handler->name = 'page_team_forums_panel_context';
454
+    $handler->task = 'page';
455
+    $handler->subtask = 'team_forums';
456
+    $handler->handler = 'panel_context';
457
+    $handler->weight = -28;
458
+    $handler->conf = array(
459 459
     'title' => 'View team forum',
460 460
     'no_blocks' => 0,
461 461
     'pipeline' => 'standard',
@@ -464,29 +464,29 @@  discard block
 block discarded – undo
464 464
     'contexts' => array(),
465 465
     'relationships' => array(),
466 466
     'access' => array(
467
-      'plugins' => array(
467
+        'plugins' => array(
468 468
         0 => array(
469
-          'name' => 'path_visibility',
470
-          'settings' => array(
469
+            'name' => 'path_visibility',
470
+            'settings' => array(
471 471
             'visibility_setting' => '1',
472 472
             'paths' => 'community/teams/*/forum/*',
473
-          ),
474
-          'context' => 'empty',
475
-          'not' => FALSE,
473
+            ),
474
+            'context' => 'empty',
475
+            'not' => FALSE,
476 476
         ),
477 477
         1 => array(
478
-          'name' => 'role',
479
-          'settings' => array(
478
+            'name' => 'role',
479
+            'settings' => array(
480 480
             'rids' => array(
481
-              0 => 2,
481
+                0 => 2,
482
+            ),
482 483
             ),
483
-          ),
484
-          'context' => 'logged-in-user',
485
-          'not' => FALSE,
484
+            'context' => 'logged-in-user',
485
+            'not' => FALSE,
486 486
         ),
487 487
         2 => array(
488
-          'name' => 'php',
489
-          'settings' => array(
488
+            'name' => 'php',
489
+            'settings' => array(
490 490
             'description' => 'A member of this team, the forum is public, or has global team moderation',
491 491
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
492 492
 $team_forum_id = $contexts[\'argument_string_1\']->data;
@@ -498,98 +498,98 @@  discard block
 block discarded – undo
498 498
   );
499 499
 }
500 500
 return FALSE;',
501
-          ),
502
-          'not' => FALSE,
501
+            ),
502
+            'not' => FALSE,
503
+        ),
503 504
         ),
504
-      ),
505
-      'logic' => 'and',
505
+        'logic' => 'and',
506 506
     ),
507
-  );
508
-  $display = new panels_display;
509
-  $display->layout = 'onecol';
510
-  $display->layout_settings = array(
507
+    );
508
+    $display = new panels_display;
509
+    $display->layout = 'onecol';
510
+    $display->layout_settings = array(
511 511
     'items' => array(
512
-      'canvas' => array(
512
+        'canvas' => array(
513 513
         'type' => 'row',
514 514
         'contains' => 'column',
515 515
         'children' => array(
516
-          0 => 'main',
517
-          1 => 2,
516
+            0 => 'main',
517
+            1 => 2,
518 518
         ),
519 519
         'parent' => NULL,
520
-      ),
521
-      'main' => array(
520
+        ),
521
+        'main' => array(
522 522
         'type' => 'column',
523 523
         'width' => 50,
524 524
         'width_type' => '%',
525 525
         'children' => array(
526
-          0 => 'main-row',
527
-          1 => 1,
526
+            0 => 'main-row',
527
+            1 => 1,
528 528
         ),
529 529
         'parent' => 'canvas',
530
-      ),
531
-      'main-row' => array(
530
+        ),
531
+        'main-row' => array(
532 532
         'type' => 'row',
533 533
         'contains' => 'region',
534 534
         'children' => array(
535
-          0 => 'center',
535
+            0 => 'center',
536 536
         ),
537 537
         'parent' => 'main',
538
-      ),
539
-      'center' => array(
538
+        ),
539
+        'center' => array(
540 540
         'type' => 'region',
541 541
         'title' => 'Center',
542 542
         'width' => 100,
543 543
         'width_type' => '%',
544 544
         'parent' => 'main-row',
545
-      ),
546
-      1 => array(
545
+        ),
546
+        1 => array(
547 547
         'type' => 'row',
548 548
         'contains' => 'region',
549 549
         'children' => array(
550
-          0 => 'top_teams',
550
+            0 => 'top_teams',
551 551
         ),
552 552
         'parent' => 'main',
553 553
         'class' => 'panel-primary container shadow',
554
-      ),
555
-      'top_teams' => array(
554
+        ),
555
+        'top_teams' => array(
556 556
         'type' => 'region',
557 557
         'title' => 'Top teams',
558 558
         'width' => 100,
559 559
         'width_type' => '%',
560 560
         'parent' => '1',
561 561
         'class' => 'panel-primary container shadow',
562
-      ),
563
-      2 => array(
562
+        ),
563
+        2 => array(
564 564
         'type' => 'column',
565 565
         'width' => 50,
566 566
         'width_type' => '%',
567 567
         'parent' => 'canvas',
568 568
         'children' => array(),
569 569
         'class' => '',
570
-      ),
570
+        ),
571 571
     ),
572
-  );
573
-  $display->panel_settings = array(
572
+    );
573
+    $display->panel_settings = array(
574 574
     'style_settings' => array(
575
-      'default' => NULL,
576
-      'center' => NULL,
577
-      'top_teams' => NULL,
578
-      'top' => NULL,
579
-      'left' => NULL,
580
-      'right' => NULL,
581
-      'bottom' => NULL,
582
-      'content' => NULL,
583
-      'sidebar_first' => NULL,
584
-      'middle' => NULL,
575
+        'default' => NULL,
576
+        'center' => NULL,
577
+        'top_teams' => NULL,
578
+        'top' => NULL,
579
+        'left' => NULL,
580
+        'right' => NULL,
581
+        'bottom' => NULL,
582
+        'content' => NULL,
583
+        'sidebar_first' => NULL,
584
+        'middle' => NULL,
585 585
     ),
586
-  );
587
-  $display->cache = array();
588
-  $display->title = 'Team Forums';
589
-  $display->storage_type = 'page_manager';
590
-  $display->storage_id = 'page_team_forums_panel_context';
591
-  $display->content = array();
592
-  $display->panels = array();
586
+    );
587
+    $display->cache = array();
588
+    $display->title = 'Team Forums';
589
+    $display->storage_type = 'page_manager';
590
+    $display->storage_id = 'page_team_forums_panel_context';
591
+    $display->content = array();
592
+    $display->panels = array();
593 593
     $pane = new stdClass;
594 594
     $pane->pid = 'new-1';
595 595
     $pane->panel = 'middle';
@@ -598,27 +598,27 @@  discard block
 block discarded – undo
598 598
     $pane->shown = TRUE;
599 599
     $pane->access = array();
600 600
     $pane->configuration = array(
601
-      'override_title' => 0,
602
-      'override_title_text' => '',
601
+        'override_title' => 0,
602
+        'override_title_text' => '',
603 603
     );
604 604
     $pane->cache = array();
605 605
     $pane->style = array(
606
-      'settings' => NULL,
606
+        'settings' => NULL,
607 607
     );
608 608
     $pane->css = array(
609
-      'css_id' => '',
610
-      'css_class' => 'section framing container shadow',
609
+        'css_id' => '',
610
+        'css_class' => 'section framing container shadow',
611 611
     );
612 612
     $pane->extras = array();
613 613
     $pane->position = 0;
614 614
     $display->content['new-1'] = $pane;
615 615
     $display->panels['middle'][0] = 'new-1';
616
-  $display->hide_title = PANELS_TITLE_FIXED;
617
-  $display->title_pane = '0';
618
-  $handler->conf['display'] = $display;
619
-  $page->default_handlers[$handler->name] = $handler;
620
-  $pages['team_forums'] = $page;
616
+    $display->hide_title = PANELS_TITLE_FIXED;
617
+    $display->title_pane = '0';
618
+    $handler->conf['display'] = $display;
619
+    $page->default_handlers[$handler->name] = $handler;
620
+    $pages['team_forums'] = $page;
621 621
 
622
- return $pages;
622
+    return $pages;
623 623
 
624 624
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincimport/includes/import_team.php 4 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
   $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
33 33
   // FIXME: $team_exists==FALSE should be handled as an error and return an error code!
34 34
 
35
-  if ($team_exists != FALSE && db_fetch_object($team_exists) == FALSE) {
35
+  if ($team_exists != false && db_fetch_object($team_exists) == false) {
36 36
     $boincteam->description = _boincimport_text_sanitize($boincteam->description);
37 37
     $teaser = node_teaser($boincteam->description);
38 38
     
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
   db_set_active('boinc_rw');
27 27
   $boincteam = db_fetch_object(db_query('SELECT * FROM team WHERE id=%d', array($team_id)));
28 28
   $boincteam_members = db_query('SELECT id FROM user WHERE teamid=%d', array($team_id));
29
-  $boincteam_admin = (int) db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
29
+  $boincteam_admin = (int)db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
30 30
   db_set_active('default');
31 31
   
32 32
   $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
       'teaser' => $teaser,
45 45
       'uid' => boincuser_lookup_uid($boincteam->userid),
46 46
       'path' => null,
47
-      'status' => 1,  // published or not - always publish
47
+      'status' => 1, // published or not - always publish
48 48
       'promote' => 0,
49 49
       'created' => $boincteam->create_time,
50
-      'comment' => 0,  // comments disabled
50
+      'comment' => 0, // comments disabled
51 51
       'moderate' => 0,
52 52
       'sticky' => 0,
53 53
       'format' => $input_format
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
       exit;
64 64
     }
65 65
     
66
-    $node = (object) $node; // node_save requires an object form
66
+    $node = (object)$node; // node_save requires an object form
67 67
     
68 68
     $node->taxonomy[] = taxonomy_get_term($team_type_tid);
69 69
     
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
   db_set_active('default');
82 82
   if ($boincteam_member_ids) {
83 83
     $team_members = db_query('SELECT uid FROM {boincuser} WHERE boinc_id IN(%s)', implode(',', $boincteam_member_ids));
84
-    $team_admin = (int) db_result(db_query('SELECT uid FROM {boincuser} WHERE boinc_id=%d', $boincteam_admin));
84
+    $team_admin = (int)db_result(db_query('SELECT uid FROM {boincuser} WHERE boinc_id=%d', $boincteam_admin));
85 85
     
86 86
     while ($drupal_user = db_fetch_object($team_members)) {
87 87
       // Add action to take on member accounts?
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
     if (module_exists('pathauto')) {
58 58
       module_load_include('inc', 'pathauto', 'pathauto');
59 59
       $node['path'] = pathauto_cleanstring($boincteam->name);
60
-    }
61
-    else {
60
+    } else {
62 61
       echo 'Pathauto module is required!';
63 62
       exit;
64 63
     }
@@ -77,7 +76,9 @@  discard block
 block discarded – undo
77 76
   // Determine team membership
78 77
   db_set_active('boinc_rw');
79 78
   $boincteam_member_ids = array();
80
-  while ($boincuser = db_fetch_object($boincteam_members)) $boincteam_member_ids[] = $boincuser->id;
79
+  while ($boincuser = db_fetch_object($boincteam_members)) {
80
+      $boincteam_member_ids[] = $boincuser->id;
81
+  }
81 82
   db_set_active('default');
82 83
   if ($boincteam_member_ids) {
83 84
     $team_members = db_query('SELECT uid FROM {boincuser} WHERE boinc_id IN(%s)', implode(',', $boincteam_member_ids));
Please login to merge, or discard this patch.
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -11,56 +11,56 @@  discard block
 block discarded – undo
11 11
  * at a time and avoid exhausting memory.
12 12
  */
13 13
 
14
-  require_once('./includes/bootstrap.inc');
15
-  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
16
-  require_boinc('db');
14
+    require_once('./includes/bootstrap.inc');
15
+    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
16
+    require_boinc('db');
17 17
 
18
-  // Parse arguments
19
-  $team_id = isset($argv[1]) ? $argv[1] : null;
20
-  $team_type_tid = isset($argv[2]) ? $argv[2] : null;
21
-  $input_format = isset($argv[3]) ? $argv[3] : null;
18
+    // Parse arguments
19
+    $team_id = isset($argv[1]) ? $argv[1] : null;
20
+    $team_type_tid = isset($argv[2]) ? $argv[2] : null;
21
+    $input_format = isset($argv[3]) ? $argv[3] : null;
22 22
 
23
-  $count = 0;
23
+    $count = 0;
24 24
 
25
-  // Get teams from BOINC
26
-  db_set_active('boinc_rw');
27
-  $boincteam = db_fetch_object(db_query('SELECT * FROM team WHERE id=%d', array($team_id)));
28
-  $boincteam_members = db_query('SELECT id FROM user WHERE teamid=%d', array($team_id));
29
-  $boincteam_admin = (int) db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
30
-  db_set_active('default');
25
+    // Get teams from BOINC
26
+    db_set_active('boinc_rw');
27
+    $boincteam = db_fetch_object(db_query('SELECT * FROM team WHERE id=%d', array($team_id)));
28
+    $boincteam_members = db_query('SELECT id FROM user WHERE teamid=%d', array($team_id));
29
+    $boincteam_admin = (int) db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
30
+    db_set_active('default');
31 31
 
32
-  $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
33
-  // FIXME: $team_exists==FALSE should be handled as an error and return an error code!
32
+    $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
33
+    // FIXME: $team_exists==FALSE should be handled as an error and return an error code!
34 34
 
35
-  if ($team_exists != FALSE && db_fetch_object($team_exists) == FALSE) {
35
+    if ($team_exists != FALSE && db_fetch_object($team_exists) == FALSE) {
36 36
     $boincteam->description = _boincimport_text_sanitize($boincteam->description);
37 37
     $teaser = node_teaser($boincteam->description);
38 38
 
39 39
     // Construct the team as an organic group node
40 40
     $node = array(
41
-      'type' => 'team',
42
-      'title' => $boincteam->name,
43
-      'body' => $boincteam->description,
44
-      'teaser' => $teaser,
45
-      'uid' => boincuser_lookup_uid($boincteam->userid),
46
-      'path' => null,
47
-      'status' => 1,  // published or not - always publish
48
-      'promote' => 0,
49
-      'created' => $boincteam->create_time,
50
-      'comment' => 0,  // comments disabled
51
-      'moderate' => 0,
52
-      'sticky' => 0,
53
-      'format' => $input_format
41
+        'type' => 'team',
42
+        'title' => $boincteam->name,
43
+        'body' => $boincteam->description,
44
+        'teaser' => $teaser,
45
+        'uid' => boincuser_lookup_uid($boincteam->userid),
46
+        'path' => null,
47
+        'status' => 1,  // published or not - always publish
48
+        'promote' => 0,
49
+        'created' => $boincteam->create_time,
50
+        'comment' => 0,  // comments disabled
51
+        'moderate' => 0,
52
+        'sticky' => 0,
53
+        'format' => $input_format
54 54
     );
55 55
 
56 56
     // Use pathauto function, if available, to clean up the path
57 57
     if (module_exists('pathauto')) {
58
-      module_load_include('inc', 'pathauto', 'pathauto');
59
-      $node['path'] = pathauto_cleanstring($boincteam->name);
58
+        module_load_include('inc', 'pathauto', 'pathauto');
59
+        $node['path'] = pathauto_cleanstring($boincteam->name);
60 60
     }
61 61
     else {
62
-      echo 'Pathauto module is required!';
63
-      exit;
62
+        echo 'Pathauto module is required!';
63
+        exit;
64 64
     }
65 65
 
66 66
     $node = (object) $node; // node_save requires an object form
@@ -72,22 +72,22 @@  discard block
 block discarded – undo
72 72
 
73 73
     // Save the team IDs to a BOINC <--> Drupal reference table.
74 74
     db_query('INSERT INTO {boincteam} (team_id, nid) VALUES (%d, %d)', $boincteam->id, $node->nid);
75
-  }
76
-
77
-  // Determine team membership
78
-  db_set_active('boinc_rw');
79
-  $boincteam_member_ids = array();
80
-  while ($boincuser = db_fetch_object($boincteam_members)) $boincteam_member_ids[] = $boincuser->id;
81
-  db_set_active('default');
82
-  if ($boincteam_member_ids) {
75
+    }
76
+
77
+    // Determine team membership
78
+    db_set_active('boinc_rw');
79
+    $boincteam_member_ids = array();
80
+    while ($boincuser = db_fetch_object($boincteam_members)) $boincteam_member_ids[] = $boincuser->id;
81
+    db_set_active('default');
82
+    if ($boincteam_member_ids) {
83 83
     $team_members = db_query('SELECT uid FROM {boincuser} WHERE boinc_id IN(%s)', implode(',', $boincteam_member_ids));
84 84
     $team_admin = (int) db_result(db_query('SELECT uid FROM {boincuser} WHERE boinc_id=%d', $boincteam_admin));
85 85
 
86 86
     while ($drupal_user = db_fetch_object($team_members)) {
87
-      // Add action to take on member accounts?
88
-      $count++;
87
+        // Add action to take on member accounts?
88
+        $count++;
89
+    }
89 90
     }
90
-  }
91 91
 
92
-  echo $count;
92
+    echo $count;
93 93
 
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincteam/boincteam_forum.views.inc 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
     'help' => t('The ID of the team forum containing this topic.'),
38 38
     'field' => array(
39 39
       'handler' => 'views_handler_field_numeric',
40
-      'click sortable' => TRUE
40
+      'click sortable' => true
41 41
     ),
42 42
     'argument' => array(
43 43
       'handler' => 'views_handler_argument_numeric',
44 44
       'name field' => 'title', // the field to display in the summary.
45
-      'numeric' => TRUE,
45
+      'numeric' => true,
46 46
       'validate type' => 'id'
47 47
     ),
48 48
     'relationship' => array(
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     ),
76 76
     'field' => array(
77 77
       'handler' => 'views_handler_field_numeric',
78
-      'click sortable' => TRUE
78
+      'click sortable' => true
79 79
     ),
80 80
     'filter' => array(
81 81
       'handler' => 'views_handler_filter_numeric'
Please login to merge, or discard this patch.
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -13,80 +13,80 @@
 block discarded – undo
13 13
  */
14 14
 function boincteam_forum_views_data() {
15 15
 
16
-  // -----------------------------------------------------------------------------------------------
17
-  // Definition for team table
18
-  // -----------------------------------------------------------------------------------------------
16
+    // -----------------------------------------------------------------------------------------------
17
+    // Definition for team table
18
+    // -----------------------------------------------------------------------------------------------
19 19
 
20
-  $data['boincteam_forum_node']['table']['group'] = t('BOINC');
20
+    $data['boincteam_forum_node']['table']['group'] = t('BOINC');
21 21
 
22
-  $data['boincteam_forum_node']['table']['base'] = array(
23
-      'field' => 'nid',
24
-      'title' => t('BOINC team forum topic'),
25
-      'help' => t('Forum topics for a team'),
26
-  );
22
+    $data['boincteam_forum_node']['table']['base'] = array(
23
+        'field' => 'nid',
24
+        'title' => t('BOINC team forum topic'),
25
+        'help' => t('Forum topics for a team'),
26
+    );
27 27
 
28
-  // Describe each of the individual fields in this table to Views. For
29
-  // each field, you may define what field, sort, argument, and/or filter
30
-  // handlers it supports. This will determine where in the Views interface you
31
-  // may use the field.
28
+    // Describe each of the individual fields in this table to Views. For
29
+    // each field, you may define what field, sort, argument, and/or filter
30
+    // handlers it supports. This will determine where in the Views interface you
31
+    // may use the field.
32 32
 
33
-  // Primary keys allowed as arguments
33
+    // Primary keys allowed as arguments
34 34
 
35
-  $data['boincteam_forum_node']['tfid'] = array(
35
+    $data['boincteam_forum_node']['tfid'] = array(
36 36
     'title' => t('Team forum ID'),
37 37
     'help' => t('The ID of the team forum containing this topic.'),
38 38
     'field' => array(
39
-      'handler' => 'views_handler_field_numeric',
40
-      'click sortable' => TRUE
39
+        'handler' => 'views_handler_field_numeric',
40
+        'click sortable' => TRUE
41 41
     ),
42 42
     'argument' => array(
43
-      'handler' => 'views_handler_argument_numeric',
44
-      'name field' => 'title', // the field to display in the summary.
45
-      'numeric' => TRUE,
46
-      'validate type' => 'id'
43
+        'handler' => 'views_handler_argument_numeric',
44
+        'name field' => 'title', // the field to display in the summary.
45
+        'numeric' => TRUE,
46
+        'validate type' => 'id'
47 47
     ),
48 48
     'relationship' => array(
49
-      'base' => 'boincteam_forum',
50
-      'field' => 'tfid',
51
-      'handler' => 'views_handler_relationship',
52
-      'label' => t('Team Forum')
49
+        'base' => 'boincteam_forum',
50
+        'field' => 'tfid',
51
+        'handler' => 'views_handler_relationship',
52
+        'label' => t('Team Forum')
53 53
     ),
54 54
     'filter' => array(
55
-      'handler' => 'views_handler_filter_numeric'
55
+        'handler' => 'views_handler_filter_numeric'
56 56
     ),
57 57
     'sort' => array(
58
-      'handler' => 'views_handler_sort_numeric'
58
+        'handler' => 'views_handler_sort_numeric'
59 59
     )
60
-  );
60
+    );
61 61
 
62
-  // Foreign key fields
62
+    // Foreign key fields
63 63
 
64
-  $data['boincteam_forum_node']['nid'] = array(
64
+    $data['boincteam_forum_node']['nid'] = array(
65 65
     'title' => t('Team forum node'),
66 66
     'help' => t('The node containing the content of this team forum topic.'),
67 67
     // This is a foreign key to the {node} table. When the view is configured
68 68
     // with this relationship, all the fields for the related user node will be
69 69
     // available.
70 70
     'relationship' => array(
71
-      'base' => 'node',
72
-      'field' => 'nid',
73
-      'handler' => 'views_handler_relationship',
74
-      'label' => t('Team Forum Topic Node')
71
+        'base' => 'node',
72
+        'field' => 'nid',
73
+        'handler' => 'views_handler_relationship',
74
+        'label' => t('Team Forum Topic Node')
75 75
     ),
76 76
     'field' => array(
77
-      'handler' => 'views_handler_field_numeric',
78
-      'click sortable' => TRUE
77
+        'handler' => 'views_handler_field_numeric',
78
+        'click sortable' => TRUE
79 79
     ),
80 80
     'filter' => array(
81
-      'handler' => 'views_handler_filter_numeric'
81
+        'handler' => 'views_handler_filter_numeric'
82 82
     ),
83 83
     'sort' => array(
84
-      'handler' => 'views_handler_sort_numeric'
84
+        'handler' => 'views_handler_sort_numeric'
85 85
     )
86
-  );
86
+    );
87 87
 
88
-  // Descriptions of general fields (alphabetized)
89
-  // ...
88
+    // Descriptions of general fields (alphabetized)
89
+    // ...
90 90
 
91
-  return $data;
91
+    return $data;
92 92
 }
Please login to merge, or discard this patch.
sites/default/boinc/modules/flag_comment_notify/flag_comment_notify.module 3 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
   $comment = _comment_load($data['cid']);
62 62
   $node = node_load($comment->nid);
63 63
   $author = user_load($comment->uid);
64
-  if ($account->mail AND $node->nid) {
64
+  if ($account->mail and $node->nid) {
65 65
     // Don't send notifications to the author of the comment
66 66
     if ($account->uid != $author->uid) {
67 67
       $params['account'] = $account;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
   $variables['!comment_url'] = url(
82 82
     "goto/comment/{$params['comment']->cid}",
83 83
     array(
84
-      'absolute' => TRUE,
84
+      'absolute' => true,
85 85
     )
86 86
   );
87 87
   $variables['!topic_name'] = $params['node']->title;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
   case 'insert':
31 31
     module_load_include('inc', 'drupal_queue', 'drupal_queue');
32 32
     $queue = DrupalQueue::get('flag_comment_notify');
33
-    $subscribed_users = array_keys((array) flag_get_content_flags('node', $a1['nid'], 'subscriptions'));
33
+    $subscribed_users = array_keys((array)flag_get_content_flags('node', $a1['nid'], 'subscriptions'));
34 34
     foreach ($subscribed_users as $uid) {
35
-      $queue->createItem(array('uid' => $uid, 'cid' => (int) $a1['cid']));
35
+      $queue->createItem(array('uid' => $uid, 'cid' => (int)$a1['cid']));
36 36
     }
37 37
     break;
38 38
   default:
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
   );
87 87
   $variables['!topic_name'] = $params['node']->title;
88 88
   $variables['!author'] = $params['author']->name;
89
-  switch($key) {
89
+  switch ($key) {
90 90
   case 'comment_posted':
91 91
     $message['subject'] = bts('!site: comment posted to "!topic_name"', $variables,
92 92
       $language->language, 'boinc:forum-topic-subscription-email-notification');
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
  * Implementation of hook_comment();
27 27
  */
28 28
 function flag_comment_notify_comment(&$a1, $op) {
29
-  switch ($op) {
30
-  case 'insert':
29
+    switch ($op) {
30
+    case 'insert':
31 31
     module_load_include('inc', 'drupal_queue', 'drupal_queue');
32 32
     $queue = DrupalQueue::get('flag_comment_notify');
33 33
     $subscribed_users = array_keys((array) flag_get_content_flags('node', $a1['nid'], 'subscriptions'));
34 34
     foreach ($subscribed_users as $uid) {
35
-      $queue->createItem(array('uid' => $uid, 'cid' => (int) $a1['cid']));
35
+        $queue->createItem(array('uid' => $uid, 'cid' => (int) $a1['cid']));
36 36
     }
37 37
     break;
38
-  default:
38
+    default:
39 39
   }
40 40
 }
41 41
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
  * Implementation of hook_cron_queue_info()
44 44
  */
45 45
 function flag_comment_notify_cron_queue_info() {
46
-  $queues = array();
47
-  $queues['flag_comment_notify'] = array(
46
+    $queues = array();
47
+    $queues['flag_comment_notify'] = array(
48 48
     'worker callback' => 'flag_comment_notify_send_notification',
49 49
     'time' => 60,
50
-  );
51
-  return $queues;
50
+    );
51
+    return $queues;
52 52
 }
53 53
 
54 54
 
@@ -57,44 +57,44 @@  discard block
 block discarded – undo
57 57
  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  */
58 58
 
59 59
 function flag_comment_notify_send_notification($data) {
60
-  $account = user_load($data['uid']);
61
-  $comment = _comment_load($data['cid']);
62
-  $node = node_load($comment->nid);
63
-  $author = user_load($comment->uid);
64
-  if ($account->mail AND $node->nid) {
60
+    $account = user_load($data['uid']);
61
+    $comment = _comment_load($data['cid']);
62
+    $node = node_load($comment->nid);
63
+    $author = user_load($comment->uid);
64
+    if ($account->mail AND $node->nid) {
65 65
     // Don't send notifications to the author of the comment
66 66
     if ($account->uid != $author->uid) {
67
-      $params['account'] = $account;
68
-      $params['comment'] = $comment;
69
-      $params['node'] = $node;
70
-      $params['author'] = $author;
71
-      drupal_mail('flag_comment_notify', 'comment_posted', $account->mail,
67
+        $params['account'] = $account;
68
+        $params['comment'] = $comment;
69
+        $params['node'] = $node;
70
+        $params['author'] = $author;
71
+        drupal_mail('flag_comment_notify', 'comment_posted', $account->mail,
72 72
         user_preferred_language($account), $params);
73 73
     }
74
-  }
74
+    }
75 75
 }
76 76
 
77 77
 
78 78
 function flag_comment_notify_mail($key, &$message, $params) {
79
-  $language = $message['language'];
80
-  $variables = user_mail_tokens($params['account'], $language);
81
-  $variables['!comment_url'] = url(
79
+    $language = $message['language'];
80
+    $variables = user_mail_tokens($params['account'], $language);
81
+    $variables['!comment_url'] = url(
82 82
     "goto/comment/{$params['comment']->cid}",
83 83
     array(
84
-      'absolute' => TRUE,
84
+        'absolute' => TRUE,
85 85
     )
86
-  );
87
-  $variables['!topic_name'] = $params['node']->title;
88
-  $variables['!author'] = $params['author']->name;
89
-  switch($key) {
90
-  case 'comment_posted':
86
+    );
87
+    $variables['!topic_name'] = $params['node']->title;
88
+    $variables['!author'] = $params['author']->name;
89
+    switch($key) {
90
+    case 'comment_posted':
91 91
     $message['subject'] = bts('!site: comment posted to "!topic_name"', $variables,
92
-      $language->language, 'boinc:forum-topic-subscription-email-notification');
92
+        $language->language, 'boinc:forum-topic-subscription-email-notification');
93 93
     $message['body'][] = bts('!author has posted a reply to "!topic_name".',
94
-      $variables, $language->language, 'boinc:forum-topic-subscription-email-notification');
94
+        $variables, $language->language, 'boinc:forum-topic-subscription-email-notification');
95 95
     $message['body'][] = bts("To view this topic at !site, click here: \n!comment_url",
96
-      $variables, $language->language, 'boinc:forum-topic-subscription-email-notification');
96
+        $variables, $language->language, 'boinc:forum-topic-subscription-email-notification');
97 97
     break;
98
-  default:
98
+    default:
99 99
   }
100 100
 }
Please login to merge, or discard this patch.
html/user/top_hosts.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 if (!$hosts_per_page) {
30 30
     $hosts_per_page = 20;
31 31
 }
32
-define ('ITEM_LIMIT', 10000);
32
+define('ITEM_LIMIT', 10000);
33 33
 
34 34
 function get_top_hosts($offset, $sort_by) {
35 35
     global $hosts_per_page;
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 }
53 53
 
54 54
 $offset = get_int("offset", true);
55
-if (!$offset) $offset=0;
56
-if ($offset % $hosts_per_page) $offset = 0;
55
+if (!$offset) $offset = 0;
56
+if ($offset%$hosts_per_page) $offset = 0;
57 57
 
58 58
 if ($offset >= ITEM_LIMIT) {
59 59
     error_page(tra("Limit exceeded - Sorry, first %1 items only", ITEM_LIMIT));
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 
62 62
 $cache_args = "sort_by=$sort_by&offset=$offset";
63 63
 $cacheddata = get_cached_data(TOP_PAGES_TTL, $cache_args);
64
-if ($cacheddata){
64
+if ($cacheddata) {
65 65
     $data = unserialize($cacheddata);
66 66
 } else {
67
-    $data = get_top_hosts($offset,$sort_by);
67
+    $data = get_top_hosts($offset, $sort_by);
68 68
     set_cached_data(TOP_PAGES_TTL, serialize($data), $cache_args);
69 69
 };
70 70
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 top_host_table_start($sort_by);
76 76
 $i = 1 + $offset;
77 77
 $n = sizeof($data);
78
-foreach($data as $host) {
78
+foreach ($data as $host) {
79 79
     show_host_row($host, $i, false, true, false);
80 80
     $i++;
81 81
 }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 }
89 89
 
90
-if ($n==$hosts_per_page){ //If we aren't on the last page
90
+if ($n == $hosts_per_page) { //If we aren't on the last page
91 91
     $new_offset = $offset + $hosts_per_page;
92 92
     echo "<a href=top_hosts.php?sort_by=$sort_by&amp;offset=$new_offset>".tra("Next %1", $hosts_per_page)."</a>";
93 93
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 $cache_args = "sort_by=$sort_by&offset=$offset";
63 63
 $cacheddata = get_cached_data(TOP_PAGES_TTL, $cache_args);
64
-if ($cacheddata){
64
+if ($cacheddata) {
65 65
     $data = unserialize($cacheddata);
66 66
 } else {
67 67
     $data = get_top_hosts($offset,$sort_by);
@@ -87,7 +87,8 @@  discard block
 block discarded – undo
87 87
 
88 88
 }
89 89
 
90
-if ($n==$hosts_per_page){ //If we aren't on the last page
90
+if ($n==$hosts_per_page) {
91
+//If we aren't on the last page
91 92
     $new_offset = $offset + $hosts_per_page;
92 93
     echo "<a href=top_hosts.php?sort_by=$sort_by&amp;offset=$new_offset>".tra("Next %1", $hosts_per_page)."</a>";
93 94
 }
Please login to merge, or discard this patch.
html/user/top_teams.php 2 patches
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 define('ITEM_LIMIT', 10000);
34 34
 
35
-function get_top_teams($offset, $sort_by, $type){
35
+function get_top_teams($offset, $sort_by, $type) {
36 36
     global $teams_per_page;
37 37
     $db = BoincDb::get(true);
38 38
     $type_clause = null;
39
-    if ($type){
39
+    if ($type) {
40 40
         $type_clause = "type=$type";
41 41
     }
42 42
     if ($sort_by == "total_credit") {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     $cache_args = "sort_by=$sort_by&offset=$offset$type_url";
76 76
     $cacheddata = get_cached_data(TOP_PAGES_TTL,$cache_args);
77 77
     //If we have got the data in cache
78
-    if ($cacheddata){
78
+    if ($cacheddata) {
79 79
         $data = unserialize($cacheddata); // use the cached data
80 80
     } else {
81 81
         //if not do queries etc to generate new data
@@ -115,7 +115,8 @@  discard block
 block discarded – undo
115 115
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Previous %1", $teams_per_page)."</a> &middot; ";
116 116
 
117 117
     }
118
-    if ($n==$teams_per_page){ //If we aren't on the last page
118
+    if ($n==$teams_per_page) {
119
+//If we aren't on the last page
119 120
         $new_offset = $offset + $teams_per_page;
120 121
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Next %1", $teams_per_page)."</a>";
121 122
     }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 define('ITEM_LIMIT', 10000);
34 34
 
35
-function get_top_teams($offset, $sort_by, $type){
35
+function get_top_teams($offset, $sort_by, $type) {
36 36
     global $teams_per_page;
37 37
     $db = BoincDb::get(true);
38 38
     $type_clause = null;
39
-    if ($type){
39
+    if ($type) {
40 40
         $type_clause = "type=$type";
41 41
     }
42 42
     if ($sort_by == "total_credit") {
@@ -60,26 +60,26 @@  discard block
 block discarded – undo
60 60
 if ($type < 0 || $type >= count($team_types)) {
61 61
     $type = 0;
62 62
 }
63
-$type_url="";
64
-$type_name="";
63
+$type_url = "";
64
+$type_name = "";
65 65
 if ($type) {
66 66
     $type_url = "&type=$type";
67 67
     $type_name = team_type_name($type);
68 68
 }
69 69
 
70 70
 $offset = get_int("offset", true);
71
-if (!$offset) $offset=0;
72
-if ($offset % $teams_per_page) $offset = 0;
71
+if (!$offset) $offset = 0;
72
+if ($offset%$teams_per_page) $offset = 0;
73 73
 
74 74
 if ($offset < ITEM_LIMIT) {
75 75
     $cache_args = "sort_by=$sort_by&offset=$offset$type_url";
76
-    $cacheddata = get_cached_data(TOP_PAGES_TTL,$cache_args);
76
+    $cacheddata = get_cached_data(TOP_PAGES_TTL, $cache_args);
77 77
     //If we have got the data in cache
78
-    if ($cacheddata){
78
+    if ($cacheddata) {
79 79
         $data = unserialize($cacheddata); // use the cached data
80 80
     } else {
81 81
         //if not do queries etc to generate new data
82
-        $data = get_top_teams($offset,$sort_by,$type);
82
+        $data = get_top_teams($offset, $sort_by, $type);
83 83
         
84 84
         // Calculate nusers before storing into the cache
85 85
         foreach ($data as $team) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Previous %1", $teams_per_page)."</a> &middot; ";
116 116
 
117 117
     }
118
-    if ($n==$teams_per_page){ //If we aren't on the last page
118
+    if ($n == $teams_per_page) { //If we aren't on the last page
119 119
         $new_offset = $offset + $teams_per_page;
120 120
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Next %1", $teams_per_page)."</a>";
121 121
     }
Please login to merge, or discard this patch.
html/ops/upgrade_db.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 
26 26
 $db_revision = 0;
27 27
 if (file_exists("../../db_revision")) {
28
-    $db_revision = (int) file_get_contents("../../db_revision");
28
+    $db_revision = (int)file_get_contents("../../db_revision");
29 29
 }
30 30
 echo "DB version: $db_revision\n";
31 31
 
32 32
 require_once("db_update.php");
33 33
 
34 34
 $updates = array();
35
-foreach($db_updates as $db_update) {
35
+foreach ($db_updates as $db_update) {
36 36
     if ($db_update[0] > $db_revision) {
37 37
         $func = $db_update[1];
38 38
         echo "need update $func\n";
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 db_init_cli();
62 62
 
63
-foreach($updates as $update) {
63
+foreach ($updates as $update) {
64 64
     list($rev, $func) = $update;
65 65
     echo "performing update $func\n";
66 66
     call_user_func($func);
Please login to merge, or discard this patch.
html/ops/delete_spammers.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 //
108 108
 function do_delete_user($user) {
109 109
     global $test;
110
-    $age = (time() - $user->create_time) / 86400;
110
+    $age = (time() - $user->create_time)/86400;
111 111
     echo "deleting user\n";
112 112
     echo "   ID: $user->id\n";
113 113
     echo "   email: $user->email_addr\n";
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 }
335 335
 
336 336
 function delete_user_id_range($id1, $id2) {
337
-    for ($i=$id1; $i <= $id2; $i++) {
337
+    for ($i = $id1; $i <= $id2; $i++) {
338 338
         $user = BoincUser::lookup_id($i);
339 339
         if ($user) {
340 340
             echo "deleting user $i\n";
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 // this is for cleaning up BOINC-wide teams
347 347
 //
348 348
 function delete_team_id_range($id1, $id2) {
349
-    for ($i=$id1; $i <= $id2; $i++) {
349
+    for ($i = $id1; $i <= $id2; $i++) {
350 350
         echo "deleting team $i\n";
351 351
         $team = BoincTeam::lookup_id($i);
352 352
         if ($team) {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
 // get settings first
363 363
 //
364
-for ($i=1; $i<$argc; $i++) {
364
+for ($i = 1; $i < $argc; $i++) {
365 365
     if ($argv[$i] == "--test") {
366 366
         $test = true;
367 367
     } else if ($argv[$i] == "--min_days") {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
 // then do actions
377 377
 //
378
-for ($i=1; $i<$argc; $i++) {
378
+for ($i = 1; $i < $argc; $i++) {
379 379
     if ($argv[$i] == "--list") {
380 380
         delete_list($argv[++$i]);
381 381
     } else if ($argv[$i] == "--profiles") {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -368,7 +368,8 @@
 block discarded – undo
368 368
         $min_days = $argv[++$i];
369 369
     } else if ($argv[$i] == "--max_days") {
370 370
         $max_days = $argv[++$i];
371
-    } else if ($argv[$i] == "--days") {     // deprecated
371
+    } else if ($argv[$i] == "--days") {
372
+// deprecated
372 373
         $max_days = $argv[++$i];
373 374
     }
374 375
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/friends/friends.views_default.inc 2 patches
Indentation   +549 added lines, -549 removed lines patch added patch discarded remove patch
@@ -4,133 +4,133 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function friends_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: boinc_friends
10
-  $view = new view;
11
-  $view->name = 'boinc_friends';
12
-  $view->description = 'Customized views for friend relationships';
13
-  $view->tag = 'boinc';
14
-  $view->base_table = 'users';
15
-  $view->core = 6;
16
-  $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
-  $handler = $view->new_display('default', 'Defaults', 'default');
19
-  $handler->override_option('relationships', array(
9
+    // Exported view: boinc_friends
10
+    $view = new view;
11
+    $view->name = 'boinc_friends';
12
+    $view->description = 'Customized views for friend relationships';
13
+    $view->tag = 'boinc';
14
+    $view->base_table = 'users';
15
+    $view->core = 6;
16
+    $view->api_version = '2';
17
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
+    $handler = $view->new_display('default', 'Defaults', 'default');
19
+    $handler->override_option('relationships', array(
20 20
     'flag_friend_content_rel' => array(
21
-      'label' => 'flag friend',
22
-      'required' => 1,
23
-      'flag' => 'friend',
24
-      'user_scope' => 'any',
25
-      'id' => 'flag_friend_content_rel',
26
-      'table' => 'users',
27
-      'field' => 'flag_friend_content_rel',
28
-      'override' => array(
21
+        'label' => 'flag friend',
22
+        'required' => 1,
23
+        'flag' => 'friend',
24
+        'user_scope' => 'any',
25
+        'id' => 'flag_friend_content_rel',
26
+        'table' => 'users',
27
+        'field' => 'flag_friend_content_rel',
28
+        'override' => array(
29 29
         'button' => 'Override',
30
-      ),
31
-      'relationship' => 'none',
30
+        ),
31
+        'relationship' => 'none',
32 32
     ),
33
-  ));
34
-  $handler->override_option('fields', array(
33
+    ));
34
+    $handler->override_option('fields', array(
35 35
     'name' => array(
36
-      'label' => 'Name',
37
-      'link_to_user' => 1,
38
-      'exclude' => 0,
39
-      'id' => 'name',
40
-      'table' => 'users',
41
-      'field' => 'name',
42
-      'override' => array(
36
+        'label' => 'Name',
37
+        'link_to_user' => 1,
38
+        'exclude' => 0,
39
+        'id' => 'name',
40
+        'table' => 'users',
41
+        'field' => 'name',
42
+        'override' => array(
43 43
         'button' => 'Override',
44
-      ),
45
-      'relationship' => 'none',
44
+        ),
45
+        'relationship' => 'none',
46 46
     ),
47 47
     'ops' => array(
48
-      'label' => 'Flag link',
49
-      'link_type' => '',
50
-      'exclude' => 0,
51
-      'id' => 'ops',
52
-      'table' => 'flag_content',
53
-      'field' => 'ops',
54
-      'relationship' => 'flag_friend_content_rel',
55
-      'override' => array(
48
+        'label' => 'Flag link',
49
+        'link_type' => '',
50
+        'exclude' => 0,
51
+        'id' => 'ops',
52
+        'table' => 'flag_content',
53
+        'field' => 'ops',
54
+        'relationship' => 'flag_friend_content_rel',
55
+        'override' => array(
56 56
         'button' => 'Override',
57
-      ),
57
+        ),
58 58
     ),
59 59
     'uid' => array(
60
-      'label' => 'Flag friend links',
61
-      'exclude' => 0,
62
-      'id' => 'uid',
63
-      'table' => 'flag_friend',
64
-      'field' => 'uid',
65
-      'relationship' => 'none',
66
-    ),
67
-  ));
68
-  $handler->override_option('arguments', array(
60
+        'label' => 'Flag friend links',
61
+        'exclude' => 0,
62
+        'id' => 'uid',
63
+        'table' => 'flag_friend',
64
+        'field' => 'uid',
65
+        'relationship' => 'none',
66
+    ),
67
+    ));
68
+    $handler->override_option('arguments', array(
69 69
     'friend_uid' => array(
70
-      'id' => 'friend_uid',
71
-      'table' => 'flag_friend',
72
-      'field' => 'friend_uid',
70
+        'id' => 'friend_uid',
71
+        'table' => 'flag_friend',
72
+        'field' => 'friend_uid',
73 73
     ),
74
-  ));
75
-  $handler->override_option('filters', array(
74
+    ));
75
+    $handler->override_option('filters', array(
76 76
     'status' => array(
77
-      'operator' => '=',
78
-      'value' => '1',
79
-      'group' => '0',
80
-      'exposed' => FALSE,
81
-      'expose' => array(
77
+        'operator' => '=',
78
+        'value' => '1',
79
+        'group' => '0',
80
+        'exposed' => FALSE,
81
+        'expose' => array(
82 82
         'operator' => FALSE,
83 83
         'label' => '',
84
-      ),
85
-      'id' => 'status',
86
-      'table' => 'users',
87
-      'field' => 'status',
88
-      'relationship' => 'none',
89
-    ),
90
-  ));
91
-  $handler->override_option('access', array(
84
+        ),
85
+        'id' => 'status',
86
+        'table' => 'users',
87
+        'field' => 'status',
88
+        'relationship' => 'none',
89
+    ),
90
+    ));
91
+    $handler->override_option('access', array(
92 92
     'type' => 'perm',
93 93
     'perm' => 'access content',
94
-  ));
95
-  $handler->override_option('cache', array(
94
+    ));
95
+    $handler->override_option('cache', array(
96 96
     'type' => 'none',
97
-  ));
98
-  $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
99
-  $handler->override_option('empty_format', '5');
100
-  $handler->override_option('use_pager', '1');
101
-  $handler->override_option('distinct', 1);
102
-  $handler->override_option('style_plugin', 'table');
103
-  $handler->override_option('style_options', array(
97
+    ));
98
+    $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
99
+    $handler->override_option('empty_format', '5');
100
+    $handler->override_option('use_pager', '1');
101
+    $handler->override_option('distinct', 1);
102
+    $handler->override_option('style_plugin', 'table');
103
+    $handler->override_option('style_options', array(
104 104
     'grouping' => '',
105 105
     'override' => 1,
106 106
     'sticky' => 0,
107 107
     'order' => 'asc',
108 108
     'summary' => '',
109 109
     'columns' => array(
110
-      'name' => 'name',
111
-      'ops' => 'ops',
112
-      'uid' => 'uid',
110
+        'name' => 'name',
111
+        'ops' => 'ops',
112
+        'uid' => 'uid',
113 113
     ),
114 114
     'info' => array(
115
-      'name' => array(
115
+        'name' => array(
116 116
         'sortable' => 0,
117 117
         'separator' => '',
118
-      ),
119
-      'ops' => array(
118
+        ),
119
+        'ops' => array(
120 120
         'separator' => '',
121
-      ),
122
-      'uid' => array(
121
+        ),
122
+        'uid' => array(
123 123
         'separator' => '',
124
-      ),
124
+        ),
125 125
     ),
126 126
     'default' => '-1',
127
-  ));
128
-  $handler = $view->new_display('page', 'Page (friends)', 'page_1');
129
-  $handler->override_option('relationships', array());
130
-  $handler->override_option('fields', array(
127
+    ));
128
+    $handler = $view->new_display('page', 'Page (friends)', 'page_1');
129
+    $handler->override_option('relationships', array());
130
+    $handler->override_option('fields', array(
131 131
     'picture' => array(
132
-      'label' => 'Friend',
133
-      'alter' => array(
132
+        'label' => 'Friend',
133
+        'alter' => array(
134 134
         'alter_text' => 0,
135 135
         'text' => '',
136 136
         'make_link' => 0,
@@ -149,35 +149,35 @@  discard block
 block discarded – undo
149 149
         'ellipsis' => 1,
150 150
         'html' => 0,
151 151
         'strip_tags' => 0,
152
-      ),
153
-      'empty' => '',
154
-      'hide_empty' => 0,
155
-      'empty_zero' => 0,
156
-      'hide_alter_empty' => 1,
157
-      'exclude' => 1,
158
-      'id' => 'picture',
159
-      'table' => 'users',
160
-      'field' => 'picture',
161
-      'override' => array(
152
+        ),
153
+        'empty' => '',
154
+        'hide_empty' => 0,
155
+        'empty_zero' => 0,
156
+        'hide_alter_empty' => 1,
157
+        'exclude' => 1,
158
+        'id' => 'picture',
159
+        'table' => 'users',
160
+        'field' => 'picture',
161
+        'override' => array(
162 162
         'button' => 'Use default',
163
-      ),
164
-      'relationship' => 'none',
163
+        ),
164
+        'relationship' => 'none',
165 165
     ),
166 166
     'name' => array(
167
-      'label' => 'Name',
168
-      'link_to_user' => 1,
169
-      'exclude' => 0,
170
-      'id' => 'name',
171
-      'table' => 'users',
172
-      'field' => 'name',
173
-      'override' => array(
167
+        'label' => 'Name',
168
+        'link_to_user' => 1,
169
+        'exclude' => 0,
170
+        'id' => 'name',
171
+        'table' => 'users',
172
+        'field' => 'name',
173
+        'override' => array(
174 174
         'button' => 'Use default',
175
-      ),
176
-      'relationship' => 'none',
175
+        ),
176
+        'relationship' => 'none',
177 177
     ),
178 178
     'uid' => array(
179
-      'label' => '',
180
-      'alter' => array(
179
+        'label' => '',
180
+        'alter' => array(
181 181
         'alter_text' => 0,
182 182
         'text' => '',
183 183
         'make_link' => 0,
@@ -196,87 +196,87 @@  discard block
 block discarded – undo
196 196
         'ellipsis' => 1,
197 197
         'html' => 0,
198 198
         'strip_tags' => 0,
199
-      ),
200
-      'empty' => '',
201
-      'hide_empty' => 1,
202
-      'empty_zero' => 0,
203
-      'hide_alter_empty' => 1,
204
-      'exclude' => 0,
205
-      'id' => 'uid',
206
-      'table' => 'flag_friend',
207
-      'field' => 'uid',
208
-      'override' => array(
199
+        ),
200
+        'empty' => '',
201
+        'hide_empty' => 1,
202
+        'empty_zero' => 0,
203
+        'hide_alter_empty' => 1,
204
+        'exclude' => 0,
205
+        'id' => 'uid',
206
+        'table' => 'flag_friend',
207
+        'field' => 'uid',
208
+        'override' => array(
209 209
         'button' => 'Use default',
210
-      ),
211
-      'relationship' => 'none',
210
+        ),
211
+        'relationship' => 'none',
212 212
     ),
213
-  ));
214
-  $handler->override_option('arguments', array(
213
+    ));
214
+    $handler->override_option('arguments', array(
215 215
     'friend_uid' => array(
216
-      'default_action' => 'default',
217
-      'style_plugin' => 'default_summary',
218
-      'style_options' => array(),
219
-      'wildcard' => 'all',
220
-      'wildcard_substitution' => 'All',
221
-      'title' => '',
222
-      'breadcrumb' => '',
223
-      'default_argument_type' => 'current_user',
224
-      'default_argument' => '',
225
-      'validate_type' => 'none',
226
-      'validate_fail' => 'not found',
227
-      'break_phrase' => 0,
228
-      'not' => 0,
229
-      'flag_friend_include_arg_user' => 0,
230
-      'id' => 'friend_uid',
231
-      'table' => 'flag_friend',
232
-      'field' => 'friend_uid',
233
-      'override' => array(
216
+        'default_action' => 'default',
217
+        'style_plugin' => 'default_summary',
218
+        'style_options' => array(),
219
+        'wildcard' => 'all',
220
+        'wildcard_substitution' => 'All',
221
+        'title' => '',
222
+        'breadcrumb' => '',
223
+        'default_argument_type' => 'current_user',
224
+        'default_argument' => '',
225
+        'validate_type' => 'none',
226
+        'validate_fail' => 'not found',
227
+        'break_phrase' => 0,
228
+        'not' => 0,
229
+        'flag_friend_include_arg_user' => 0,
230
+        'id' => 'friend_uid',
231
+        'table' => 'flag_friend',
232
+        'field' => 'friend_uid',
233
+        'override' => array(
234 234
         'button' => 'Use default',
235
-      ),
236
-      'relationship' => 'none',
237
-      'default_options_div_prefix' => '',
238
-      'default_argument_user' => 0,
239
-      'default_argument_fixed' => '',
240
-      'default_argument_php' => '',
241
-      'validate_argument_node_access' => 0,
242
-      'validate_argument_nid_type' => 'nid',
243
-      'validate_argument_vocabulary' => array(
235
+        ),
236
+        'relationship' => 'none',
237
+        'default_options_div_prefix' => '',
238
+        'default_argument_user' => 0,
239
+        'default_argument_fixed' => '',
240
+        'default_argument_php' => '',
241
+        'validate_argument_node_access' => 0,
242
+        'validate_argument_nid_type' => 'nid',
243
+        'validate_argument_vocabulary' => array(
244 244
         2 => 0,
245 245
         3 => 0,
246
-      ),
247
-      'validate_argument_type' => 'tid',
248
-      'validate_argument_node_flag_name' => '*relationship*',
249
-      'validate_argument_node_flag_test' => 'flaggable',
250
-      'validate_argument_node_flag_id_type' => 'id',
251
-      'validate_argument_user_flag_name' => '*relationship*',
252
-      'validate_argument_user_flag_test' => 'flaggable',
253
-      'validate_argument_user_flag_id_type' => 'id',
254
-      'validate_argument_php' => '',
255
-      'validate_user_argument_type' => 'uid',
256
-      'validate_user_roles' => array(
246
+        ),
247
+        'validate_argument_type' => 'tid',
248
+        'validate_argument_node_flag_name' => '*relationship*',
249
+        'validate_argument_node_flag_test' => 'flaggable',
250
+        'validate_argument_node_flag_id_type' => 'id',
251
+        'validate_argument_user_flag_name' => '*relationship*',
252
+        'validate_argument_user_flag_test' => 'flaggable',
253
+        'validate_argument_user_flag_id_type' => 'id',
254
+        'validate_argument_php' => '',
255
+        'validate_user_argument_type' => 'uid',
256
+        'validate_user_roles' => array(
257 257
         2 => 0,
258 258
         3 => 0,
259 259
         5 => 0,
260 260
         4 => 0,
261 261
         6 => 0,
262
-      ),
263
-      'me_redirect' => 0,
264
-      'me_validate_user_argument_type' => 'uid',
265
-      'me_validate_user_roles' => array(
262
+        ),
263
+        'me_redirect' => 0,
264
+        'me_validate_user_argument_type' => 'uid',
265
+        'me_validate_user_roles' => array(
266 266
         2 => 0,
267 267
         3 => 0,
268 268
         5 => 0,
269 269
         4 => 0,
270 270
         6 => 0,
271
-      ),
272
-      'default_taxonomy_tid_term_page' => 0,
273
-      'default_taxonomy_tid_node' => 0,
274
-      'default_taxonomy_tid_limit' => 0,
275
-      'default_taxonomy_tid_vids' => array(
271
+        ),
272
+        'default_taxonomy_tid_term_page' => 0,
273
+        'default_taxonomy_tid_node' => 0,
274
+        'default_taxonomy_tid_limit' => 0,
275
+        'default_taxonomy_tid_vids' => array(
276 276
         2 => 0,
277 277
         3 => 0,
278
-      ),
279
-      'validate_argument_node_type' => array(
278
+        ),
279
+        'validate_argument_node_type' => array(
280 280
         'page' => 0,
281 281
         'profile' => 0,
282 282
         'forum' => 0,
@@ -284,33 +284,33 @@  discard block
 block discarded – undo
284 284
         'news' => 0,
285 285
         'story' => 0,
286 286
         'team' => 0,
287
-      ),
288
-      'validate_argument_transform' => 0,
289
-      'validate_user_restrict_roles' => 0,
290
-      'me_validate_user_restrict_roles' => 0,
291
-    ),
292
-  ));
293
-  $handler->override_option('title', 'Friends');
294
-  $handler->override_option('path', 'account/%/friends/all');
295
-  $handler->override_option('menu', array(
287
+        ),
288
+        'validate_argument_transform' => 0,
289
+        'validate_user_restrict_roles' => 0,
290
+        'me_validate_user_restrict_roles' => 0,
291
+    ),
292
+    ));
293
+    $handler->override_option('title', 'Friends');
294
+    $handler->override_option('path', 'account/%/friends/all');
295
+    $handler->override_option('menu', array(
296 296
     'type' => 'default tab',
297 297
     'title' => bts('View All Friends', array(), NULL, 'boinc:friends-page'),
298 298
     'description' => '',
299 299
     'weight' => '-10',
300 300
     'name' => 'navigation',
301
-  ));
302
-  $handler->override_option('tab_options', array(
301
+    ));
302
+    $handler->override_option('tab_options', array(
303 303
     'type' => 'normal',
304 304
     'title' => 'Friends',
305 305
     'description' => '',
306 306
     'weight' => '0',
307 307
     'name' => 'navigation',
308
-  ));
309
-  $handler = $view->new_display('page', 'Page (pending)', 'page_2');
310
-  $handler->override_option('fields', array(
308
+    ));
309
+    $handler = $view->new_display('page', 'Page (pending)', 'page_2');
310
+    $handler->override_option('fields', array(
311 311
     'picture' => array(
312
-      'label' => 'User',
313
-      'alter' => array(
312
+        'label' => 'User',
313
+        'alter' => array(
314 314
         'alter_text' => 0,
315 315
         'text' => '',
316 316
         'make_link' => 0,
@@ -329,46 +329,46 @@  discard block
 block discarded – undo
329 329
         'ellipsis' => 1,
330 330
         'html' => 0,
331 331
         'strip_tags' => 0,
332
-      ),
333
-      'empty' => '',
334
-      'hide_empty' => 0,
335
-      'empty_zero' => 0,
336
-      'hide_alter_empty' => 1,
337
-      'exclude' => 1,
338
-      'id' => 'picture',
339
-      'table' => 'users',
340
-      'field' => 'picture',
341
-      'override' => array(
332
+        ),
333
+        'empty' => '',
334
+        'hide_empty' => 0,
335
+        'empty_zero' => 0,
336
+        'hide_alter_empty' => 1,
337
+        'exclude' => 1,
338
+        'id' => 'picture',
339
+        'table' => 'users',
340
+        'field' => 'picture',
341
+        'override' => array(
342 342
         'button' => 'Use default',
343
-      ),
344
-      'relationship' => 'none',
343
+        ),
344
+        'relationship' => 'none',
345 345
     ),
346 346
     'name' => array(
347
-      'label' => 'Name',
348
-      'link_to_user' => 1,
349
-      'exclude' => 0,
350
-      'id' => 'name',
351
-      'table' => 'users',
352
-      'field' => 'name',
353
-      'override' => array(
347
+        'label' => 'Name',
348
+        'link_to_user' => 1,
349
+        'exclude' => 0,
350
+        'id' => 'name',
351
+        'table' => 'users',
352
+        'field' => 'name',
353
+        'override' => array(
354 354
         'button' => 'Use default',
355
-      ),
356
-      'relationship' => 'none',
355
+        ),
356
+        'relationship' => 'none',
357 357
     ),
358 358
     'message' => array(
359
-      'label' => 'Message',
360
-      'exclude' => 0,
361
-      'id' => 'message',
362
-      'table' => 'flag_friend_message',
363
-      'field' => 'message',
364
-      'relationship' => 'flag_friend_content_rel',
365
-      'override' => array(
359
+        'label' => 'Message',
360
+        'exclude' => 0,
361
+        'id' => 'message',
362
+        'table' => 'flag_friend_message',
363
+        'field' => 'message',
364
+        'relationship' => 'flag_friend_content_rel',
365
+        'override' => array(
366 366
         'button' => 'Use default',
367
-      ),
367
+        ),
368 368
     ),
369 369
     'uid' => array(
370
-      'label' => 'Flag friend links',
371
-      'alter' => array(
370
+        'label' => 'Flag friend links',
371
+        'alter' => array(
372 372
         'alter_text' => 1,
373 373
         'text' => '<ul class="tab-list">
374 374
   <li class="alt tab">[uid]</li>',
@@ -388,23 +388,23 @@  discard block
 block discarded – undo
388 388
         'ellipsis' => 1,
389 389
         'html' => 0,
390 390
         'strip_tags' => 0,
391
-      ),
392
-      'empty' => '',
393
-      'hide_empty' => 0,
394
-      'empty_zero' => 0,
395
-      'hide_alter_empty' => 1,
396
-      'exclude' => 0,
397
-      'id' => 'uid',
398
-      'table' => 'flag_friend',
399
-      'field' => 'uid',
400
-      'override' => array(
391
+        ),
392
+        'empty' => '',
393
+        'hide_empty' => 0,
394
+        'empty_zero' => 0,
395
+        'hide_alter_empty' => 1,
396
+        'exclude' => 0,
397
+        'id' => 'uid',
398
+        'table' => 'flag_friend',
399
+        'field' => 'uid',
400
+        'override' => array(
401 401
         'button' => 'Use default',
402
-      ),
403
-      'relationship' => 'none',
402
+        ),
403
+        'relationship' => 'none',
404 404
     ),
405 405
     'ops' => array(
406
-      'label' => '',
407
-      'alter' => array(
406
+        'label' => '',
407
+        'alter' => array(
408 408
         'alter_text' => 1,
409 409
         'text' => '  <li class="first alt tab">[ops]</li>
410 410
 </ul>',
@@ -424,148 +424,148 @@  discard block
 block discarded – undo
424 424
         'ellipsis' => 1,
425 425
         'html' => 0,
426 426
         'strip_tags' => 0,
427
-      ),
428
-      'empty' => '',
429
-      'hide_empty' => 0,
430
-      'empty_zero' => 0,
431
-      'hide_alter_empty' => 1,
432
-      'link_type' => '',
433
-      'exclude' => 0,
434
-      'id' => 'ops',
435
-      'table' => 'flag_content',
436
-      'field' => 'ops',
437
-      'relationship' => 'flag_friend_content_rel',
438
-      'override' => array(
427
+        ),
428
+        'empty' => '',
429
+        'hide_empty' => 0,
430
+        'empty_zero' => 0,
431
+        'hide_alter_empty' => 1,
432
+        'link_type' => '',
433
+        'exclude' => 0,
434
+        'id' => 'ops',
435
+        'table' => 'flag_content',
436
+        'field' => 'ops',
437
+        'relationship' => 'flag_friend_content_rel',
438
+        'override' => array(
439 439
         'button' => 'Use default',
440
-      ),
440
+        ),
441 441
     ),
442
-  ));
443
-  $handler->override_option('arguments', array(
442
+    ));
443
+    $handler->override_option('arguments', array(
444 444
     'content_id' => array(
445
-      'default_action' => 'default',
446
-      'style_plugin' => 'default_summary',
447
-      'style_options' => array(),
448
-      'wildcard' => 'all',
449
-      'wildcard_substitution' => 'All',
450
-      'title' => '',
451
-      'default_argument_type' => 'user',
452
-      'default_argument' => '',
453
-      'validate_type' => 'php',
454
-      'validate_fail' => 'not found',
455
-      'break_phrase' => 0,
456
-      'not' => 0,
457
-      'id' => 'content_id',
458
-      'table' => 'flag_content',
459
-      'field' => 'content_id',
460
-      'relationship' => 'flag_friend_content_rel',
461
-      'override' => array(
445
+        'default_action' => 'default',
446
+        'style_plugin' => 'default_summary',
447
+        'style_options' => array(),
448
+        'wildcard' => 'all',
449
+        'wildcard_substitution' => 'All',
450
+        'title' => '',
451
+        'default_argument_type' => 'user',
452
+        'default_argument' => '',
453
+        'validate_type' => 'php',
454
+        'validate_fail' => 'not found',
455
+        'break_phrase' => 0,
456
+        'not' => 0,
457
+        'id' => 'content_id',
458
+        'table' => 'flag_content',
459
+        'field' => 'content_id',
460
+        'relationship' => 'flag_friend_content_rel',
461
+        'override' => array(
462 462
         'button' => 'Use default',
463
-      ),
464
-      'default_options_div_prefix' => '',
465
-      'default_argument_user' => 0,
466
-      'default_argument_fixed' => '',
467
-      'default_argument_php' => '',
468
-      'validate_argument_node_access' => 0,
469
-      'validate_argument_nid_type' => 'nid',
470
-      'validate_argument_vocabulary' => array(),
471
-      'validate_argument_type' => 'tid',
472
-      'validate_argument_node_flag_name' => '*relationship*',
473
-      'validate_argument_node_flag_test' => 'flaggable',
474
-      'validate_argument_node_flag_id_type' => 'id',
475
-      'validate_argument_user_flag_name' => '*relationship*',
476
-      'validate_argument_user_flag_test' => 'flaggable',
477
-      'validate_argument_user_flag_id_type' => 'id',
478
-      'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
463
+        ),
464
+        'default_options_div_prefix' => '',
465
+        'default_argument_user' => 0,
466
+        'default_argument_fixed' => '',
467
+        'default_argument_php' => '',
468
+        'validate_argument_node_access' => 0,
469
+        'validate_argument_nid_type' => 'nid',
470
+        'validate_argument_vocabulary' => array(),
471
+        'validate_argument_type' => 'tid',
472
+        'validate_argument_node_flag_name' => '*relationship*',
473
+        'validate_argument_node_flag_test' => 'flaggable',
474
+        'validate_argument_node_flag_id_type' => 'id',
475
+        'validate_argument_user_flag_name' => '*relationship*',
476
+        'validate_argument_user_flag_test' => 'flaggable',
477
+        'validate_argument_user_flag_id_type' => 'id',
478
+        'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
479 479
                                       return FALSE;
480 480
                                     }
481 481
                                     return TRUE;',
482 482
     ),
483
-  ));
484
-  $handler->override_option('title', 'Friend Requests');
485
-  $handler->override_option('header', 'These are users who would like to be your friend.');
486
-  $handler->override_option('header_format', '5');
487
-  $handler->override_option('header_empty', 0);
488
-  $handler->override_option('empty', 'No Friend Requests.');
489
-  $handler->override_option('style_options', array(
483
+    ));
484
+    $handler->override_option('title', 'Friend Requests');
485
+    $handler->override_option('header', 'These are users who would like to be your friend.');
486
+    $handler->override_option('header_format', '5');
487
+    $handler->override_option('header_empty', 0);
488
+    $handler->override_option('empty', 'No Friend Requests.');
489
+    $handler->override_option('style_options', array(
490 490
     'grouping' => '',
491 491
     'override' => 1,
492 492
     'sticky' => 0,
493 493
     'order' => 'asc',
494 494
     'summary' => '',
495 495
     'columns' => array(
496
-      'picture' => 'picture',
497
-      'name' => 'name',
498
-      'message' => 'message',
499
-      'ops' => 'ops',
500
-      'uid' => 'ops',
496
+        'picture' => 'picture',
497
+        'name' => 'name',
498
+        'message' => 'message',
499
+        'ops' => 'ops',
500
+        'uid' => 'ops',
501 501
     ),
502 502
     'info' => array(
503
-      'picture' => array(
503
+        'picture' => array(
504 504
         'sortable' => 0,
505 505
         'separator' => '',
506
-      ),
507
-      'name' => array(
506
+        ),
507
+        'name' => array(
508 508
         'sortable' => 0,
509 509
         'separator' => '',
510
-      ),
511
-      'message' => array(
510
+        ),
511
+        'message' => array(
512 512
         'separator' => '',
513
-      ),
514
-      'ops' => array(
513
+        ),
514
+        'ops' => array(
515 515
         'separator' => '',
516
-      ),
517
-      'uid' => array(
516
+        ),
517
+        'uid' => array(
518 518
         'separator' => '',
519
-      ),
519
+        ),
520 520
     ),
521 521
     'default' => '-1',
522
-  ));
523
-  $handler->override_option('path', 'account/%/friends/pending');
524
-  $handler->override_option('menu', array(
522
+    ));
523
+    $handler->override_option('path', 'account/%/friends/pending');
524
+    $handler->override_option('menu', array(
525 525
     'type' => 'tab',
526 526
     'title' => bts('Friend Requests', array(), NULL, 'boinc:friends-page'),
527 527
     'description' => '',
528 528
     'weight' => '0',
529 529
     'name' => 'navigation',
530
-  ));
531
-  $handler->override_option('tab_options', array(
530
+    ));
531
+    $handler->override_option('tab_options', array(
532 532
     'type' => 'none',
533 533
     'title' => '',
534 534
     'description' => '',
535 535
     'weight' => 0,
536 536
     'name' => 'navigation',
537
-  ));
538
-  $handler = $view->new_display('page', 'Page (flagged)', 'page_3');
539
-  $handler->override_option('relationships', array(
537
+    ));
538
+    $handler = $view->new_display('page', 'Page (flagged)', 'page_3');
539
+    $handler->override_option('relationships', array(
540 540
     'flag_content_rel' => array(
541
-      'label' => 'flag',
542
-      'required' => 1,
543
-      'flag' => 'friend',
544
-      'user_scope' => 'any',
545
-      'id' => 'flag_content_rel',
546
-      'table' => 'users',
547
-      'field' => 'flag_content_rel',
548
-      'override' => array(
541
+        'label' => 'flag',
542
+        'required' => 1,
543
+        'flag' => 'friend',
544
+        'user_scope' => 'any',
545
+        'id' => 'flag_content_rel',
546
+        'table' => 'users',
547
+        'field' => 'flag_content_rel',
548
+        'override' => array(
549 549
         'button' => 'Use default',
550
-      ),
551
-      'relationship' => 'none',
550
+        ),
551
+        'relationship' => 'none',
552 552
     ),
553 553
     'uid' => array(
554
-      'label' => 'Flag user',
555
-      'required' => 0,
556
-      'id' => 'uid',
557
-      'table' => 'flag_content',
558
-      'field' => 'uid',
559
-      'relationship' => 'flag_content_rel',
560
-      'override' => array(
554
+        'label' => 'Flag user',
555
+        'required' => 0,
556
+        'id' => 'uid',
557
+        'table' => 'flag_content',
558
+        'field' => 'uid',
559
+        'relationship' => 'flag_content_rel',
560
+        'override' => array(
561 561
         'button' => 'Use default',
562
-      ),
562
+        ),
563 563
     ),
564
-  ));
565
-  $handler->override_option('fields', array(
564
+    ));
565
+    $handler->override_option('fields', array(
566 566
     'picture' => array(
567
-      'label' => 'User',
568
-      'alter' => array(
567
+        'label' => 'User',
568
+        'alter' => array(
569 569
         'alter_text' => 0,
570 570
         'text' => '',
571 571
         'make_link' => 0,
@@ -584,46 +584,46 @@  discard block
 block discarded – undo
584 584
         'ellipsis' => 1,
585 585
         'html' => 0,
586 586
         'strip_tags' => 0,
587
-      ),
588
-      'empty' => '',
589
-      'hide_empty' => 0,
590
-      'empty_zero' => 0,
591
-      'hide_alter_empty' => 1,
592
-      'exclude' => 1,
593
-      'id' => 'picture',
594
-      'table' => 'users',
595
-      'field' => 'picture',
596
-      'override' => array(
587
+        ),
588
+        'empty' => '',
589
+        'hide_empty' => 0,
590
+        'empty_zero' => 0,
591
+        'hide_alter_empty' => 1,
592
+        'exclude' => 1,
593
+        'id' => 'picture',
594
+        'table' => 'users',
595
+        'field' => 'picture',
596
+        'override' => array(
597 597
         'button' => 'Use default',
598
-      ),
599
-      'relationship' => 'none',
598
+        ),
599
+        'relationship' => 'none',
600 600
     ),
601 601
     'name' => array(
602
-      'label' => 'Name',
603
-      'link_to_user' => 1,
604
-      'exclude' => 0,
605
-      'id' => 'name',
606
-      'table' => 'users',
607
-      'field' => 'name',
608
-      'override' => array(
602
+        'label' => 'Name',
603
+        'link_to_user' => 1,
604
+        'exclude' => 0,
605
+        'id' => 'name',
606
+        'table' => 'users',
607
+        'field' => 'name',
608
+        'override' => array(
609 609
         'button' => 'Use default',
610
-      ),
611
-      'relationship' => 'none',
610
+        ),
611
+        'relationship' => 'none',
612 612
     ),
613 613
     'message' => array(
614
-      'label' => 'Message',
615
-      'exclude' => 0,
616
-      'id' => 'message',
617
-      'table' => 'flag_friend_message',
618
-      'field' => 'message',
619
-      'relationship' => 'flag_content_rel',
620
-      'override' => array(
614
+        'label' => 'Message',
615
+        'exclude' => 0,
616
+        'id' => 'message',
617
+        'table' => 'flag_friend_message',
618
+        'field' => 'message',
619
+        'relationship' => 'flag_content_rel',
620
+        'override' => array(
621 621
         'button' => 'Use default',
622
-      ),
622
+        ),
623 623
     ),
624 624
     'ops' => array(
625
-      'label' => '',
626
-      'alter' => array(
625
+        'label' => '',
626
+        'alter' => array(
627 627
         'alter_text' => 0,
628 628
         'text' => '',
629 629
         'make_link' => 0,
@@ -642,113 +642,113 @@  discard block
 block discarded – undo
642 642
         'ellipsis' => 1,
643 643
         'html' => 0,
644 644
         'strip_tags' => 0,
645
-      ),
646
-      'empty' => '',
647
-      'hide_empty' => 0,
648
-      'empty_zero' => 0,
649
-      'hide_alter_empty' => 1,
650
-      'link_type' => '',
651
-      'exclude' => 0,
652
-      'id' => 'ops',
653
-      'table' => 'flag_content',
654
-      'field' => 'ops',
655
-      'relationship' => 'flag_content_rel',
656
-      'override' => array(
645
+        ),
646
+        'empty' => '',
647
+        'hide_empty' => 0,
648
+        'empty_zero' => 0,
649
+        'hide_alter_empty' => 1,
650
+        'link_type' => '',
651
+        'exclude' => 0,
652
+        'id' => 'ops',
653
+        'table' => 'flag_content',
654
+        'field' => 'ops',
655
+        'relationship' => 'flag_content_rel',
656
+        'override' => array(
657 657
         'button' => 'Use default',
658
-      ),
658
+        ),
659 659
     ),
660
-  ));
661
-  $handler->override_option('arguments', array(
660
+    ));
661
+    $handler->override_option('arguments', array(
662 662
     'uid' => array(
663
-      'default_action' => 'default',
664
-      'style_plugin' => 'default_summary',
665
-      'style_options' => array(),
666
-      'wildcard' => 'all',
667
-      'wildcard_substitution' => 'All',
668
-      'title' => '',
669
-      'breadcrumb' => '',
670
-      'default_argument_type' => 'user',
671
-      'default_argument' => '',
672
-      'validate_type' => 'php',
673
-      'validate_fail' => 'not found',
674
-      'break_phrase' => 0,
675
-      'not' => 0,
676
-      'id' => 'uid',
677
-      'table' => 'users',
678
-      'field' => 'uid',
679
-      'validate_user_argument_type' => 'uid',
680
-      'validate_user_roles' => array(
663
+        'default_action' => 'default',
664
+        'style_plugin' => 'default_summary',
665
+        'style_options' => array(),
666
+        'wildcard' => 'all',
667
+        'wildcard_substitution' => 'All',
668
+        'title' => '',
669
+        'breadcrumb' => '',
670
+        'default_argument_type' => 'user',
671
+        'default_argument' => '',
672
+        'validate_type' => 'php',
673
+        'validate_fail' => 'not found',
674
+        'break_phrase' => 0,
675
+        'not' => 0,
676
+        'id' => 'uid',
677
+        'table' => 'users',
678
+        'field' => 'uid',
679
+        'validate_user_argument_type' => 'uid',
680
+        'validate_user_roles' => array(
681 681
         2 => 0,
682
-      ),
683
-      'override' => array(
682
+        ),
683
+        'override' => array(
684 684
         'button' => 'Use default',
685
-      ),
686
-      'relationship' => 'uid',
687
-      'default_options_div_prefix' => '',
688
-      'default_argument_user' => 0,
689
-      'default_argument_fixed' => '',
690
-      'default_argument_php' => '',
691
-      'validate_argument_node_type' => array(
685
+        ),
686
+        'relationship' => 'uid',
687
+        'default_options_div_prefix' => '',
688
+        'default_argument_user' => 0,
689
+        'default_argument_fixed' => '',
690
+        'default_argument_php' => '',
691
+        'validate_argument_node_type' => array(
692 692
         'page' => 0,
693 693
         'story' => 0,
694
-      ),
695
-      'validate_argument_node_access' => 0,
696
-      'validate_argument_nid_type' => 'nid',
697
-      'validate_argument_vocabulary' => array(),
698
-      'validate_argument_type' => 'tid',
699
-      'validate_argument_transform' => 0,
700
-      'validate_user_restrict_roles' => 0,
701
-      'validate_argument_node_flag_name' => '*relationship*',
702
-      'validate_argument_node_flag_test' => 'flaggable',
703
-      'validate_argument_node_flag_id_type' => 'id',
704
-      'validate_argument_user_flag_name' => '*relationship*',
705
-      'validate_argument_user_flag_test' => 'flaggable',
706
-      'validate_argument_user_flag_id_type' => 'id',
707
-      'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
694
+        ),
695
+        'validate_argument_node_access' => 0,
696
+        'validate_argument_nid_type' => 'nid',
697
+        'validate_argument_vocabulary' => array(),
698
+        'validate_argument_type' => 'tid',
699
+        'validate_argument_transform' => 0,
700
+        'validate_user_restrict_roles' => 0,
701
+        'validate_argument_node_flag_name' => '*relationship*',
702
+        'validate_argument_node_flag_test' => 'flaggable',
703
+        'validate_argument_node_flag_id_type' => 'id',
704
+        'validate_argument_user_flag_name' => '*relationship*',
705
+        'validate_argument_user_flag_test' => 'flaggable',
706
+        'validate_argument_user_flag_id_type' => 'id',
707
+        'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
708 708
     return FALSE;
709 709
   }
710 710
   return TRUE;',
711 711
     ),
712
-  ));
713
-  $handler->override_option('title', 'Awaiting Friend Approvals');
714
-  $handler->override_option('header', 'These are users who you have requested to be friends with.');
715
-  $handler->override_option('header_format', '5');
716
-  $handler->override_option('header_empty', 1);
717
-  $handler->override_option('empty', 'No Friend Requests.');
718
-  $handler->override_option('path', 'account/%/friends/flagged');
719
-  $handler->override_option('menu', array(
712
+    ));
713
+    $handler->override_option('title', 'Awaiting Friend Approvals');
714
+    $handler->override_option('header', 'These are users who you have requested to be friends with.');
715
+    $handler->override_option('header_format', '5');
716
+    $handler->override_option('header_empty', 1);
717
+    $handler->override_option('empty', 'No Friend Requests.');
718
+    $handler->override_option('path', 'account/%/friends/flagged');
719
+    $handler->override_option('menu', array(
720 720
     'type' => 'tab',
721 721
     'title' => bts('Awaiting Friend Approvals', array(), NULL, 'boinc:friends-page'),
722 722
     'description' => '',
723 723
     'weight' => '0',
724 724
     'name' => 'navigation',
725
-  ));
726
-  $handler->override_option('tab_options', array(
725
+    ));
726
+    $handler->override_option('tab_options', array(
727 727
     'type' => 'none',
728 728
     'title' => '',
729 729
     'description' => '',
730 730
     'weight' => 0,
731 731
     'name' => 'navigation',
732
-  ));
733
-  $handler = $view->new_display('block', 'Current user\'s Friends block', 'block_1');
734
-  $handler->override_option('relationships', array(
732
+    ));
733
+    $handler = $view->new_display('block', 'Current user\'s Friends block', 'block_1');
734
+    $handler->override_option('relationships', array(
735 735
     'content_profile_rel' => array(
736
-      'label' => 'Content Profile',
737
-      'required' => 0,
738
-      'type' => 'profile',
739
-      'id' => 'content_profile_rel',
740
-      'table' => 'users',
741
-      'field' => 'content_profile_rel',
742
-      'override' => array(
736
+        'label' => 'Content Profile',
737
+        'required' => 0,
738
+        'type' => 'profile',
739
+        'id' => 'content_profile_rel',
740
+        'table' => 'users',
741
+        'field' => 'content_profile_rel',
742
+        'override' => array(
743 743
         'button' => 'Use default',
744
-      ),
745
-      'relationship' => 'none',
744
+        ),
745
+        'relationship' => 'none',
746 746
     ),
747
-  ));
748
-  $handler->override_option('fields', array(
747
+    ));
748
+    $handler->override_option('fields', array(
749 749
     'name' => array(
750
-      'label' => 'Name',
751
-      'alter' => array(
750
+        'label' => 'Name',
751
+        'alter' => array(
752 752
         'alter_text' => 0,
753 753
         'text' => '',
754 754
         'make_link' => 0,
@@ -767,26 +767,26 @@  discard block
 block discarded – undo
767 767
         'ellipsis' => 1,
768 768
         'html' => 0,
769 769
         'strip_tags' => 0,
770
-      ),
771
-      'empty' => '',
772
-      'hide_empty' => 0,
773
-      'empty_zero' => 0,
774
-      'hide_alter_empty' => 1,
775
-      'link_to_user' => 0,
776
-      'overwrite_anonymous' => 0,
777
-      'anonymous_text' => '',
778
-      'exclude' => 0,
779
-      'id' => 'name',
780
-      'table' => 'users',
781
-      'field' => 'name',
782
-      'override' => array(
770
+        ),
771
+        'empty' => '',
772
+        'hide_empty' => 0,
773
+        'empty_zero' => 0,
774
+        'hide_alter_empty' => 1,
775
+        'link_to_user' => 0,
776
+        'overwrite_anonymous' => 0,
777
+        'anonymous_text' => '',
778
+        'exclude' => 0,
779
+        'id' => 'name',
780
+        'table' => 'users',
781
+        'field' => 'name',
782
+        'override' => array(
783 783
         'button' => 'Use default',
784
-      ),
785
-      'relationship' => 'none',
784
+        ),
785
+        'relationship' => 'none',
786 786
     ),
787 787
     'field_image_fid' => array(
788
-      'label' => '',
789
-      'alter' => array(
788
+        'label' => '',
789
+        'alter' => array(
790 790
         'alter_text' => 0,
791 791
         'text' => '',
792 792
         'make_link' => 0,
@@ -805,32 +805,32 @@  discard block
 block discarded – undo
805 805
         'ellipsis' => 1,
806 806
         'html' => 0,
807 807
         'strip_tags' => 0,
808
-      ),
809
-      'empty' => '',
810
-      'hide_empty' => 0,
811
-      'empty_zero' => 0,
812
-      'hide_alter_empty' => 1,
813
-      'link_to_node' => 0,
814
-      'label_type' => 'none',
815
-      'format' => 'image_plain',
816
-      'multiple' => array(
808
+        ),
809
+        'empty' => '',
810
+        'hide_empty' => 0,
811
+        'empty_zero' => 0,
812
+        'hide_alter_empty' => 1,
813
+        'link_to_node' => 0,
814
+        'label_type' => 'none',
815
+        'format' => 'image_plain',
816
+        'multiple' => array(
817 817
         'group' => TRUE,
818 818
         'multiple_number' => '',
819 819
         'multiple_from' => '',
820 820
         'multiple_reversed' => FALSE,
821
-      ),
822
-      'exclude' => 0,
823
-      'id' => 'field_image_fid',
824
-      'table' => 'node_data_field_image',
825
-      'field' => 'field_image_fid',
826
-      'relationship' => 'content_profile_rel',
827
-      'override' => array(
821
+        ),
822
+        'exclude' => 0,
823
+        'id' => 'field_image_fid',
824
+        'table' => 'node_data_field_image',
825
+        'field' => 'field_image_fid',
826
+        'relationship' => 'content_profile_rel',
827
+        'override' => array(
828 828
         'button' => 'Use default',
829
-      ),
829
+        ),
830 830
     ),
831 831
     'uid' => array(
832
-      'label' => 'Uid',
833
-      'alter' => array(
832
+        'label' => 'Uid',
833
+        'alter' => array(
834 834
         'alter_text' => 0,
835 835
         'text' => '',
836 836
         'make_link' => 0,
@@ -849,70 +849,70 @@  discard block
 block discarded – undo
849 849
         'ellipsis' => 1,
850 850
         'html' => 0,
851 851
         'strip_tags' => 0,
852
-      ),
853
-      'empty' => '',
854
-      'hide_empty' => 0,
855
-      'empty_zero' => 0,
856
-      'hide_alter_empty' => 1,
857
-      'link_to_user' => 0,
858
-      'exclude' => 0,
859
-      'id' => 'uid',
860
-      'table' => 'users',
861
-      'field' => 'uid',
862
-      'override' => array(
852
+        ),
853
+        'empty' => '',
854
+        'hide_empty' => 0,
855
+        'empty_zero' => 0,
856
+        'hide_alter_empty' => 1,
857
+        'link_to_user' => 0,
858
+        'exclude' => 0,
859
+        'id' => 'uid',
860
+        'table' => 'users',
861
+        'field' => 'uid',
862
+        'override' => array(
863 863
         'button' => 'Use default',
864
-      ),
865
-      'relationship' => 'none',
864
+        ),
865
+        'relationship' => 'none',
866 866
     ),
867
-  ));
868
-  $handler->override_option('arguments', array(
867
+    ));
868
+    $handler->override_option('arguments', array(
869 869
     'friend_uid' => array(
870
-      'default_action' => 'default',
871
-      'style_plugin' => 'default_summary',
872
-      'style_options' => array(),
873
-      'wildcard' => 'all',
874
-      'wildcard_substitution' => 'All',
875
-      'title' => '',
876
-      'default_argument_type' => 'current_user',
877
-      'default_argument' => '',
878
-      'validate_type' => 'none',
879
-      'validate_fail' => 'not found',
880
-      'break_phrase' => 0,
881
-      'not' => 0,
882
-      'id' => 'friend_uid',
883
-      'table' => 'flag_friend',
884
-      'field' => 'friend_uid',
885
-      'override' => array(
870
+        'default_action' => 'default',
871
+        'style_plugin' => 'default_summary',
872
+        'style_options' => array(),
873
+        'wildcard' => 'all',
874
+        'wildcard_substitution' => 'All',
875
+        'title' => '',
876
+        'default_argument_type' => 'current_user',
877
+        'default_argument' => '',
878
+        'validate_type' => 'none',
879
+        'validate_fail' => 'not found',
880
+        'break_phrase' => 0,
881
+        'not' => 0,
882
+        'id' => 'friend_uid',
883
+        'table' => 'flag_friend',
884
+        'field' => 'friend_uid',
885
+        'override' => array(
886 886
         'button' => 'Use default',
887
-      ),
888
-      'relationship' => 'none',
889
-      'default_options_div_prefix' => '',
890
-      'default_argument_user' => 0,
891
-      'default_argument_fixed' => '',
892
-      'default_argument_php' => '',
893
-      'validate_argument_node_access' => 0,
894
-      'validate_argument_nid_type' => 'nid',
895
-      'validate_argument_node_flag_name' => '*relationship*',
896
-      'validate_argument_node_flag_test' => 'flaggable',
897
-      'validate_argument_node_flag_id_type' => 'id',
898
-      'validate_argument_user_flag_name' => '*relationship*',
899
-      'validate_argument_user_flag_test' => 'flaggable',
900
-      'validate_argument_user_flag_id_type' => 'id',
901
-      'validate_argument_php' => '',
902
-    ),
903
-  ));
904
-  $handler->override_option('header_format', '3');
905
-  $handler->override_option('header_empty', 0);
906
-  $handler->override_option('items_per_page', 6);
907
-  $handler->override_option('use_pager', '0');
908
-  $handler->override_option('use_more', 1);
909
-  $handler->override_option('use_more_always', 1);
910
-  $handler->override_option('style_plugin', 'default');
911
-  $handler->override_option('style_options', array());
912
-  $handler->override_option('block_description', '');
913
-  $handler->override_option('block_caching', -1);
887
+        ),
888
+        'relationship' => 'none',
889
+        'default_options_div_prefix' => '',
890
+        'default_argument_user' => 0,
891
+        'default_argument_fixed' => '',
892
+        'default_argument_php' => '',
893
+        'validate_argument_node_access' => 0,
894
+        'validate_argument_nid_type' => 'nid',
895
+        'validate_argument_node_flag_name' => '*relationship*',
896
+        'validate_argument_node_flag_test' => 'flaggable',
897
+        'validate_argument_node_flag_id_type' => 'id',
898
+        'validate_argument_user_flag_name' => '*relationship*',
899
+        'validate_argument_user_flag_test' => 'flaggable',
900
+        'validate_argument_user_flag_id_type' => 'id',
901
+        'validate_argument_php' => '',
902
+    ),
903
+    ));
904
+    $handler->override_option('header_format', '3');
905
+    $handler->override_option('header_empty', 0);
906
+    $handler->override_option('items_per_page', 6);
907
+    $handler->override_option('use_pager', '0');
908
+    $handler->override_option('use_more', 1);
909
+    $handler->override_option('use_more_always', 1);
910
+    $handler->override_option('style_plugin', 'default');
911
+    $handler->override_option('style_options', array());
912
+    $handler->override_option('block_description', '');
913
+    $handler->override_option('block_caching', -1);
914 914
 
915
-  $views[$view->name] = $view;
915
+    $views[$view->name] = $view;
916 916
 
917
-  return $views;
917
+    return $views;
918 918
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'users';
15 15
   $view->core = 6;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('relationships', array(
20 20
     'flag_friend_content_rel' => array(
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
       'operator' => '=',
78 78
       'value' => '1',
79 79
       'group' => '0',
80
-      'exposed' => FALSE,
80
+      'exposed' => false,
81 81
       'expose' => array(
82
-        'operator' => FALSE,
82
+        'operator' => false,
83 83
         'label' => '',
84 84
       ),
85 85
       'id' => 'status',
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
   $handler->override_option('cache', array(
96 96
     'type' => 'none',
97 97
   ));
98
-  $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
98
+  $handler->override_option('empty', bts('No Friends have been added.', array(), null, 'boinc:friends-page'));
99 99
   $handler->override_option('empty_format', '5');
100 100
   $handler->override_option('use_pager', '1');
101 101
   $handler->override_option('distinct', 1);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
   $handler->override_option('path', 'account/%/friends/all');
295 295
   $handler->override_option('menu', array(
296 296
     'type' => 'default tab',
297
-    'title' => bts('View All Friends', array(), NULL, 'boinc:friends-page'),
297
+    'title' => bts('View All Friends', array(), null, 'boinc:friends-page'),
298 298
     'description' => '',
299 299
     'weight' => '-10',
300 300
     'name' => 'navigation',
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
   $handler->override_option('path', 'account/%/friends/pending');
524 524
   $handler->override_option('menu', array(
525 525
     'type' => 'tab',
526
-    'title' => bts('Friend Requests', array(), NULL, 'boinc:friends-page'),
526
+    'title' => bts('Friend Requests', array(), null, 'boinc:friends-page'),
527 527
     'description' => '',
528 528
     'weight' => '0',
529 529
     'name' => 'navigation',
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
   $handler->override_option('path', 'account/%/friends/flagged');
719 719
   $handler->override_option('menu', array(
720 720
     'type' => 'tab',
721
-    'title' => bts('Awaiting Friend Approvals', array(), NULL, 'boinc:friends-page'),
721
+    'title' => bts('Awaiting Friend Approvals', array(), null, 'boinc:friends-page'),
722 722
     'description' => '',
723 723
     'weight' => '0',
724 724
     'name' => 'navigation',
@@ -814,10 +814,10 @@  discard block
 block discarded – undo
814 814
       'label_type' => 'none',
815 815
       'format' => 'image_plain',
816 816
       'multiple' => array(
817
-        'group' => TRUE,
817
+        'group' => true,
818 818
         'multiple_number' => '',
819 819
         'multiple_from' => '',
820
-        'multiple_reversed' => FALSE,
820
+        'multiple_reversed' => false,
821 821
       ),
822 822
       'exclude' => 0,
823 823
       'id' => 'field_image_fid',
Please login to merge, or discard this patch.