Passed
Branch master (b7438d)
by Gino
03:05
created
class/fields.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * @private function getFormNewLine
194 194
      *
195
-     * @param $form
196
-     * @param $class
197
-     * @param $i
195
+     * @param TDMCreateThemeForm $form
196
+     * @param string $class
197
+     * @param integer $i
198 198
      * @param $fieldMid
199 199
      * @param $fieldTid
200 200
      * @param $fName
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
     *  @param null
490 490
     */
491 491
     /**
492
-     * @param $form
492
+     * @param TDMCreateThemeForm $form
493 493
      *
494 494
      * @return mixed
495 495
      */
@@ -693,6 +693,10 @@  discard block
 block discarded – undo
693 693
 
694 694
     /**
695 695
      * Get Fields Criteria.
696
+     * @param integer $start
697
+     * @param integer $limit
698
+     * @param string $sort
699
+     * @param string $order
696 700
      */
697 701
     private function getFieldsCriteria($criteriaFields, $start, $limit, $sort, $order)
698 702
     {
Please login to merge, or discard this patch.
class/files/include/IncludeComments.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     */
81 81
     /**
82 82
      * @param $module
83
-     * @param $filename
83
+     * @param string $filename
84 84
      *
85 85
      * @return bool|string
86 86
      */
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     */
105 105
     /**
106 106
      * @param $module
107
-     * @param $filename
107
+     * @param string $filename
108 108
      *
109 109
      * @return bool|string
110 110
      */
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 2 patches
Doc Comments   +19 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @param $module
70 70
      * @param $tables
71
-     * @param $filename
71
+     * @param string $filename
72 72
      */
73 73
     public function write($module, $tables, $filename)
74 74
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     *  @param $moduleName
83 83
     */
84 84
     /**
85
-     * @param $moduleName
85
+     * @param string $moduleName
86 86
      *
87 87
      * @return string
88 88
      */
@@ -135,6 +135,10 @@  discard block
 block discarded – undo
135 135
     *  @param $moduleDirname
136 136
     *  @return null|string
137 137
     */
138
+
139
+    /**
140
+     * @param string $moduleDirname
141
+     */
138 142
     private function getDatabaseTables($moduleDirname)
139 143
     {
140 144
         $ret = null;
@@ -351,6 +355,10 @@  discard block
 block discarded – undo
351 355
     *  @param $autoincrement
352 356
     *  @return string
353 357
     */
358
+
359
+    /**
360
+     * @param string $autoincrement
361
+     */
354 362
     private function getFieldRow($fieldName, $fieldTypeValue, $fieldAttribute = null, $fieldNull = null, $fieldDefault = null, $autoincrement = null)
355 363
     {
356 364
         $retAutoincrement = <<<SQL
@@ -381,6 +389,10 @@  discard block
 block discarded – undo
381 389
     *  @private function getKey
382 390
     *  @return string
383 391
     */
392
+
393
+    /**
394
+     * @param integer $key
395
+     */
384 396
     private function getKey($key, $fieldName)
385 397
     {
386 398
         switch ($key) {
@@ -420,6 +432,11 @@  discard block
 block discarded – undo
420 432
     *  @param $comma
421 433
     *  @return string
422 434
     */
435
+
436
+    /**
437
+     * @param boolean $row
438
+     * @param string $comma
439
+     */
423 440
     private function getComma($row, $comma = null)
424 441
     {
425 442
         $ret = <<<SQL
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         }
311 311
         // ================= COMMA ================= //
312 312
         for ($i = 0; $i < $j; ++$i) {
313
-            if ($i != $j - 1) {
313
+            if ($i != $j-1) {
314 314
                 $row[] = $comma[$i].',';
315 315
             } else {
316 316
                 $row[] = $comma[$i];
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     {
440 440
         // Comma issue
441 441
         for ($i = 1; $i <= $index; ++$i) {
442
-            if ($i != $index - 1) {
442
+            if ($i != $index-1) {
443 443
                 $ret = $this->getComma(isset($comma[$i]), ',')."\n";
444 444
             } else {
445 445
                 $ret = $this->getComma(isset($comma[$i]))."\n";
Please login to merge, or discard this patch.
class/files/TDMCreateTableFields.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
     /**
31 31
      *  @public function constructor
32 32
      *
33
-     *  @param mixed $table
34 33
      */
35 34
     public function __construct()
36 35
     {
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminPages.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -255,6 +255,10 @@
 block discarded – undo
255 255
     *  @param $filename
256 256
     *  @return bool|string
257 257
     */
258
+
259
+    /**
260
+     * @param string $filename
261
+     */
258 262
     public function renderFile($filename)
259 263
     {
260 264
         $module = $this->getModule();
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 2 patches
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * @param $moduleDirname
85 85
      * @param $table
86
-     * @param $language
86
+     * @param string $language
87 87
      *
88 88
      * @return string
89 89
      */
@@ -109,9 +109,10 @@  discard block
 block discarded – undo
109 109
     *  @param string $language
110 110
     */
111 111
     /**
112
-     * @param $moduleDirname
112
+     * @param string $moduleDirname
113 113
      * @param $table
114
-     * @param $language
114
+     * @param string $language
115
+     * @param string $tableName
115 116
      *
116 117
      * @return string
117 118
      */
@@ -227,7 +228,7 @@  discard block
 block discarded – undo
227 228
     *  @param string $filename
228 229
     */
229 230
     /**
230
-     * @param $filename
231
+     * @param string $filename
231 232
      *
232 233
      * @return bool|string
233 234
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $fieldName = $fields[$f]->getVar('field_name');
96 96
             $stuFieldName = $language.strtoupper($fieldName);
97 97
             $lang = $this->htmlcode->getSmartyConst($language, $stuFieldName);
98
-            $th    .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL;
98
+            $th .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL;
99 99
         }
100 100
         $tr = $this->htmlcode->getHtmlTableRow($th, 'head').PHP_EOL;
101 101
 
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBreadcrumbs.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     *  @param null
48 48
     */
49 49
     /**
50
-     * @return TemplatesUserHeader
50
+     * @return TemplatesUserBreadcrumbs
51 51
      */
52 52
     public static function &getInstance()
53 53
     {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @param $module
70 70
      * @param $tables
71
-     * @param $filename
71
+     * @param string $filename
72 72
      */
73 73
     public function write($module, $filename)
74 74
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $glyph = $this->htmlcode->getHtmlTag('i', array('class' => 'glyphicon glyphicon-home'));
99 99
         $anchor = $this->htmlcode->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home');
100 100
         $into = $this->htmlcode->getHtmlTag('li', array(), $anchor).PHP_EOL;
101
-        $into     .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop');
101
+        $into .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop');
102 102
 
103 103
         $content = $this->htmlcode->getHtmlTag('ul', array('class' => 'breadcrumb'), $into);
104 104
 
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBroken.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * @param $moduleDirname
100 100
      * @param $table
101
-     * @param $language
101
+     * @param string $language
102 102
      *
103 103
      * @return string
104 104
      */
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * @param $moduleDirname
130 130
      * @param $table
131
-     * @param $language
131
+     * @param string $language
132 132
      *
133 133
      * @return string
134 134
      */
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     *  @param string $filename
186 186
     */
187 187
     /**
188
-     * @param $filename
188
+     * @param string $filename
189 189
      *
190 190
      * @return bool|string
191 191
      */
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserHeader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @param $module
70 70
      * @param $tables
71
-     * @param $filename
71
+     * @param string $filename
72 72
      */
73 73
     public function write($module, $filename)
74 74
     {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     *  @param null
82 82
     */
83 83
     /**
84
-     * @return bool|string
84
+     * @return string
85 85
      */
86 86
     public function getTemplatesUserHeader($moduleDirname)
87 87
     {
Please login to merge, or discard this patch.