Passed
Push — main ( f1540e...02d90d )
by Rafael
45:15
created
htdocs/core/modules/modExternalSite.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         // Menus
104 104
         //------
105
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
105
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
106 106
 
107 107
         $this->menu[$r] = array(
108 108
             'fk_menu' => 0,
Please login to merge, or discard this patch.
htdocs/core/modules/modEventOrganization.class.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         // A condition to hide module
120 120
         $this->hidden = false;
121 121
         // List of module class names as string that must be enabled if this module is enabled. Example: array('always'=>array('modModuleToEnable1','modModuleToEnable2'), 'FR'=>array('modModuleToEnableFR'...))
122
-        $this->depends = array('modProjet','modCategorie');
122
+        $this->depends = array('modProjet', 'modCategorie');
123 123
         $this->requiredby = array(); // List of module class names as string to disable if this one is disabled. Example: array('modModuleToDisable1', ...)
124 124
         $this->conflictwith = array(); // List of module class names as string this module is in conflict with. Example: array('modModuleToDisable1', ...)
125 125
 
@@ -232,82 +232,82 @@  discard block
 block discarded – undo
232 232
         /* END MODULEBUILDER TOPMENU */
233 233
         /* BEGIN MODULEBUILDER LEFTMENU CONFERENCEORBOOTH*/
234 234
         $this->menu[$r++] = array(
235
-            'fk_menu' => 'fk_mainmenu=project',     // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
236
-            'type' => 'left',                           // This is a Left menu entry
235
+            'fk_menu' => 'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
236
+            'type' => 'left', // This is a Left menu entry
237 237
             'titre' => 'EventOrganizationMenuLeft',
238 238
             'prefix' => img_picto('', 'eventorganization', 'class="paddingright pictofixedwidth"'),
239 239
             'mainmenu' => 'project',
240 240
             'leftmenu' => 'eventorganization',
241 241
             'url' => '',
242
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
242
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
243 243
             'position' => 1000 + $r,
244
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
245
-            'perms' => '$user->rights->eventorganization->read',                            // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
244
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
245
+            'perms' => '$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
246 246
             'target' => '',
247
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
247
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
248 248
         );
249 249
         $this->menu[$r++] = array(
250
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization',       // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
251
-            'type' => 'left',                           // This is a Left menu entry
250
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
251
+            'type' => 'left', // This is a Left menu entry
252 252
             'titre' => 'List',
253 253
             'url' => '/projet/list.php?search_usage_event_organization=1&search_status=99&mainmenu=project&contextpage=organizedevents',
254
-            'langs' => 'eventorganization@eventorganization',           // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
254
+            'langs' => 'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
255 255
             'position' => 1000 + $r,
256
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
257
-            'perms' => '$user->rights->eventorganization->read',                            // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
256
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
257
+            'perms' => '$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
258 258
             'target' => '',
259
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
259
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
260 260
         );
261 261
         $this->menu[$r++] = array(
262
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization',       // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
263
-            'type' => 'left',                           // This is a Left menu entry
262
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
263
+            'type' => 'left', // This is a Left menu entry
264 264
             'titre' => 'New',
265 265
             'url' => '/projet/card.php?leftmenu=projects&action=create&usage_organize_event=1&usage_opportunity=0',
266
-            'langs' => 'eventorganization@eventorganization',           // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
266
+            'langs' => 'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
267 267
             'position' => 1000 + $r,
268
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
269
-            'perms' => '$user->rights->eventorganization->write',                           // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
268
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
269
+            'perms' => '$user->rights->eventorganization->write', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
270 270
             'target' => '',
271
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
271
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
272 272
         );
273 273
         $this->menu[$r++] = array(
274
-            'fk_menu' => 'fk_mainmenu=project',     // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
275
-            'type' => 'left',                           // This is a Left menu entry
274
+            'fk_menu' => 'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
275
+            'type' => 'left', // This is a Left menu entry
276 276
             'titre' => 'ConferenceOrBooth',
277 277
             'prefix' => img_picto('', 'conferenceorbooth', 'class="paddingright pictofixedwidth"'),
278 278
             'mainmenu' => 'project',
279 279
             'leftmenu' => 'eventorganizationconforbooth',
280 280
             'url' => '',
281
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
281
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
282 282
             'position' => 1000 + $r,
283
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
284
-            'perms' => '$user->rights->eventorganization->read',                            // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
283
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
284
+            'perms' => '$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
285 285
             'target' => '',
286
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
286
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
287 287
         );
288 288
         $this->menu[$r++] = array(
289
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',        // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
290
-            'type' => 'left',                           // This is a Left menu entry
289
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
290
+            'type' => 'left', // This is a Left menu entry
291 291
             'titre' => 'List',
292 292
             'url' => '/eventorganization/conferenceorbooth_list.php?mainmenu=project',
293
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
293
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
294 294
             'position' => 1000 + $r,
295
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
296
-            'perms' => '$user->rights->eventorganization->read',                            // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
295
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
296
+            'perms' => '$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
297 297
             'target' => '',
298
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
298
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
299 299
         );
300 300
         $this->menu[$r++] = array(
301
-            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',        // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
302
-            'type' => 'left',                           // This is a Left menu entry
301
+            'fk_menu' => 'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
302
+            'type' => 'left', // This is a Left menu entry
303 303
             'titre' => 'New',
304 304
             'url' => '/eventorganization/conferenceorbooth_card.php?leftmenu=projects&action=create',
305
-            'langs' => 'eventorganization',         // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
305
+            'langs' => 'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
306 306
             'position' => 1000 + $r,
307
-            'enabled' => '$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
308
-            'perms' => '$user->rights->eventorganization->write',                           // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
307
+            'enabled' => '$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
308
+            'perms' => '$user->rights->eventorganization->write', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
309 309
             'target' => '',
310
-            'user' => 2,                                // 0=Menu for internal users, 1=external users, 2=both
310
+            'user' => 2, // 0=Menu for internal users, 1=external users, 2=both
311 311
         );
312 312
         /* END MODULEBUILDER LEFTMENU CONFERENCEORBOOTH */
313 313
 
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
         $keyforelement = 'conferenceorboothattendee';
326 326
         include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php';
327 327
         $this->export_entities_array[$r]['t.fk_invoice'] = 'invoice';
328
-        unset($this->export_fields_array[$r]['t.fk_project']);  // Remove field so we can add it at end just after
329
-        unset($this->export_fields_array[$r]['t.fk_soc']);  // Remove field so we can add it at end just after
328
+        unset($this->export_fields_array[$r]['t.fk_project']); // Remove field so we can add it at end just after
329
+        unset($this->export_fields_array[$r]['t.fk_soc']); // Remove field so we can add it at end just after
330 330
         $this->export_fields_array[$r]['t.fk_invoice'] = 'InvoiceId';
331 331
         $this->export_fields_array[$r]['t.fk_project'] = 'ProjectId';
332 332
         $this->export_fields_array[$r]['p.ref'] = 'ProjectRef';
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         //unset($this->export_fields_array[$r]['t.fieldtoremove']);
343 343
         $keyforselect = 'conferenceorboothattendee';
344 344
         $keyforaliasextra = 'extra';
345
-        $keyforelement = 'conferenceorboothattendee';  // @phan-suppress-current-line PhanPluginRedundantAssignment
345
+        $keyforelement = 'conferenceorboothattendee'; // @phan-suppress-current-line PhanPluginRedundantAssignment
346 346
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
347 347
         //$this->export_dependencies_array[$r] = array('aaaline'=>array('tl.rowid','tl.ref')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
348 348
         //$this->export_special_array[$r] = array('t.field'=>'...');
Please login to merge, or discard this patch.
htdocs/core/modules/modAgenda.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled
75 75
         $this->requiredby = array(); // List of module ids to disable if this one is disabled
76 76
         $this->conflictwith = array(); // List of module class names as string this module is in conflict with
77
-        $this->langfiles = array("companies","project");
77
+        $this->langfiles = array("companies", "project");
78 78
         $this->phpmin = array(7, 0); // Minimum version of PHP required by module
79 79
 
80 80
         // Module parts
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
         $this->export_code[$r] = $this->rights_class . '_' . $r;
436 436
         $this->export_label[$r] = "ExportDataset_event1";
437 437
         $this->export_permission[$r] = array(array("agenda", "export"));
438
-        $this->export_fields_array[$r] = array('ac.id' => "IdAgenda", 'ac.ref_ext' => "ExternalRef",'ac.ref' => "Ref", 'ac.datec' => "DateCreation", 'ac.datep' => "DateActionBegin",
438
+        $this->export_fields_array[$r] = array('ac.id' => "IdAgenda", 'ac.ref_ext' => "ExternalRef", 'ac.ref' => "Ref", 'ac.datec' => "DateCreation", 'ac.datep' => "DateActionBegin",
439 439
             'ac.datep2' => "DateActionEnd", 'ac.location' => 'Location', 'ac.label' => "Title", 'ac.note' => "Note", 'ac.percent' => "Percentage", 'ac.durationp' => "Duration",
440 440
             'ac.fk_user_author' => 'CreatedById', 'ac.fk_user_action' => 'ActionsOwnedBy', 'ac.fk_user_mod' => 'ModifiedBy', 'ac.transparency' => "Transparency", 'ac.priority' => "Priority", 'ac.fk_element' => "ElementID", 'ac.elementtype' => "ElementType",
441 441
             'cac.libelle' => "ActionType", 'cac.code' => "Code",
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
         }
454 454
         $this->export_TypeFields_array[$r] = array('ac.ref_ext' => "Text", 'ac.ref' => "Text", 'ac.datec' => "Date", 'ac.datep' => "Date",
455 455
             'ac.datep2' => "Date", 'ac.location' => 'Text', 'ac.label' => "Text", 'ac.note' => "Text", 'ac.percent' => "Numeric",
456
-            'ac.durationp' => "Duree",'ac.fk_user_author' => 'Numeric', 'ac.fk_user_action' => 'Numeric', 'ac.fk_user_mod' => 'Numeric', 'ac.transparency' => "Numeric", 'ac.priority' => "Numeric", 'ac.fk_element' => "Numeric", 'ac.elementtype' => "Text",
456
+            'ac.durationp' => "Duree", 'ac.fk_user_author' => 'Numeric', 'ac.fk_user_action' => 'Numeric', 'ac.fk_user_mod' => 'Numeric', 'ac.transparency' => "Numeric", 'ac.priority' => "Numeric", 'ac.fk_element' => "Numeric", 'ac.elementtype' => "Text",
457 457
             'cac.libelle' => "List:c_actioncomm:libelle:libelle", 'cac.code' => "Text",
458 458
             's.nom' => 'Text', 's.address' => 'Text', 's.zip' => 'Text', 's.town' => 'Text',
459 459
             'co.code' => 'Text', 's.phone' => 'Text', 's.siren' => 'Text', 's.siret' => 'Text', 's.ape' => 'Text', 's.idprof4' => 'Text', 's.idprof5' => 'Text', 's.idprof6' => 'Text',
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 
463 463
         );
464 464
         $this->export_entities_array[$r] = array('ac.id' => "action", 'ac.ref_ext' => "action", 'ac.ref' => "action", 'ac.datec' => "action", 'ac.datep' => "action",
465
-            'ac.datep2' => "action", 'ac.location' => 'action', 'ac.label' => "action", 'ac.note' => "action", 'ac.percent' => "action", 'ac.durationp' => "action",'ac.fk_user_author' => 'user', 'ac.fk_user_action' => 'user', 'ac.fk_user_mod' => 'user', 'ac.transparency' => "action", 'ac.priority' => "action", 'ac.fk_element' => "action", 'ac.elementtype' => "action",
465
+            'ac.datep2' => "action", 'ac.location' => 'action', 'ac.label' => "action", 'ac.note' => "action", 'ac.percent' => "action", 'ac.durationp' => "action", 'ac.fk_user_author' => 'user', 'ac.fk_user_action' => 'user', 'ac.fk_user_mod' => 'user', 'ac.transparency' => "action", 'ac.priority' => "action", 'ac.fk_element' => "action", 'ac.elementtype' => "action",
466 466
             's.rowid' => "company", 's.nom' => 'company', 's.address' => 'company', 's.zip' => 'company', 's.town' => 'company',
467 467
             'co.code' => 'company', 's.phone' => 'company', 's.siren' => 'company', 's.siret' => 'company', 's.ape' => 'company', 's.idprof4' => 'company', 's.idprof5' => 'company', 's.idprof6' => 'company',
468 468
             's.code_compta' => 'company', 's.code_compta_fournisseur' => 'company', 's.tva_intra' => 'company',
@@ -581,9 +581,9 @@  discard block
 block discarded – undo
581 581
         );
582 582
 
583 583
         // Import Event Extra Fields
584
-        $keyforselect = 'actioncomm';  // @phan-suppress-current-line PhanPluginRedundantAssignment
585
-        $keyforelement = 'action';  // @phan-suppress-current-line PhanPluginRedundantAssignment
586
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
584
+        $keyforselect = 'actioncomm'; // @phan-suppress-current-line PhanPluginRedundantAssignment
585
+        $keyforelement = 'action'; // @phan-suppress-current-line PhanPluginRedundantAssignment
586
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
587 587
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
588 588
     }
589 589
 }
