Passed
Pull Request — master (#145)
by Goffy
04:27
created
class/Building.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $form->addElement(new \XoopsFormRadioYN(_AM_TDMCREATE_MODULE_INROOT_COPY, 'inroot_copy', $helper->getConfig('inroot_copy')));
74 74
         
75 75
         $form->addElement(new \XoopsFormHidden('op', 'build'));
76
-        $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
76
+        $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
77 77
 
78 78
         return $form;
79 79
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function clearDir($dir, $pattern = '*')
86 86
     {
87 87
         // Find all files and folders matching pattern
88
-        $files = glob($dir . "/$pattern");
88
+        $files = glob($dir."/$pattern");
89 89
         // Interate thorugh the files and folders
90 90
         foreach ($files as $file) {
91 91
             // if it's a directory then re-call clearDir function to delete files inside this directory
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
         }
113 113
         while (false !== ($file = readdir($dir))) {
114 114
             if (('.' !== $file) && ('..' !== $file)) {
115
-                if (is_dir($src . '/' . $file)) {
115
+                if (is_dir($src.'/'.$file)) {
116 116
                     // Copy the directory itself
117
-                    $this->copyDir($src . '/' . $file, $dst . '/' . $file);
117
+                    $this->copyDir($src.'/'.$file, $dst.'/'.$file);
118 118
                 } else {
119 119
                     // Make sure you copy the current script
120
-                    copy($src . '/' . $file, $dst . '/' . $file);
120
+                    copy($src.'/'.$file, $dst.'/'.$file);
121 121
                 }
122 122
             }
123 123
         }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $modversion['release_info']        = 'README';
41 41
 $modversion['release_file']        = 'https://github.com/txmodxoops/tdmcreate-1.91/releases';
42 42
 $modversion['manual']              = 'MANUAL';
43
-$modversion['manual_file']         = XOOPS_URL . "/modules/{$moduleDirName}/docs/manual.txt";
43
+$modversion['manual_file']         = XOOPS_URL."/modules/{$moduleDirName}/docs/manual.txt";
44 44
 $modversion['image']               = "assets/images/logoModule.png";
45 45
 $modversion['dirname']             = $moduleDirName;
46 46
 // Frameworks icons
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 // Module icons
51 51
 $modversion['modicons16']          = 'assets/images/icons/16';
52 52
 $modversion['modicons32']          = 'assets/images/icons/32';
53
-$modversion['targetdir']           = XOOPS_UPLOAD_PATH . "/{$moduleDirName}/repository/";
53
+$modversion['targetdir']           = XOOPS_UPLOAD_PATH."/{$moduleDirName}/repository/";
54 54
 $modversion['module_website_url']  = 'https://github.com/txmodxoops/tdmcreate-1.91';
55 55
 $modversion['module_website_name'] = 'GitHub Txmodx Xoops';
56 56
 $modversion['min_php']             = '7.0';
@@ -86,17 +86,17 @@  discard block
 block discarded – undo
86 86
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
87 87
 // Tables created by sql file (without prefix!)
88 88
 $modversion['tables'] = [
89
-    $moduleDirName . '_' . 'settings',
90
-    $moduleDirName . '_' . 'modules',
91
-    $moduleDirName . '_' . 'tables',
92
-    $moduleDirName . '_' . 'fields',
93
-    $moduleDirName . '_' . 'languages',
94
-    $moduleDirName . '_' . 'fieldtype',
95
-    $moduleDirName . '_' . 'fieldattributes',
96
-    $moduleDirName . '_' . 'fieldnull',
97
-    $moduleDirName . '_' . 'fieldkey',
98
-    $moduleDirName . '_' . 'fieldelements',
99
-    $moduleDirName . '_' . 'morefiles',
89
+    $moduleDirName.'_'.'settings',
90
+    $moduleDirName.'_'.'modules',
91
+    $moduleDirName.'_'.'tables',
92
+    $moduleDirName.'_'.'fields',
93
+    $moduleDirName.'_'.'languages',
94
+    $moduleDirName.'_'.'fieldtype',
95
+    $moduleDirName.'_'.'fieldattributes',
96
+    $moduleDirName.'_'.'fieldnull',
97
+    $moduleDirName.'_'.'fieldkey',
98
+    $moduleDirName.'_'.'fieldelements',
99
+    $moduleDirName.'_'.'morefiles',
100 100
 ];
101 101
 // Scripts to run upon installation or update
102 102
 $modversion['onInstall'] = 'include/install.php';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 $c = 1;
108 108
 
109 109
 $modversion['config'][] = [
110
-    'name'        => 'break' . $c,
110
+    'name'        => 'break'.$c,
111 111
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_GENERAL',
112 112
     'description' => '_MI_TDMCREATE_CONFIG_',
113 113
     'formtype'    => 'line_break',
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
 ++$c;
197 197
 $modversion['config'][] = [
198
-    'name'        => 'break' . $c,
198
+    'name'        => 'break'.$c,
199 199
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_REQUIRED',
200 200
     'description' => '_MI_TDMCREATE_CONFIG_',
201 201
     'formtype'    => 'line_break',
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
 ++$c;
378 378
 $modversion['config'][] = [
379
-    'name'        => 'break' . $c,
379
+    'name'        => 'break'.$c,
380 380
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_OPTIONAL',
381 381
     'description' => '_MI_TDMCREATE_CONFIG_',
382 382
     'formtype'    => 'line_break',
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
  */
581 581
 $modversion['config'][] = [
582 582
     'name'        => 'displaySampleButton',
583
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON',
584
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC',
583
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON',
584
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC',
585 585
     'formtype'    => 'yesno',
586 586
     'valuetype'   => 'int',
587 587
     'default'     => 1,
@@ -592,8 +592,8 @@  discard block
 block discarded – undo
592 592
  */
593 593
 $modversion['config'][] = [
594 594
     'name'        => 'displayDeveloperTools',
595
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS',
596
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC',
595
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS',
596
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC',
597 597
     'formtype'    => 'yesno',
598 598
     'valuetype'   => 'int',
599 599
     'default'     => 0,
Please login to merge, or discard this patch.