Passed
Push — master ( 48d769...5ccf6e )
by Michael
07:14
created
class/htmlinput.abstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  * @access    public
22 22
  */
23 23
 
24
-require_once __DIR__ . '/field.php';
24
+require_once __DIR__.'/field.php';
25 25
 
26 26
 /**
27 27
  * Class PedigreeHtmlInputAbstract
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $ret = [];
85 85
         global $xoopsDB;
86
-        $SQL    = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_lookup' . $fieldnumber) . " ORDER BY 'order'";
86
+        $SQL    = 'SELECT * FROM '.$GLOBALS['xoopsDB']->prefix('pedigree_lookup'.$fieldnumber)." ORDER BY 'order'";
87 87
         $result = $GLOBALS['xoopsDB']->query($SQL);
88 88
         while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) {
89 89
             $ret[] = ['id' => $row['id'], 'value' => $row['value']];
Please login to merge, or discard this patch.
class/TextArea.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->fieldnumber  = $parentObject->getId();
46 46
         $this->fieldname    = $parentObject->fieldname;
47
-        $this->value        = $animalObject->{'user' . $this->fieldnumber};
47
+        $this->value        = $animalObject->{'user'.$this->fieldnumber};
48 48
         $this->defaultvalue = $parentObject->defaultvalue;
49 49
         if ($parentObject->hasLookup()) {
50
-            xoops_error('No lookuptable may be specified for userfield ' . $this->fieldnumber, get_class($this));
50
+            xoops_error('No lookuptable may be specified for userfield '.$this->fieldnumber, get_class($this));
51 51
         }
52 52
         if ($parentObject->inAdvanced()) {
53
-            xoops_error('userfield ' . $this->fieldnumber . ' cannot be shown in advanced info', get_class($this));
53
+            xoops_error('userfield '.$this->fieldnumber.' cannot be shown in advanced info', get_class($this));
54 54
         }
55 55
         if ($parentObject->inPie()) {
56
-            xoops_error('A Pie-chart cannot be specified for userfield ' . $this->fieldnumber, get_class($this));
56
+            xoops_error('A Pie-chart cannot be specified for userfield '.$this->fieldnumber, get_class($this));
57 57
         }
58 58
     }
59 59
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function editField()
64 64
     {
65
-        $textarea = new \XoopsFormTextArea('<b>' . $this->fieldname . '</b>', 'user' . $this->fieldnumber, $value = $this->value, $rows = 5, $cols = 50);
65
+        $textarea = new \XoopsFormTextArea('<b>'.$this->fieldname.'</b>', 'user'.$this->fieldnumber, $value = $this->value, $rows = 5, $cols = 50);
66 66
 
67 67
         return $textarea;
68 68
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function newField($name = '')
76 76
     {
77
-        $textarea = new \XoopsFormTextArea('<b>' . $this->fieldname . '</b>', $name . 'user' . $this->fieldnumber, $value = $this->defaultvalue, $rows = 5, $cols = 50);
77
+        $textarea = new \XoopsFormTextArea('<b>'.$this->fieldname.'</b>', $name.'user'.$this->fieldnumber, $value = $this->defaultvalue, $rows = 5, $cols = 50);
78 78
 
79 79
         return $textarea;
80 80
     }
Please login to merge, or discard this patch.
class/ImageColor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,8 +216,8 @@
 block discarded – undo
216 216
      */
217 217
     public function changeLightness($degree = 10)