Please login to merge, or discard this patch.
htdocs/core/modules/modCollab.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
         $r++;*/
111 111
 
112 112
         // Main menu entries
113
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
113
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
114 114
         $this->menu[$r] = array(
115 115
             'fk_menu' => '0', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
116 116
             'type' => 'top', // This is a Left menu entry
Please login to merge, or discard this patch.
htdocs/core/modules/modPaypal.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@
 block discarded – undo
104 104
 
105 105
         // Permissions
106 106
         $this->rights = array(); // Permission array used by this module
107
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
107
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
108 108
 
109 109
 
110 110
         // Main menu entries
111 111
         $this->menu = array(); // List of menus to add
112
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
112
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
113 113
         /*$this->menu[$r]=array(
114 114
             'fk_menu'=>'fk_mainmenu=billing,fk_leftmenu=customers_bills_payment',           // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
115 115
             'mainmenu'=>'billing',
Please login to merge, or discard this patch.
htdocs/core/modules/modPaybox.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         // Permissions
105 105
         $this->rights = array(); // Permission array used by this module
106
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
106
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
107 107
 
108 108
         // Add here list of permission defined by an id, a label, a boolean and two constant strings.
109 109
         // Example:
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         // Main menu entries
119 119
         $this->menu = array(); // List of menus to add
120
-        $r = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
120
+        $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
121 121
 
122 122
         // Add here entries to declare new menus
123 123
         // Example to declare the Top Menu entry:
Please login to merge, or discard this patch.
htdocs/core/modules/modMultiCurrency.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
 
337 337
         $multicurrency = new MultiCurrency($this->db);
338 338
 
339
-        if (! $multicurrency->checkCodeAlreadyExists($conf->currency)) {
339
+        if (!$multicurrency->checkCodeAlreadyExists($conf->currency)) {
340 340
             $langs->loadCacheCurrencies('');
341 341
 
342 342
             $multicurrency->code = $conf->currency;
Please login to merge, or discard this patch.
htdocs/core/modules/oauth/google_oauthcallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
                     $storage->clearToken('Google');
323 323
 
324 324
                     $tmpuser = new User($db);
325
-                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1);    // Load user. Can load with email_oauth2.
325
+                    $res = $tmpuser->fetch(0, '', '', 0, $entitytosearchuser, $useremail, 0, 1); // Load user. Can load with email_oauth2.
326 326
 
327 327
                     if ($res > 0) {
328 328
                         $username = $tmpuser->login;
Please login to merge, or discard this patch.
htdocs/core/modules/modCategorie.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 
238 238
         $keyforselect = 'societe';
239 239
         $keyforelement = 'company';
240
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
240
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
241 241
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
242 242
 
243 243
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
             't.libelle' => 'company', 'pl.code' => 'company', 'st.code' => 'company'
284 284
         ); // We define here only fields that use another picto
285 285
 
286
-        $keyforselect = 'societe';  // @phan-suppress-current-line PhanPluginRedundantAssignment
287
-        $keyforelement = 'company';  // @phan-suppress-current-line PhanPluginRedundantAssignment
288
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
286
+        $keyforselect = 'societe'; // @phan-suppress-current-line PhanPluginRedundantAssignment
287
+        $keyforelement = 'company'; // @phan-suppress-current-line PhanPluginRedundantAssignment
288
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
289 289
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
290 290
 
291 291
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
         $keyforselect = 'adherent';
316 316
         $keyforelement = 'member';
317
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
317
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
318 318
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
319 319
 
320 320
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 
370 370
         $keyforselect = 'socpeople';
371 371
         $keyforelement = 'contact';
372
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
372
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
373 373
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
374 374
 
375 375
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 
400 400
         $keyforselect = 'projet';
401 401
         $keyforelement = 'project';
402
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
402
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
403 403
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
404 404
 
405 405
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 
426 426
         $keyforselect = 'user';
427 427
         $keyforelement = 'user';
428
-        $keyforaliasextra = 'extra';  // @phan-suppress-current-line PhanPluginRedundantAssignment
428
+        $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment
429 429
         include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php';
430 430
 
431 431
         $this->export_sql_start[$r] = 'SELECT DISTINCT ';
Please login to merge, or discard this patch.