Completed
Push — master ( e647cd...a0585d )
by Daniel
06:11
created
source/MySQLiByDanielGP.php 2 patches
Doc Comments   +10 added lines, -9 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     /**
140 140
      * returns a list of MySQL databases
141 141
      *
142
-     * @return array
142
+     * @return string
143 143
      */
144 144
     protected function getMySQLactiveDatabases()
145 145
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * returns a list of active MySQL engines
151 151
      *
152
-     * @return array
152
+     * @return string
153 153
      */
154 154
     protected function getMySQLactiveEngines()
155 155
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * returns the list of all MySQL global variables
179 179
      *
180
-     * @return array
180
+     * @return string
181 181
      */
182 182
     protected function getMySQLglobalVariables()
183 183
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column)
189 189
      *
190
-     * @return array
190
+     * @return string
191 191
      */
192 192
     protected function getMySQLlistColumns($filterArray = null)
193 193
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * returns a list of MySQL databases (w. choice of exclude/include the system ones)
199 199
      *
200
-     * @return array
200
+     * @return string
201 201
      */
202 202
     protected function getMySQLlistDatabases($excludeSystemDbs = true)
203 203
     {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * returns a list of MySQL engines (w. choice of return only the active ones)
209 209
      *
210
-     * @return array
210
+     * @return string
211 211
      */
212 212
     protected function getMySQLlistEngines($onlyActiveOnes = true)
213 213
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     /**
218 218
      * returns a list of MySQL indexes (w. choice of to choose any combination of db/table/column)
219 219
      *
220
-     * @return array
220
+     * @return string
221 221
      */
222 222
     protected function getMySQLlistIndexes($filterArray = null)
223 223
     {
@@ -227,6 +227,8 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * Return various informations (from predefined list) from the MySQL server
229 229
      *
230
+     * @param string $returnChoice
231
+     * @param string $returnType
230 232
      * @return string
231 233
      */
232 234
     private function getMySQLlistMultiple($returnChoice, $returnType, $additionalFeatures = null)
@@ -580,7 +582,7 @@  discard block
 block discarded – undo
580 582
      *
581 583
      * @param array $entryArray
582 584
      * @param string $referenceTable
583
-     * @return array
585
+     * @return string
584 586
      */
585 587
     private function setArrayToFilterValues($entryArray, $referenceTable = '')
586 588
     {
@@ -626,7 +628,6 @@  discard block
 block discarded – undo
626 628
     /**
627 629
      * Returns maximum length for a given MySQL field
628 630
      *
629
-     * @param string $field_full_type
630 631
      * @return array
631 632
      */
632 633
     protected function setFieldNumbers($fieldDetails, $outputFormated = false)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      */
359 359
     protected function getRowDataFromTable($tableName, $filtersArray)
360 360
     {
361
-        $query   = $this->sQueryRowsFromTable([
361
+        $query = $this->sQueryRowsFromTable([
362 362
             $tableName,
363 363
             $this->setArrayToFilterValues($filtersArray),
364 364
         ]);
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
                     case 'array_numbered':
721 721
                     case 'array_pairs_key_value':
722 722
                     case 'full_array_key_numbered':
723
-                        $aReturn           = $this->setMySQLquery2ServerByPattern([
723
+                        $aReturn = $this->setMySQLquery2ServerByPattern([
724 724
                             'NoOfColumns' => $result->field_count,
725 725
                             'NoOfRows'    => $result->num_rows,
726 726
                             'QueryResult' => $result,
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
                         break;
731 731
                     case 'full_array_key_numbered_with_record_number_prefix':
732 732
                     case 'full_array_key_numbered_with_prefix':
733
-                        $aReturn           = $this->setMySQLquery2ServerByPattern([
733
+                        $aReturn = $this->setMySQLquery2ServerByPattern([
734 734
                             'NoOfColumns' => $result->field_count,
735 735
                             'NoOfRows'    => $result->num_rows,
736 736
                             'QueryResult' => $result,
Please login to merge, or discard this patch.
source/DomComponentsByDanielGP.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                                     . $aElements[$rCntr][$value] . '"/>';
412 412
                             break;
413 413
                         case 'edit':
414
-                            $edt           = '';
414
+                            $edt = '';
415 415
                             if (isset($ftrs['NoAjaxEditing'])) {
416 416
                                 $edt .= $_SERVER['PHP_SELF'] . '?' . $actPrfx
417 417
                                         . $action_key . '=' . $value[0] . '&';
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
                     switch ($value[1]) {
480 480
                         case '/':
481 481
                             // next variable is only to avoid a long line
482
-                            $shorter                 = [
482
+                            $shorter = [
483 483
                                 $aElements[$rCntr][$value[3]],
484 484
                                 $aElements[$rCntr][$value[4]],
485 485
                             ];
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
                             break;
488 488
                         case '+':
489 489
                             // next variable is only to avoid a long line
490
-                            $iTemp                   = $this->setArrayValuesAsKey([
490
+                            $iTemp = $this->setArrayValuesAsKey([
491 491
                                 $value[0],
492 492
                                 $value[1],
493 493
                                 $value[2]
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
                                         . filter_var($value, FILTER_SANITIZE_STRING) . '">';
847 847
                                 break;
848 848
                             case 'title':
849
-                                $aFeatures[]                 = '<title>'
849
+                                $aFeatures[] = '<title>'
850 850
                                         . filter_var($value, FILTER_SANITIZE_STRING) . '</title>';
851 851
                                 break;
852 852
                         }
Please login to merge, or discard this patch.
source/CommonBasic.php 2 patches
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@  discard block
 block discarded – undo
63 63
         return $aDetails;
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $fileGiven
68
+     */
66 69
     protected function getFileDetailsRawStatistic(\SplFileInfo $info, $fileGiven)
67 70
     {
68 71
         return [
@@ -81,6 +84,9 @@  discard block
 block discarded – undo
81 84
         ];
82 85
     }
83 86
 
87
+    /**
88
+     * @param integer $timeAsPhpNumber
89
+     */
84 90
     private function getFileTimes($timeAsPhpNumber)
85 91
     {
86 92
         return [
@@ -94,7 +100,7 @@  discard block
 block discarded – undo
94 100
      *
95 101
      * @param type $sourcePath
96 102
      * @param type $targetPath
97
-     * @return type
103
+     * @return string
98 104
      */
99 105
     protected function moveFilesIntoTargetFolder($sourcePath, $targetPath)
100 106
     {
@@ -210,7 +216,7 @@  discard block
 block discarded – undo
210 216
     /**
211 217
      * Provides a list of all known JSON errors and their description
212 218
      *
213
-     * @return type
219
+     * @return null|string
214 220
      */
215 221
     protected function setJsonErrorInPlainEnglish()
216 222
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'Name'                   => $info->getRealPath(),
59 59
             'Type'                   => $info->getType(),
60 60
         ];
61
-        $aDetails          = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven));
61
+        $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven));
62 62
         ksort($aDetails);
63 63
         return $aDetails;
64 64
     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      */
215 215
     protected function setJsonErrorInPlainEnglish()
216 216
     {
217
-        $knownErrors  = [
217
+        $knownErrors = [
218 218
             JSON_ERROR_NONE           => null,
219 219
             JSON_ERROR_DEPTH          => 'Maximum stack depth exceeded',
220 220
             JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch',
Please login to merge, or discard this patch.
source/DomCssAndJavascriptByDanielGPwithCDN.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             'highcharts' => 'setJavascriptFileCDNforHighCharts',
134 134
             'exporting'  => 'setJavascriptFileCDNforHighChartsExporting',
135 135
         ];
136
-        $rootFN     = pathinfo($sFileParts[0])['basename'];
136
+        $rootFN = pathinfo($sFileParts[0])['basename'];
137 137
         if (array_key_exists($rootFN, $knownFNs)) {
138 138
             return call_user_func([$this, $knownFNs[$rootFN]], pathinfo($jsFileName)['basename']);
139 139
         }
Please login to merge, or discard this patch.
source/MySQLiAdvancedOutput.php 2 patches
Doc Comments   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@  discard block
 block discarded – undo
55 55
         return explode('.', str_replace('`', '', $tblSrc));
56 56
     }
57 57
 
58
+    /**
59
+     * @param string $fldType
60
+     */
58 61
     private function establishDefaultEnumSet($fldType)
59 62
     {
60 63
         $dfltArray = [
@@ -114,6 +117,11 @@  discard block
 block discarded – undo
114 117
         return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'] . $adnlThings['suffix'], $inAdtnl);
115 118
     }
116 119
 
120
+    /**
121
+     * @param string $tblSrc
122
+     * @param string $fldType
123
+     * @param string $iar
124
+     */
117 125
     private function getFieldOutputEnumSetReadOnly($tblSrc, $fldType, $val, $iar, $adnlThings)
118 126
     {
119 127
         $inputFeatures = [
@@ -132,7 +140,6 @@  discard block
 block discarded – undo
132 140
      *
133 141
      * @param string $tblSrc
134 142
      * @param array $value
135
-     * @param array $features
136 143
      * @param string $iar
137 144
      * @return string
138 145
      */
@@ -202,7 +209,6 @@  discard block
 block discarded – undo
202 209
      * @param string $tbl
203 210
      * @param string $fieldType
204 211
      * @param array $value
205
-     * @param array $features
206 212
      * @param string $iar
207 213
      * @return string
208 214
      */
@@ -262,10 +268,8 @@  discard block
 block discarded – undo
262 268
     /**
263 269
      * Returns a Text field 2 use in a form
264 270
      *
265
-     * @param string $table_source
266 271
      * @param string $fieldType
267 272
      * @param array $value
268
-     * @param array $features
269 273
      * @param string $iar
270 274
      * @return string
271 275
      */
@@ -291,10 +295,8 @@  discard block
 block discarded – undo
291 295
     /**
292 296
      * Returns a Time field 2 use in a form
293 297
      *
294
-     * @param string $table_source
295 298
      * @param string $fieldType
296 299
      * @param array $value
297
-     * @param array $features
298 300
      * @param string $iar
299 301
      * @return string
300 302
      */
@@ -323,10 +325,8 @@  discard block
 block discarded – undo
323 325
     /**
324 326
      * Returns a Timestamp field 2 use in a form
325 327
      *
326
-     * @param string $table_source
327 328
      * @param string $fieldType
328 329
      * @param array $value
329
-     * @param array $features
330 330
      * @param string $iar
331 331
      * @return string
332 332
      */
@@ -419,10 +419,9 @@  discard block
 block discarded – undo
419 419
     /**
420 420
      * Returns an array with fields referenced by a Foreign key
421 421
      *
422
-     * @param object $db
423 422
      * @param string $database
424 423
      * @param string $tblName
425
-     * @param string $onlyCols
424
+     * @param string $onlyCol
426 425
      * @return array
427 426
      */
428 427
     private function getForeignKeysToArray($database, $tblName, $onlyCol = '')
@@ -627,7 +626,7 @@  discard block
 block discarded – undo
627 626
      * @param string $tableSource
628 627
      * @param array $details
629 628
      * @param array $features
630
-     * @return string|array
629
+     * @return null|string
631 630
      */
632 631
     private function setNeededField($tableSource, $details, $features)
633 632
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                 }
177 177
                 $input = $this->setStringIntoShortTag('input', $inAdtnl);
178 178
             } else {
179
-                $query         = $this->sQueryGenericSelectKeyValue([
179
+                $query = $this->sQueryGenericSelectKeyValue([
180 180
                     $fkArray[$value['COLUMN_NAME']][1],
181 181
                     $fkArray[$value['COLUMN_NAME']][2],
182 182
                     $fkArray[$value['COLUMN_NAME']][0]
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             }
224 224
         }
225 225
         if (isset($foreignKeysArray)) {
226
-            $query   = $this->storedQuery('generic_select_key_value', [
226
+            $query = $this->storedQuery('generic_select_key_value', [
227 227
                 $foreignKeysArray[$value['COLUMN_NAME']][1],
228 228
                 $foreignKeysArray[$value['COLUMN_NAME']][2],
229 229
                 $foreignKeysArray[$value['COLUMN_NAME']][0]
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             if (!is_null($iar)) {
236 236
                 $inAdtnl = array_merge($inAdtnl, $iar);
237 237
             }
238
-            $slct  = [
238
+            $slct = [
239 239
                 'Options' => $this->setQuery2Server($query, 'array_key_value'),
240 240
                 'Value'   => $this->getFieldValue($value),
241 241
             ];
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
         if (isset($this->advCache['tableFKs'][$database][$tblName])) {
436 436
             foreach ($this->advCache['tableFKs'][$database][$tblName] as $value) {
437 437
                 if ($value['COLUMN_NAME'] == $onlyCol) {
438
-                    $query                  = $this->sQueryMySqlColumns([
438
+                    $query = $this->sQueryMySqlColumns([
439 439
                         'TABLE_SCHEMA' => $value['REFERENCED_TABLE_SCHEMA'],
440 440
                         'TABLE_NAME'   => $value['REFERENCED_TABLE_NAME'],
441 441
                         'DATA_TYPE'    => [
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
                 $sReturn[] = $this->setNeededField($tblSrc, $value, $feat);
572 572
             }
573 573
         }
574
-        $btn[]                = $this->setStringIntoShortTag('input', [
574
+        $btn[] = $this->setStringIntoShortTag('input', [
575 575
             'type'  => 'submit',
576 576
             'id'    => 'submit',
577 577
             'style' => 'margin-left:220px;',
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
                         'id'    => $key,
605 605
                         'value' => $value,
606 606
                     ]);
607
-                    $sReturn[]   = $this->setStringIntoTag($hiddenInput, 'div');
607
+                    $sReturn[] = $this->setStringIntoTag($hiddenInput, 'div');
608 608
                 }
609 609
             }
610 610
         }
Please login to merge, or discard this patch.