218 218
     {
219
-        $color1 =& $this->color1;
220
-        $color2 =& $this->color2;
219
+        $color1 = & $this->color1;
220
+        $color2 = & $this->color2;
221 221
 
222 222
         for ($x = 0; $x < 3; ++$x) {
223 223
             if (($color1[$x] + $degree) < 256) {
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 // defined('XOOPS_ROOT_PATH') || die('Restricted access');
32 32
 
33
-include __DIR__ . '/preloads/autoloader.php';
33
+include __DIR__.'/preloads/autoloader.php';
34 34
 
35 35
 $modversion['version']       = 1.32;
36 36
 $modversion['release_date']  = '2018/05/05';
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 $modversion['config'][] = [
85 85
     'name'        => 'proversion',
86 86
     'title'       => '_MI_PEDIGREE_PROVERSION',
87
-    'description' => '_MI_PEDIGREE_PROVERSION_DESC',//'is this the pro version ?',
87
+    'description' => '_MI_PEDIGREE_PROVERSION_DESC', //'is this the pro version ?',
88 88
     'formtype'    => 'yesno',
89 89
     'valuetype'   => 'int',
90 90
     'default'     => 1
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 $modversion['config'][] = [
94 94
     'name'        => 'ownerbreeder',
95 95
     'title'       => '_MI_PEDIGREE_OWNERBREEDER',
96
-    'description' => '_MI_PEDIGREE_OWNERBREEDER_DESC',//'should the owner/breeder fields be used ?',
96
+    'description' => '_MI_PEDIGREE_OWNERBREEDER_DESC', //'should the owner/breeder fields be used ?',
97 97
     'formtype'    => 'yesno',
98 98
     'valuetype'   => 'int',
99 99
     'default'     => 1
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 $modversion['config'][] = [
103 103
     'name'        => 'brothers',
104 104
     'title'       => '_MI_PEDIGREE_BROTHERS',
105
-    'description' => '_MI_PEDIGREE_BROTHERS_DESC',//'should the brothers & sisters field be shown ?',
105
+    'description' => '_MI_PEDIGREE_BROTHERS_DESC', //'should the brothers & sisters field be shown ?',
106 106
     'formtype'    => 'yesno',
107 107
     'valuetype'   => 'int',
108 108
     'default'     => 1
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 $modversion['config'][] = [
112 112
     'name'        => 'pups',
113 113
     'title'       => '_MI_PEDIGREE_PUPS',
114
-    'description' => '_MI_PEDIGREE_PUPS_DESC',//'should the pups/children field be shown ?',
114
+    'description' => '_MI_PEDIGREE_PUPS_DESC', //'should the pups/children field be shown ?',
115 115
     'formtype'    => 'yesno',
116 116
     'valuetype'   => 'int',
117 117
     'default'     => 1
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 
157 157
 $modversion['config'][] = [
158 158
     'name'        => 'children',
159
-    'title'       => '_MI_PEDIGREE_CHILDREN',//'language option children',
160
-    'description' => '_MI_PEDIGREE_CHILDREN_DESC',//'language option children',
159
+    'title'       => '_MI_PEDIGREE_CHILDREN', //'language option children',
160
+    'description' => '_MI_PEDIGREE_CHILDREN_DESC', //'language option children',
161 161
     'formtype'    => 'textbox',
162 162
     'valuetype'   => 'textarea',
163 163
     'default'     => 'children'
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 $modversion['config'][] = [
167 167
     'name'        => 'welcome',
168 168
     'title'       => '_MI_PEDIGREE_WELCOME',
169
-    'description' => '_MI_PEDIGREE_WELCOME_DESC',//'language option children',
169
+    'description' => '_MI_PEDIGREE_WELCOME_DESC', //'language option children',
170 170
     'formtype'    => 'textarea',
171 171
     'valuetype'   => 'text',
172 172
     'default'     => ' Welcome to the online pedigree database.
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 $modversion['config'][] = [
187 187
     'name'        => 'mother',
188 188
     'title'       => '_MI_PEDIGREE_MOTHER',
189
-    'description' => '_MI_PEDIGREE_MOTHER_DESC',//'language option mother',
189
+    'description' => '_MI_PEDIGREE_MOTHER_DESC', //'language option mother',
190 190
     'formtype'    => 'textbox',
191 191
     'valuetype'   => 'textarea',
192 192
     'default'     => 'mother'
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 $modversion['config'][] = [
196 196
     'name'        => 'father',
197 197
     'title'       => '_MI_PEDIGREE_FATHER',
198
-    'description' => '_MI_PEDIGREE_FATHER_DESC',//'language option father',
198
+    'description' => '_MI_PEDIGREE_FATHER_DESC', //'language option father',
199 199
     'formtype'    => 'textbox',
200 200
     'valuetype'   => 'textarea',
201 201
     'default'     => 'father'
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 $modversion['config'][] = [
205 205
     'name'        => 'female',
206 206
     'title'       => '_MI_PEDIGREE_FEMALE',
207
-    'description' => '_MI_PEDIGREE_FEMALE_DESC',//'language option female',
207
+    'description' => '_MI_PEDIGREE_FEMALE_DESC', //'language option female',
208 208
     'formtype'    => 'textbox',
209 209
     'valuetype'   => 'textarea',
210 210
     'default'     => 'female'
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 $modversion['config'][] = [
214 214
     'name'        => 'male',
215 215
     'title'       => '_MI_PEDIGREE_MALE',
216
-    'description' => '_MI_PEDIGREE_MALE_DESC',//'language option male',
216
+    'description' => '_MI_PEDIGREE_MALE_DESC', //'language option male',
217 217
     'formtype'    => 'textbox',
218 218
     'valuetype'   => 'textarea',
219 219
     'default'     => 'male'
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 $modversion['config'][] = [
223 223
     'name'        => 'litter',
224 224
     'title'       => '_MI_PEDIGREE_LITTER',
225
-    'description' => '_MI_PEDIGREE_LITTER_DESC',//'language option litter',
225
+    'description' => '_MI_PEDIGREE_LITTER_DESC', //'language option litter',
226 226
     'formtype'    => 'textbox',
227 227
     'valuetype'   => 'textbox',
228 228
     'default'     => 'litter'
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 $modversion['config'][] = [
232 232
     'name'        => 'uselitter',
233 233
     'title'       => '_MI_PEDIGREE_USELITTER',
234
-    'description' => '_MI_PEDIGREE_USELITTER_DESC',//'should the litter feature be used ?',
234
+    'description' => '_MI_PEDIGREE_USELITTER_DESC', //'should the litter feature be used ?',
235 235
     'formtype'    => 'yesno',
236 236
     'valuetype'   => 'int',
237 237
     'default'     => 1
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 $modversion['config'][] = [
241 241
     'name'        => 'colourscheme',
242 242
     'title'       => '_MI_PEDIGREE_COLOR',
243
-    'description' => '_MI_PEDIGREE_COLOR_DESC',//'The colour scheme to be used',
243
+    'description' => '_MI_PEDIGREE_COLOR_DESC', //'The colour scheme to be used',
244 244
     'formtype'    => 'textbox',
245 245
     'valuetype'   => 'textbox',
246 246
     'default'     => '#663300,#999966,#B2B27F,#333333,#020000,#80804D,#999999,#663300'
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 $modversion['config'][] = [
250 250
     'name'        => 'showwelcome',
251 251
     'title'       => '_MI_PEDIGREE_SHOWELCOME',
252
-    'description' => '_MI_PEDIGREE_SHOWELCOME_DESC',//'Show the welcome screen',
252
+    'description' => '_MI_PEDIGREE_SHOWELCOME_DESC', //'Show the welcome screen',
253 253
     'formtype'    => 'yesno',
254 254
     'valuetype'   => 'int',
255 255
     'default'     => 1
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     'description' => '_MI_PEDIGREE_UPLOADDIRDSC',
272 272
     'formtype'    => 'textbox',
273 273
     'valuetype'   => 'text',
274
-    'default'     => XOOPS_ROOT_PATH . '/uploads/' . $modversion['dirname']
274
+    'default'     => XOOPS_ROOT_PATH.'/uploads/'.$modversion['dirname']
275 275
 ];
276 276
 
277 277
 $modversion['config'][] = [
@@ -320,31 +320,31 @@  discard block
 block discarded – undo
320 320
     'name' => _MI_PEDIGREE_VIEW_SEARCH,
321 321
     'url'  => 'index.php'
322 322
 ];
323
-$modversion['sub'][]   = [
323
+$modversion['sub'][] = [
324 324
     'name' => _MI_PEDIGREE_ADD_ANIMAL,
325 325
     'url'  => 'add_dog.php'
326 326
 ];
327
-$modversion['sub'][]   = [
327
+$modversion['sub'][] = [
328 328
     'name' => _MI_PEDIGREE_ADD_LITTER,
329 329
     'url'  => 'add_litter.php'
330 330
 ];
331
-$modversion['sub'][]   = [
331
+$modversion['sub'][] = [
332 332
     'name' => _MI_PEDIGREE_VIEW_OWNERS,
333 333
     'url'  => 'breeder.php'
334 334
 ];
335
-$modversion['sub'][]   = [
335
+$modversion['sub'][] = [
336 336
     'name' => _MI_PEDIGREE_ADD_OWNER,
337 337
     'url'  => 'add_breeder.php'
338 338
 ];
339
-$modversion['sub'][]   = [
339
+$modversion['sub'][] = [
340 340
     'name' => _MI_PEDIGREE_ADVANCED_INFO,
341 341
     'url'  => 'advanced.php'
342 342
 ];
343
-$modversion['sub'][]   = [
343
+$modversion['sub'][] = [
344 344
     'name' => _MI_PEDIGREE_VIRTUAL_MATING,
345 345
     'url'  => 'virtual.php'
346 346
 ];
347
-$modversion['sub'][]   = [
347
+$modversion['sub'][] = [
348 348
     'name' => _MI_PEDIGREE_LATEST_ADDITIONS,
349 349
     'url'  => 'latest.php'
350 350
 ];
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     'item_name'      => 'id',
428 428
     'allow_bookmark' => 1
429 429
 ];
430
-$modversion['notification']['event'][]    = [
430
+$modversion['notification']['event'][] = [
431 431
     'name'          => 'change_data',
432 432
     'category'      => 'dog',
433 433
     'title'         => _MI_PEDIGREE_DATA_NOTIFY,
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use XoopsModules\Pedigree\Common;
22 22
 
23 23
 //require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
24
-require_once __DIR__ . '/admin_header.php';
24
+require_once __DIR__.'/admin_header.php';
25 25
 xoops_cp_header();
26 26
 $adminObject = \Xmf\Module\Admin::getInstance();
27 27
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 
39 39
 if ($helper->getConfig('displaySampleButton')) {
40 40
     xoops_loadLanguage('admin/modulesadmin', 'system');
41
-    require_once  dirname(__DIR__) . '/testdata/index.php';
41
+    require_once  dirname(__DIR__).'/testdata/index.php';
42 42
 
43
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
43
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
44 44
 
45
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
45
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
46 46
 
47 47
     //    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA'), '__DIR__ . /../../testdata/index.php?op=exportschema', 'add');
48 48
 
@@ -55,4 +55,4 @@  discard block
 block discarded – undo
55 55
 
56 56
 echo $utility::getServerStats();
57 57
 
58
-require_once __DIR__ . '/admin_footer.php';
58
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
 
45 45
 use XoopsModules\Pedigree;
46 46
 
47
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
47
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
48 48
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
49 49
 
50
-require_once  dirname(__DIR__) . '/include/common.php';
50
+require_once  dirname(__DIR__).'/include/common.php';
51 51
 //require_once  dirname(__DIR__) . '/include/config.php';
52 52
 
53 53
 $moduleDirName = basename(dirname(__DIR__));
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 use XoopsModules\Pedigree;
32 32
 
33
-include dirname(__DIR__) . '/preloads/autoloader.php';
33
+include dirname(__DIR__).'/preloads/autoloader.php';
34 34
 //require_once  dirname(__DIR__) . '/include/common.php';
35 35
 /** @var \XoopsModules\Pedigree\Helper $helper */
36 36
 $helper = Pedigree\Helper::getInstance();
@@ -58,38 +58,38 @@  discard block
 block discarded – undo
58 58
 $adminmenu[] = [
59 59
     'title' => _MI_PEDIGREE_ADMENU1,
60 60
     'link'  => 'admin/index.php',
61
-    'icon'  => $pathIcon32 . '/home.png'
61
+    'icon'  => $pathIcon32.'/home.png'
62 62
 ];
63 63
 
64 64
 $adminmenu[] = [
65 65
     'title' => _MI_PEDIGREE_ADMENU5,
66 66
     'link'  => 'admin/pedigree.php',
67
-    'icon'  => $pathIcon32 . '/groupmod.png'
67
+    'icon'  => $pathIcon32.'/groupmod.png'
68 68
 ];
69 69
 
70 70
 $adminmenu[] = [
71 71
     'title' => _MI_PEDIGREE_ADMENU3,
72 72
     'link'  => 'admin/owner.php',
73
-    'icon'  => $pathIcon32 . '/user-icon.png'
73
+    'icon'  => $pathIcon32.'/user-icon.png'
74 74
 ];
75 75
 
76 76
 $adminmenu[] = [
77 77
     'title' => _MI_PEDIGREE_ADMENU4,
78 78
     'link'  => 'admin/pedigree_temp.php',
79
-    'icon'  => $pathIcon32 . '/wizard.png'
79
+    'icon'  => $pathIcon32.'/wizard.png'
80 80
 ];
81 81
 
82 82
 
83 83
 $adminmenu[] = [
84 84
     'title' => _MI_PEDIGREE_ADMENU2,
85 85
     'link'  => 'admin/pedigree_trash.php',
86
-    'icon'  => $pathIcon32 . '/alert.png'
86
+    'icon'  => $pathIcon32.'/alert.png'
87 87
 ];
88 88
 
89 89
 $adminmenu[] = [
90 90
     'title' => _MI_PEDIGREE_ADMENU6,
91 91
     'link'  => 'admin/pedigree_config.php',
92
-    'icon'  => $pathIcon32 . '/administration.png'
92
+    'icon'  => $pathIcon32.'/administration.png'
93 93
 ];
94 94
 
95 95
 /*
@@ -103,5 +103,5 @@  discard block
 block discarded – undo
103 103
 $adminmenu[] = [
104 104
     'title' => _MI_PEDIGREE_ADMENU8,
105 105
     'link'  => 'admin/about.php',
106
-    'icon'  => $pathIcon32 . '/about.png'
106
+    'icon'  => $pathIcon32.'/about.png'
107 107
 ];
Please login to merge, or discard this patch.
admin/admin_footer.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 $pathIcon32      = Xmf\Module\Admin::iconUrl('', 32);
20 20
 
21 21
 echo "<div class='adminfooter'>\n"
22
-     ."  <div style='text-align: center;'>\n"
23
-     ."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
24
-     ."  </div>\n"
25
-     .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
26
-     .'</div>';
22
+        ."  <div style='text-align: center;'>\n"
23
+        ."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
24
+        ."  </div>\n"
25
+        .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
26
+        .'</div>';
27 27
 
28 28
 xoops_cp_footer();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
  * @author       XOOPS Module Dev Team
17 17
  */
18 18
 
19
-$pathIcon32      = Xmf\Module\Admin::iconUrl('', 32);
19
+$pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
20 20
 
21 21
 echo "<div class='adminfooter'>\n"
22 22
      ."  <div style='text-align: center;'>\n"
23 23
      ."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
24 24
      ."  </div>\n"
25
-     .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
25
+     .'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n"
26 26
      .'</div>';
27 27
 
28 28
 xoops_cp_footer();
Please login to merge, or discard this patch.
updatepage.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 use XoopsModules\Pedigree;
27 27
 
28 28
 //require_once  dirname(dirname(__DIR__)) . '/mainfile.php';
29
-require_once __DIR__ . '/header.php';
29
+require_once __DIR__.'/header.php';
30 30
 
31 31
 $moduleDirName = basename(__DIR__);
32 32
 xoops_loadLanguage('main', $moduleDirName);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 //check for access
35 35
 //$xoopsModule = XoopsModule::getByDirname($moduleDirName);
36 36
 if (empty($GLOBALS['xoopsUser']) || !($GLOBALS['xoopsUser'] instanceof \XoopsUser)) {
37
-    redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br>' . _MA_PEDIGREE_REGIST);
37
+    redirect_header('javascript:history.go(-1)', 3, _NOPERM.'<br>'._MA_PEDIGREE_REGIST);
38 38
 }
39 39
 
40 40
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 */
64 64
 $table   = Request::getString('dbtable', '', 'POST');
65 65
 $field   = Request::getString('dbfield', '', 'POST');
66
-$field   = $GLOBALS['xoopsDB']->escape('`' . $field . '`');
66
+$field   = $GLOBALS['xoopsDB']->escape('`'.$field.'`');
67 67
 $dogname = Request::getString('curname', '', 'POST');
68 68
 $name    = Request::getString('naam', '', 'POST');
69 69
 //$gender   = Request::getInt('roft', 0, 'POST');
@@ -75,17 +75,17 @@  discard block
 block discarded – undo
75 75
 $fields = $animal->getNumOfFields();
76 76
 
77 77
 foreach ($fields as $i => $iValue) {
78
-    if ('user' . $iValue === $_POST['dbfield']) {
78
+    if ('user'.$iValue === $_POST['dbfield']) {
79 79
         $userField = new Pedigree\Field($fields[$i], $animal->getConfig());
80 80
         if ($userField->isActive()) {
81
-            $currentfield = 'user' . $iValue;
81
+            $currentfield = 'user'.$iValue;
82 82
             $pictureField = $_FILES[$currentfield]['name'];
83 83
             if (empty($pictureField)) {
84
-                $newvalue = $_POST['user' . $iValue];
84
+                $newvalue = $_POST['user'.$iValue];
85 85
             } else {
86 86
                 $newvalue = Pedigree\Utility::uploadPicture(0);
87 87
             }
88
-            $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET {$field}='{$newvalue}' WHERE id='{$dogid}'";
88
+            $sql = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table)." SET {$field}='{$newvalue}' WHERE id='{$dogid}'";
89 89
             $GLOBALS['xoopsDB']->queryF($sql);
90 90
 
91 91
             $ch = 1;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 if (!empty($name)) {
98 98
     $curval = Request::getString('curvalname', '', 'POST');
99 99
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET {$field}='{$name}' WHERE id='{$dogid}'";
100
-    $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $GLOBALS['xoopsDB']->escape($name) . "' WHERE id='" . $dogid . "'";
100
+    $sql = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$GLOBALS['xoopsDB']->escape($name)."' WHERE id='".$dogid."'";
101 101
     $GLOBALS['xoopsDB']->queryF($sql);
102 102
 
103 103
     $ch = 1;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 if (isset($_POST['id_owner'])) {
107 107
     $curval = Request::getInt('curvaleig', 0, 'POST');
108 108
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET {$field}='" . $_POST['id_owner'] . "' WHERE id='{$dogid}'";
109
-    $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['id_owner'] . "' WHERE id='" . $dogid . "'";
109
+    $sql = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$_POST['id_owner']."' WHERE id='".$dogid."'";
110 110
     $GLOBALS['xoopsDB']->queryF($sql);
111 111
 
112 112
     $ch = 1;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     $curval = Request::getInt('curvalfok', 0, 'POST');
117 117
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET {$field}='" . $_POST['id_breeder'] . "' WHERE id='{$dogid}'";
118 118
     $id_breeder = Request::getInt('id_breeder', 0, 'post');
119
-    $sql        = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $id_breeder . "' WHERE id='" . $dogid . "'";
119
+    $sql        = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$id_breeder."' WHERE id='".$dogid."'";
120 120
     $GLOBALS['xoopsDB']->queryF($sql);
121 121
 
122 122
     $ch = 1;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     $curval = Request::getInt('curvalroft', 0, 'POST');
128 128
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET {$field}='" . $_POST['roft'] . "' WHERE id='{$dogid}'";
129 129
     $roft = Request::getInt('roft', 0, 'post');
130
-    $sql  = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $roft . "' WHERE id='" . $dogid . "'";
130
+    $sql  = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$roft."' WHERE id='".$dogid."'";
131 131
     $GLOBALS['xoopsDB']->queryF($sql);
132 132
 
133 133
     $ch = 1;
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
     //$curname = Pedigree\Utility::getName($curval);
140 140
     $table = 'pedigree_tree';
141 141
     if (0 == Request::getInt('gend', '', 'GET')) {
142
-        $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET father='" . $thisid . "' WHERE id='{$curval}'";
142
+        $sql = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table)." SET father='".$thisid."' WHERE id='{$curval}'";
143 143
         $GLOBALS['xoopsDB']->queryF($sql);
144 144
     } else {
145
-        $sql = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET mother='" . $thisid . "' WHERE id='{$curval}'";
145
+        $sql = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table)." SET mother='".$thisid."' WHERE id='{$curval}'";
146 146
         $GLOBALS['xoopsDB']->queryF($sql);
147 147
     }
148 148
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 if ('foto' === $_POST['dbfield']) {
154 154
     $curval = Request::getString('curvalpic', '', 'POST');
155 155
     $foto   = Pedigree\Utility::uploadPicture(0);
156
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . " SET foto='" . $GLOBALS['xoopsDB']->escape($foto) . "' WHERE id='{$dogid}'";
156
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table)." SET foto='".$GLOBALS['xoopsDB']->escape($foto)."' WHERE id='{$dogid}'";
157 157
     $GLOBALS['xoopsDB']->queryF($sql);
158 158
 
159 159
     $ch = 1;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['naaml'] . "' WHERE id='" . $dogid . "'";
167 167
     $curval = Request::getString('curvalnamel', '', 'POST');
168 168
     $naaml  = Request::getString('naaml', '', 'POST');
169
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $GLOBALS['xoopsDB']->escape($naaml) . "' WHERE id='" . $dogid . "'";
169
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$GLOBALS['xoopsDB']->escape($naaml)."' WHERE id='".$dogid."'";
170 170
     $GLOBALS['xoopsDB']->queryF($sql);
171 171
     $chow = 1;
172 172
 }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['naamf'] . "' WHERE id='" . $dogid . "'";
177 177
     $curval = Request::getString('curvalnamef', '', 'POST');
178 178
     $naaml  = Request::getString('naamf', '', 'POST');
179
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $GLOBALS['xoopsDB']->escape($naamf) . "' WHERE id='" . $dogid . "'";
179
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$GLOBALS['xoopsDB']->escape($naamf)."' WHERE id='".$dogid."'";
180 180
     $GLOBALS['xoopsDB']->query($sql);
181 181
     $chow = 1;
182 182
 }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['street'] . "' WHERE id='" . $dogid . "'";
187 187
     $curval = Request::getString('curvalstreet', '', 'POST');
188 188
     $street = $GLOBALS['xoopsDB']->escape(Request::getString('street', '', 'POST'));
189
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $street . "' WHERE id='" . $dogid . "'";
189
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$street."' WHERE id='".$dogid."'";
190 190
     $GLOBALS['xoopsDB']->queryF($sql);
191 191
     $chow = 1;
192 192
 }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['housenumber'] . "' WHERE id='" . $dogid . "'";
197 197
     $curval      = Request::getString('curvalhousenumber', '', 'POST');
198 198
     $housenumber = $GLOBALS['xoopsDB']->escape(Request::getString('housenumber', '', 'POST'));
199
-    $sql         = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $housenumber . "' WHERE id='" . $dogid . "'";
199
+    $sql         = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$housenumber."' WHERE id='".$dogid."'";
200 200
     $GLOBALS['xoopsDB']->queryF($sql);
201 201
     $chow = 1;
202 202
 }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['postcode'] . "' WHERE id='" . $dogid . "'";
207 207
     $curval   = Request::getString('curvalpostcode', '', 'POST');
208 208
     $postcode = $GLOBALS['xoopsDB']->escape(Request::getString('postcode', '', 'POST'));
209
-    $sql      = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $postcode . "' WHERE id='" . $dogid . "'";
209
+    $sql      = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$postcode."' WHERE id='".$dogid."'";
210 210
     $GLOBALS['xoopsDB']->query($sql);
211 211
     $chow = 1;
212 212
 }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['city'] . "' WHERE id='" . $dogid . "'";
217 217
     $curval = Request::getString('curvalcity', '', 'POST');
218 218
     $city   = $GLOBALS['xoopsDB']->escape(Request::getString('city', '', 'POST'));
219
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $city . "' WHERE id='" . $dogid . "'";
219
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$city."' WHERE id='".$dogid."'";
220 220
     $GLOBALS['xoopsDB']->query($sql);
221 221
     $chow = 1;
222 222
 }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['phonenumber'] . "' WHERE id='" . $dogid . "'";
227 227
     $curval      = Request::getString('curvalphonenumber', '', 'POST');
228 228
     $phonenumber = $GLOBALS['xoopsDB']->escape(Request::getString('phonenumber', '', 'POST'));
229
-    $sql         = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $phonenumber . "' WHERE id='" . $dogid . "'";
229
+    $sql         = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$phonenumber."' WHERE id='".$dogid."'";
230 230
     $GLOBALS['xoopsDB']->query($sql);
231 231
     $chow = 1;
232 232
 }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['email'] . "' WHERE id='" . $dogid . "'";
237 237
     $curval = Request::getString('curvalemail', '', 'POST');
238 238
     $email  = $GLOBALS['xoopsDB']->escape(Request::getEmail('email', '', 'POST'));
239
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $email . "' WHERE id='" . $dogid . "'";
239
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$email."' WHERE id='".$dogid."'";
240 240
     $GLOBALS['xoopsDB']->query($sql);
241 241
     $chow = 1;
242 242
 }
@@ -246,22 +246,22 @@  discard block
 block discarded – undo
246 246
     //    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $_POST['web'] . "' WHERE id='" . $dogid . "'";
247 247
     $curval = Request::getString('curvalweb', '', 'POST');
248 248
     $web    = $GLOBALS['xoopsDB']->escape(Request::getUrl('web', '', 'POST'));
249
-    $sql    = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix($table) . ' SET ' . $field . "='" . $web . "' WHERE id='" . $dogid . "'";
249
+    $sql    = 'UPDATE '.$GLOBALS['xoopsDB']->prefix($table).' SET '.$field."='".$web."' WHERE id='".$dogid."'";
250 250
     $GLOBALS['xoopsDB']->query($sql);
251 251
     $chow = 1;
252 252
 }
253 253
 
254 254
 //check for access and completion
255 255
 if ($ch) {
256
-    redirect_header('dog.php?id=' . $dogid, 1, _MD_DATACHANGED);
256
+    redirect_header('dog.php?id='.$dogid, 1, _MD_DATACHANGED);
257 257
 } elseif ($chow) {
258
-    redirect_header('owner.php?ownid=' . $dogid, 1, _MD_DATACHANGED);
258
+    redirect_header('owner.php?ownid='.$dogid, 1, _MD_DATACHANGED);
259 259
 } else {
260 260
     foreach ($_POST as $key => $values) {
261
-        $filesval .= $key . ' : ' . Request::getString($values) . '<br>';
261
+        $filesval .= $key.' : '.Request::getString($values).'<br>';
262 262
     }
263 263
 
264
-    redirect_header('dog.php?id=' . $dogid, 15, 'ERROR!!<br>' . $filesval);
264
+    redirect_header('dog.php?id='.$dogid, 15, 'ERROR!!<br>'.$filesval);
265 265
 }
266 266
 //footer
267
-include XOOPS_ROOT_PATH . '/footer.php';
267
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.