Completed
Push — master ( e93819...48c18e )
by Daniel
05:46
created
source/CommonCode.php 2 patches
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      *
169 169
      * @param string $fullURL
170 170
      * @param array $features
171
-     * @return blob
171
+     * @return string
172 172
      */
173 173
     protected function getContentFromUrlThroughCurl($fullURL, $features = null)
174 174
     {
@@ -464,8 +464,7 @@  discard block
 block discarded – undo
464 464
      *
465 465
      * @param type $sourcePath
466 466
      * @param type $targetPath
467
-     * @param type $overwrite
468
-     * @return type
467
+     * @return string
469 468
      */
470 469
     protected function moveFilesIntoTargetFolder($sourcePath, $targetPath)
471 470
     {
@@ -632,7 +631,7 @@  discard block
 block discarded – undo
632 631
      *
633 632
      * @param float $fAbove
634 633
      * @param float $fBelow
635
-     * @param mixed $mArguments
634
+     * @param integer $mArguments
636 635
      * @return decimal
637 636
      */
638 637
     protected function setDividedResult($fAbove, $fBelow, $mArguments = 0)
@@ -656,7 +655,7 @@  discard block
 block discarded – undo
656 655
     /**
657 656
      * Provides a list of all known JSON errors and their description
658 657
      *
659
-     * @return type
658
+     * @return null|string
660 659
      */
661 660
     private function setJsonErrorInPlainEnglish()
662 661
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         curl_setopt($chanel, CURLOPT_FAILONERROR, true);
195 195
         $rspJsonFromClient = curl_exec($chanel);
196 196
         if (curl_errno($chanel)) {
197
-            $aReturn['info']     = $this->setArrayToJson([
197
+            $aReturn['info'] = $this->setArrayToJson([
198 198
                 '#'           => curl_errno($chanel),
199 199
                 'description' => curl_error($chanel)
200 200
             ]);
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
                 ->ignoreUnreadableDirs(true)
478 478
                 ->followLinks()
479 479
                 ->in($sourcePath);
480
-        $sFiles     = [];
480
+        $sFiles = [];
481 481
         foreach ($iterator as $file) {
482 482
             $relativePathFile = str_replace($sourcePath, '', $file->getRealPath());
483 483
             if (!file_exists($targetPath . $relativePathFile)) {
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     ->ignoreUnreadableDirs(true)
518 518
                     ->followLinks()
519 519
                     ->in($inputArray['path']);
520
-            $aFiles   = null;
520
+            $aFiles = null;
521 521
             foreach ($iterator as $file) {
522 522
                 if ($file->getATime() < strtotime($inputArray['dateRule'])) {
523 523
                     $aFiles[] = $file->getRealPath();
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
      */
661 661
     private function setJsonErrorInPlainEnglish()
662 662
     {
663
-        $knownErrors  = [
663
+        $knownErrors = [
664 664
             JSON_ERROR_NONE           => null,
665 665
             JSON_ERROR_DEPTH          => 'Maximum stack depth exceeded',
666 666
             JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch',
Please login to merge, or discard this patch.
source/CommonLibLocale.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -105,6 +105,12 @@  discard block
 block discarded – undo
105 105
         return $this->tCmnLb->gettext($localizedStringCode);
106 106
     }
107 107
 
108
+    /**
109
+     * @param string $singularString
110
+     * @param string $pluralString
111
+     *
112
+     * @return string
113
+     */
108 114
     protected function lclMsgCmnNumber($singularString, $pluralString, $numberToEvaluate)
109 115
     {
110 116
         if (is_null($this->commonLibFlags)) {
@@ -114,6 +120,9 @@  discard block
 block discarded – undo
114 120
         return $this->tCmnLb->ngettext($singularString, $pluralString, $numberToEvaluate);
115 121
     }
116 122
 
123
+    /**
124
+     * @param double $content
125
+     */
117 126
     protected function setNumberFormat($content, $features = null)
118 127
     {
119 128
         if (is_null($features)) {
Please login to merge, or discard this patch.
source/DomComponentsByDanielGPwithCDN.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * Returns css link to a given file
64 64
      * Returns an array with CDN call of a known Font-websome css
65 65
      *
66
-     * @param string $cssFile
66
+     * @param string $cssFileName
67 67
      * @return string
68 68
      */
69 69
     private function setCssFileCDNforFontAwesome($cssFileName)
Please login to merge, or discard this patch.
source/MySQLiAdvancedOutput.php 2 patches
Doc Comments   +4 added lines, -14 removed lines patch added patch discarded remove patch
@@ -75,11 +75,10 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Returns a Enum or Set field 2 use in a form
77 77
      *
78
-     * @param string $table_source
79
-     * @param string $field_type
80
-     * @param array $value
81
-     * @param array $features
78
+     * @param string $fld_tp
79
+     * @param array $val
82 80
      * @param string $iar
81
+     * @param string $tblSrc
83 82
      * @return string
84 83
      */
85 84
     private function getFieldOutputEnumSet($tblSrc, $fld_tp, $val, $iar = null)
@@ -122,7 +121,6 @@  discard block
 block discarded – undo
122 121
      *
123 122
      * @param string $tblSrc
124 123
      * @param array $value
125
-     * @param array $features
126 124
      * @param string $iar
127 125
      * @return string
128 126
      */
@@ -192,7 +190,6 @@  discard block
 block discarded – undo
192 190
      * @param string $tbl
193 191
      * @param string $fieldType
194 192
      * @param array $value
195
-     * @param array $features
196 193
      * @param string $iar
197 194
      * @return string
198 195
      */
@@ -252,10 +249,8 @@  discard block
 block discarded – undo
252 249
     /**
253 250
      * Returns a Text field 2 use in a form
254 251
      *
255
-     * @param string $table_source
256 252
      * @param string $fieldType
257 253
      * @param array $value
258
-     * @param array $features
259 254
      * @param string $iar
260 255
      * @return string
261 256
      */
@@ -281,10 +276,8 @@  discard block
 block discarded – undo
281 276
     /**
282 277
      * Returns a Time field 2 use in a form
283 278
      *
284
-     * @param string $table_source
285 279
      * @param string $field_type
286 280
      * @param array $value
287
-     * @param array $features
288 281
      * @param string $iar
289 282
      * @return string
290 283
      */
@@ -313,10 +306,8 @@  discard block
 block discarded – undo
313 306
     /**
314 307
      * Returns a Timestamp field 2 use in a form
315 308
      *
316
-     * @param string $table_source
317 309
      * @param string $field_type
318 310
      * @param array $value
319
-     * @param array $features
320 311
      * @param string $iar
321 312
      * @return string
322 313
      */
@@ -402,10 +393,9 @@  discard block
 block discarded – undo
402 393
     /**
403 394
      * Returns an array with fields referenced by a Foreign key
404 395
      *
405
-     * @param object $db
406 396
      * @param string $database
407 397
      * @param string $tblName
408
-     * @param string $onlyCols
398
+     * @param string $onlyCol
409 399
      * @return array
410 400
      */
411 401
     private function getForeignKeysToArray($database, $tblName, $onlyCol = '')
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 }
167 167
                 $input = $this->setStringIntoShortTag('input', $inAdtnl);
168 168
             } else {
169
-                $query         = $this->sQueryGenericSelectKeyValue([
169
+                $query = $this->sQueryGenericSelectKeyValue([
170 170
                     $foreign_keys_array[$value['COLUMN_NAME']][1],
171 171
                     $foreign_keys_array[$value['COLUMN_NAME']][2],
172 172
                     $foreign_keys_array[$value['COLUMN_NAME']][0]
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
         }
215 215
         if (isset($foreignKeysArray)) {
216
-            $query   = $this->storedQuery('generic_select_key_value', [
216
+            $query = $this->storedQuery('generic_select_key_value', [
217 217
                 $foreignKeysArray[$value['COLUMN_NAME']][1],
218 218
                 $foreignKeysArray[$value['COLUMN_NAME']][2],
219 219
                 $foreignKeysArray[$value['COLUMN_NAME']][0]
@@ -225,14 +225,14 @@  discard block
 block discarded – undo
225 225
             if (!is_null($iar)) {
226 226
                 $inAdtnl = array_merge($inAdtnl, $iar);
227 227
             }
228
-            $slct  = [
228
+            $slct = [
229 229
                 'Options' => $this->setQuery2Server($query, 'array_key_value'),
230 230
                 'Value'   => $this->getFieldValue($value),
231 231
             ];
232 232
             $input = $this->setArrayToSelect($slct['Options'], $slct['Value'], $value['COLUMN_NAME'], $inAdtnl);
233 233
             unset($foreignKeysArray);
234 234
         } else {
235
-            $fldNos      = $this->setFieldNumbers($value);
235
+            $fldNos = $this->setFieldNumbers($value);
236 236
             $inAdtnl = [
237 237
                 'type'      => ($value['COLUMN_NAME'] == 'password' ? 'password' : 'text'),
238 238
                 'name'      => $value['COLUMN_NAME'],
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
         if (isset($this->advCache['tableFKs'][$database][$tblName])) {
419 419
             foreach ($this->advCache['tableFKs'][$database][$tblName] as $value) {
420 420
                 if ($value['COLUMN_NAME'] == $onlyCol) {
421
-                    $query                  = $this->sQueryMySqlColumns([
421
+                    $query = $this->sQueryMySqlColumns([
422 422
                         'TABLE_SCHEMA' => $value['REFERENCED_TABLE_SCHEMA'],
423 423
                         'TABLE_NAME'   => $value['REFERENCED_TABLE_NAME'],
424 424
                         'DATA_TYPE'    => [
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                 $sReturn[] = $this->setNeededField($tblSrc, $value, $feat);
559 559
             }
560 560
         }
561
-        $btn[]                = $this->setStringIntoShortTag('input', [
561
+        $btn[] = $this->setStringIntoShortTag('input', [
562 562
             'type'  => 'submit',
563 563
             'id'    => 'submit',
564 564
             'style' => 'margin-left:220px;',
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
                         'id'    => $key,
592 592
                         'value' => $value,
593 593
                     ]);
594
-                    $sReturn[]   = $this->setStringIntoTag($hiddenInput, 'div');
594
+                    $sReturn[] = $this->setStringIntoTag($hiddenInput, 'div');
595 595
                 }
596 596
             }
597 597
         }
Please login to merge, or discard this patch.
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/MySQLiByDanielGPqueries.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * Internal function to concatenate filters
92 92
      *
93 93
      * @param type $filters
94
-     * @return type
94
+     * @return string
95 95
      */
96 96
     private function sGlueFiltersIntoWhereArrayFilter($filters)
97 97
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * Query to list Databases
130 130
      *
131 131
      * @param type $excludeSystemDbs
132
-     * @return type
132
+     * @return string
133 133
      */
134 134
     protected function sQueryMySqlActiveDatabases($excludeSystemDbs = true)
135 135
     {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * Query to list MySQL engines
152 152
      *
153 153
      * @param string $onlyActiveOnes
154
-     * @return type
154
+     * @return string
155 155
      */
156 156
     protected function sQueryMySqlActiveEngines($onlyActiveOnes = true)
157 157
     {
Please login to merge, or discard this patch.
source/DomComponentsByDanielGP.php 2 patches
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] . '&amp;';
@@ -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.
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,9 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Returns a table from an query
110 110
      *
111
-     * @param array $gArray
112
-     * @param array $features
113
-     * @param boolean $bKeepFullPage
111
+     * @param boolean $bKpFlPge
114 112
      * @return string
115 113
      */
116 114
     protected function setArrayToTable($aElements, $ftrs = null, $bKpFlPge = true)
@@ -580,7 +578,7 @@  discard block
 block discarded – undo
580 578
     /**
581 579
      * Returns css link to a given file
582 580
      *
583
-     * @param string $cssFile
581
+     * @param string $cssFileName
584 582
      * @return string
585 583
      */
586 584
     protected function setCssFile($cssFileName, $hostsWithoutCDNrq = null)
@@ -676,6 +674,9 @@  discard block
 block discarded – undo
676 674
         return '';
677 675
     }
678 676
 
677
+    /**
678
+     * @param string $outputType
679
+     */
679 680
     private function setGZipedUnsafe($outputType)
680 681
     {
681 682
         $rqst = new \Symfony\Component\HttpFoundation\Request;
@@ -982,6 +983,9 @@  discard block
 block discarded – undo
982 983
         return $addingUrl;
983 984
     }
984 985
 
986
+    /**
987
+     * @param integer $groupCounter
988
+     */
985 989
     protected function updateDivTitleName($rememberGroupVal, $groupCounter)
986 990
     {
987 991
         $jsContent = '$(document).ready(function() { $("#tab_'
Please login to merge, or discard this patch.