Passed
Pull Request — development (#682)
by Thomas
06:58
created
htdocs/lib2/search/search.txt.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@
 block discarded – undo
228 228
     return $str;
229 229
 }
230 230
 
231
+/**
232
+ * @param string $str
233
+ */
231 234
 function lf2crlf($str)
232 235
 {
233 236
     return mb_ereg_replace("\r\r\n", "\r\n", mb_ereg_replace("\n", "\r\n", $str));
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/ChildWp/ControllerChildWp.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         $this->translator = $this->initTranslator($translator);
29 29
     }
30 30
 
31
+    /**
32
+     * @param boolean $request
33
+     */
31 34
     private function initRequest($request)
32 35
     {
33 36
         if ($request) {
@@ -37,6 +40,9 @@  discard block
 block discarded – undo
37 40
         return new RequestHttp();
38 41
     }
39 42
 
43
+    /**
44
+     * @param boolean $translator
45
+     */
40 46
     private function initTranslator($translator)
41 47
     {
42 48
         if ($translator) {
Please login to merge, or discard this patch.
htdocs/lib2/logic/useroptions.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -113,6 +113,11 @@  discard block
 block discarded – undo
113 113
         return $this->nOptions[$pId]['internal_use'];
114 114
     }
115 115
 
116
+    /**
117
+     * @param integer $pId
118
+     *
119
+     * @return string
120
+     */
116 121
     public function getOptValue($pId)
117 122
     {
118 123
         if ($pId == USR_OPT_SHOWSTATS &&
@@ -129,6 +134,9 @@  discard block
 block discarded – undo
129 134
         return false;
130 135
     }
131 136
 
137
+    /**
138
+     * @param integer $pValue
139
+     */
132 140
     public function setOptVisible($pId, $pValue)
133 141
     {
134 142
         $pId += 0;
Please login to merge, or discard this patch.
htdocs/lib2/ss_zip.class.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
     public $cdir = [];
35 35
 
36 36
     /**    constructor
37
-
38
-*
37
+     *
39 38
 *@param string $zipFile if not empty must contain path to valid zip file, ss_zip will try to open and parse it.
40 39
      *               If this parameter is empty, the new empty zip archive is created. This parameter has no meaning in
41 40
      *               LIGHT verion, please upgrade to PROfessional version.
Please login to merge, or discard this patch.
htdocs/lib2/logic/picture.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
     }
693 693
 
694 694
     /**
695
-     * @return bool|string
695
+     * @return string|false
696 696
      */
697 697
     public function getPageLink()
698 698
     {
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
     /**
725 725
      * @param $tmpFile
726 726
      * @param $longSideSize
727
-     * @return bool
727
+     * @return null|boolean
728 728
      */
729 729
     public function rotate_and_shrink($tmpFile, $longSideSize)
730 730
     {
Please login to merge, or discard this patch.
htdocs/lib2/search/search.xml.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 
206 206
 /**
207 207
  * @param string $str
208
- * @return mixed
208
+ * @return string
209 209
  */
210 210
 function lf2crlf($str)
211 211
 {
Please login to merge, or discard this patch.
htdocs/lib2/imagebmp.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -577,7 +577,7 @@
 block discarded – undo
577 577
 }
578 578
 
579 579
 /**
580
- * @param $d
580
+ * @param integer $d
581 581
  * @param integer $n
582 582
  *
583 583
  * @return string
Please login to merge, or discard this patch.
htdocs/lib/common.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -802,6 +802,9 @@
 block discarded – undo
802 802
     return '';
803 803
 }
804 804
 
805
+/**
806
+ * @return string
807
+ */
805 808
 function get_logtype_name($logtype, $language)
806 809
 {
807 810
     return sqlValue(
Please login to merge, or discard this patch.
local/maintenance/email_recovery.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             'SELECT COUNT(*)
101 101
              FROM `' . $table . '`
102 102
              WHERE ' . $this->getDateCondition($table, $dateField) .
103
-                       ($andWhere ? ' AND (' . $andWhere . ')' : ''),
103
+                        ($andWhere ? ' AND (' . $andWhere . ')' : ''),
104 104
             0
105 105
         );
106 106
         self::message(1, $objectCount . ' ' . $description);
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@  discard block
 block discarded – undo
82 82
         return preg_match("/^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/", $datetime);
83 83
     }
84 84
 
85
+    /**
86
+     * @param integer $level
87
+     * @param string $text
88
+     */
85 89
     private static function message($level, $text)
86 90
     {
87 91
         echo str_repeat(' ', 2 * $level) . $text . "\n";
@@ -94,6 +98,11 @@  discard block
 block discarded – undo
94 98
             ' AND `' . $table . '`.`' . $field . "` <= '" . sql_escape($this->toDateTime) . "'";
95 99
     }
96 100
 
101
+    /**
102
+     * @param string $table
103
+     * @param string $dateField
104
+     * @param string $description
105
+     */
97 106
     private function showObjectCount($table, $dateField, $description, $andWhere = '')
98 107
     {
99 108
         $objectCount = sql_value(
Please login to merge, or discard this patch.