Passed
Pull Request — master (#2)
by Michael
07:48 queued 04:06
created
xoops_version.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php declare(strict_types=1);
2 2
 
3
-require_once __DIR__ . '/preloads/autoloader.php';
3
+require_once __DIR__.'/preloads/autoloader.php';
4 4
 
5 5
 error_reporting(E_ALL);
6 6
 $moduleDirName      = basename(__DIR__);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 $modversion['releasedate']         = 'Thursday, 03rd July, 2022';
30 30
 $modversion['website']             = 'www.chronolabs.coop';
31 31
 $modversion['release_info']        = 'Stable 2012/08/16';
32
-$modversion['release_file']        = XOOPS_URL . '/modules/songlist/docs/changelog.txt';
32
+$modversion['release_file']        = XOOPS_URL.'/modules/songlist/docs/changelog.txt';
33 33
 $modversion['author_realname']     = 'Wishcraft';
34 34
 $modversion['author_website_url']  = 'https://www.chronolabs.coop';
35 35
 $modversion['author_website_name'] = 'Chronolabs';
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
 
53 53
 // ------------------- Tables ------------------ //
54 54
 $modversion['tables'] = [
55
-    $moduleDirName . '_' . 'albums',
56
-    $moduleDirName . '_' . 'artists',
57
-    $moduleDirName . '_' . 'category',
58
-    $moduleDirName . '_' . 'extra',
59
-    $moduleDirName . '_' . 'field',
60
-    $moduleDirName . '_' . 'genre',
61
-    $moduleDirName . '_' . 'voice',
62
-    $moduleDirName . '_' . 'requests',
63
-    $moduleDirName . '_' . 'songs',
64
-    $moduleDirName . '_' . 'utf8map',
65
-    $moduleDirName . '_' . 'visibility',
66
-    $moduleDirName . '_' . 'votes',
55
+    $moduleDirName.'_'.'albums',
56
+    $moduleDirName.'_'.'artists',
57
+    $moduleDirName.'_'.'category',
58
+    $moduleDirName.'_'.'extra',
59
+    $moduleDirName.'_'.'field',
60
+    $moduleDirName.'_'.'genre',
61
+    $moduleDirName.'_'.'voice',
62
+    $moduleDirName.'_'.'requests',
63
+    $moduleDirName.'_'.'songs',
64
+    $moduleDirName.'_'.'utf8map',
65
+    $moduleDirName.'_'.'visibility',
66
+    $moduleDirName.'_'.'votes',
67 67
 ];
68 68
 
69 69
 // Admin things
@@ -272,20 +272,20 @@  discard block
 block discarded – undo
272 272
     'description' => '_MI_SONGLIST_SALT_DESC',
273 273
     'formtype'    => 'text',
274 274
     'valuetype'   => 'text',
275
-    'default'     => (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
276
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
277
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
278
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
279
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
280
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
281
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
282
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
283
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
284
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
285
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
286
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
287
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : '')
288
-                     . (2 != random_int(0, 4) ? chr(random_int(32, 190)) : ''),
275
+    'default'     => (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
276
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
277
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
278
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
279
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
280
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
281
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
282
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
283
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
284
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
285
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
286
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
287
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : '')
288
+                     . (2!=random_int(0, 4) ? chr(random_int(32, 190)) : ''),
289 289
 
290 290
     'options' => [],
291 291
 ];
@@ -527,8 +527,8 @@  discard block
 block discarded – undo
527 527
  */
528 528
 $modversion['config'][] = [
529 529
     'name'        => 'displaySampleButton',
530
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON',
531
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC',
530
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON',
531
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC',
532 532
     'formtype'    => 'yesno',
533 533
     'valuetype'   => 'int',
534 534
     'default'     => 1,
@@ -539,8 +539,8 @@  discard block
 block discarded – undo
539 539
  */
540 540
 $modversion['config'][] = [
541 541
     'name'        => 'displayDeveloperTools',
542
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS',
543
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC',
542
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS',
543
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC',
544 544
     'formtype'    => 'yesno',
545 545
     'valuetype'   => 'int',
546 546
     'default'     => 0,
Please login to merge, or discard this patch.