Completed
Push — master ( 5f640f...f30f41 )
by Pierre-Henry
34:09
created
_protected/framework/Mvc/Router/Uri.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * Load route file.
35 35
      *
36 36
      * @param string \DOMDocument $oDom
37
-     * @return object \DOMDocument
37
+     * @return \DOMDocument \DOMDocument
38 38
      * @throws \PH7\Framework\File\Exception If the file is not found.
39 39
      */
40 40
     public static function loadFile(\DOMDocument $oDom)
Please login to merge, or discard this patch.
_protected/framework/Navigation/Browser.class.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * Active browser cache.
43
-     * @return object this
43
+     * @return Browser this
44 44
      */
45 45
     public function cache()
46 46
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Prevent caching in the browser.
57 57
      *
58
-     * @return object this
58
+     * @return Browser this
59 59
      */
60 60
     public function noCache()
61 61
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Are we capable to receive gzipped data?
75 75
      *
76
-     * @return mixed (string | boolean) Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
76
+     * @return false|string (string | boolean) Returns the encoding if it is accepted, false otherwise. Maybe additional check for Mac OS...
77 77
      */
78 78
     public function encoding()
79 79
     {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-     * @return mixed (string | null) The HTTP User Agent is it exists, otherwise the NULL value.
134
+     * @return string (string | null) The HTTP User Agent is it exists, otherwise the NULL value.
135 135
      */
136 136
     public function getUserAgent()
137 137
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Navigation;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use PH7\Framework\Str\Str, PH7\Framework\Mvc\Model\DbConfig, PH7\Framework\Server\Server;
16
+use PH7\Framework\Str\Str;
17
+use PH7\Framework\Mvc\Model\DbConfig;
18
+use PH7\Framework\Server\Server;
17 19
 
18 20
 /**
19 21
  * @internal In this class, there're some yoda conditions.
Please login to merge, or discard this patch.
_protected/framework/Payment/Gateway/Api/PayPal.class.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * Connect to Paypal.
111 111
      *
112
-     * @return mixed (boolean | string) Message from the transaction status on success or FALSE on failure.
112
+     * @return string (boolean | string) Message from the transaction status on success or FALSE on failure.
113 113
      */
114 114
      protected function getStatus()
115 115
      {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     /**
131 131
      * Set the data parameters POST from PayPal system.
132 132
      *
133
-     * @return object this
133
+     * @return Paypal this
134 134
      */
135 135
      protected function setParams()
136 136
      {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @param string $sName
147 147
      * @param string $sValue
148
-     * @return object this
148
+     * @return Paypal this
149 149
      */
150 150
     protected function setUrlData($sName, $sValue)
151 151
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
 namespace PH7\Framework\Payment\Gateway\Api;
13 13
 defined('PH7') or exit('Restricted access');
14 14
 
15
-use PH7\Framework\File\Stream, PH7\Framework\Url\Url;
15
+use PH7\Framework\File\Stream;
16
+use PH7\Framework\Url\Url;
16 17
 
17 18
 /**
18 19
  * PayPal class using PayPal's API
Please login to merge, or discard this patch.
_protected/framework/Security/crypt.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,6 +19,12 @@
 block discarded – undo
19 19
 
20 20
  if (!function_exists('hash_pbkdf2'))
21 21
  {
22
+
23
+    /**
24
+     * @param string $algo
25
+     * @param string $salt
26
+     * @param integer $iterations
27
+     */
22 28
     function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $rawOutput = false)
23 29
     {
24 30
     // check for hashing algorithm
Please login to merge, or discard this patch.
_protected/framework/Security/Security.class.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,6 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Generate a hash for Cookie Password encryption.
77 77
      *
78
-     * @param string $sPassword
79 78
      * @param integer $iLength Default: 40
80 79
      * @return string The Password Hash
81 80
      */
@@ -99,7 +98,6 @@  discard block
 block discarded – undo
99 98
     /**
100 99
      * Generate a user hash.
101 100
      *
102
-     * @param string $sPassword
103 101
      * @param integer $iLength
104 102
      * @param string $sAlgo The algorithm. Only 'whirlpool' or 'sha512' is accepted.
105 103
      * @return string
Please login to merge, or discard this patch.
_protected/framework/Security/Validate/Filter.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -585,7 +585,7 @@
 block discarded – undo
585 585
      * things like j a v a s c r i p t
586 586
      *
587 587
      * @param    type
588
-     * @return    type
588
+     * @return    string
589 589
      */
590 590
     protected function _compact_exploded_words($matches)
591 591
     {
Please login to merge, or discard this patch.
_protected/framework/Security/Version.class.php 1 patch
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Security;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use PH7\Framework\Core\Kernel, PH7\Framework\Security\Validate\Validate;
16
+use PH7\Framework\Core\Kernel;
17
+use PH7\Framework\Security\Validate\Validate;
17 18
 
18 19
 final class Version
19 20
 {
Please login to merge, or discard this patch.
_protected/framework/Service/QRCode.class.php 2 patches
Doc Comments   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * The name of the person.
37 37
      *
38 38
      * @param string $sName
39
-     * @return object this
39
+     * @return QRCode this
40 40
      */
41 41
     public function name($sName)
42 42
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * The full name of the person.
49 49
      *
50 50
      * @param string $sFullName
51
-     * @return object this
51
+     * @return QRCode this
52 52
      */
53 53
     public function fullName($sFullName)
54 54
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * Delivery address.
61 61
      *
62 62
      * @param string $sAddress
63
-     * @return object this
63
+     * @return QRCode this
64 64
      */
65 65
     public function address($sAddress)
66 66
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * Nickname.
73 73
      *
74 74
      * @param string $sNickname
75
-     * @return object this
75
+     * @return QRCode this
76 76
      */
77 77
     public function nickName($sNickname)
78 78
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * Email address.
85 85
      *
86 86
      * @param string $sMail
87
-     * @return object this
87
+     * @return QRCode this
88 88
      */
89 89
     public function email($sMail)
90 90
     {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * Work Phone.
97 97
      *
98 98
      * @param string $sVal
99
-     * @return object this
99
+     * @return QRCode this
100 100
      */
101 101
     public function workPhone($sVal)
102 102
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * Home Phone.
109 109
      *
110 110
      * @param string $sVal
111
-     * @return object this
111
+     * @return QRCode this
112 112
      */
113 113
     public function homePhone($sVal)
114 114
     {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * URL address.
121 121
      *
122 122
      * @param string $sUrl
123
-     * @return object this
123
+     * @return QRCode this
124 124
      */
125 125
     public function url($sUrl)
126 126
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @param string $sPhone
136 136
      * @param string $sText
137
-     * @return object this
137
+     * @return QRCode this
138 138
      */
139 139
     public function sms($sPhone, $sText)
140 140
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * Birthday.
147 147
      *
148 148
      * @param string $sBirthday Date in the format YYYY-MM-DD or ISO 8601
149
-     * @return object this
149
+     * @return QRCode this
150 150
      */
151 151
     public function birthday($sBirthday)
152 152
     {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * Anniversary.
159 159
      *
160 160
      * @param string $sBirthDate Date in the format YYYY-MM-DD or ISO 8601
161
-     * @return object this
161
+     * @return QRCode this
162 162
      */
163 163
     public function anniversary($sBirthDate)
164 164
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * Gender.
171 171
      *
172 172
      * @param character $cSex F = Female. M = Male
173
-     * @return object this
173
+     * @return QRCode this
174 174
      */
175 175
     public function gender($cSex)
176 176
     {
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * A list of "tags" that can be used to describe the object represented by this vCard.
183 183
      *
184
-     * @param string $sCategory
185
-     * @return object this
184
+     * @param string $sCategories
185
+     * @return QRCode this
186 186
      */
187 187
     public function categories($sCategories)
188 188
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * The instant messenger (Instant Messaging and Presence Protocol).
195 195
      *
196 196
      * @param string $sVal
197
-     * @return object this
197
+     * @return QRCode this
198 198
      */
199 199
     public function impp($sVal)
200 200
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * Photo (avatar).
207 207
      *
208 208
      * @param string $sImgUrl URL of the image.
209
-     * @return object this
209
+     * @return QRCode this
210 210
      * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException If the image format is invalid.
211 211
      */
212 212
     public function photo($sImgUrl)
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      * The role, occupation, or business category of the vCard object within an organization.
227 227
      *
228 228
      * @param string $sRole e.g., Executive
229
-     * @return object this
229
+     * @return QRCode this
230 230
      */
231 231
     public function role($sRole)
232 232
     {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * attribute and the X.520 Organization Unit attribute.
243 243
      *
244 244
      * @param string $sOrg e.g., Google;GMail Team;Spam Detection Squad
245
-     * @return object this
245
+     * @return QRCode this
246 246
      */
247 247
     public function organization($sOrg)
248 248
     {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * The supplemental information or a comment that is associated with the vCard.
255 255
      *
256 256
      * @param string $sText
257
-     * @return object this
257
+     * @return QRCode this
258 258
      */
259 259
     public function note($sText)
260 260
     {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      *
268 268
      * @param string $sTitle
269 269
      * @param string $sUrl
270
-     * @return object this
270
+     * @return QRCode this
271 271
      */
272 272
     public function bookmark($sTitle, $sUrl)
273 273
     {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      * @param string $sLat Latitude
282 282
      * @param string $sLon Longitude
283 283
      * @param integer $iHeight Height
284
-     * @return object this
284
+     * @return QRCode this
285 285
      */
286 286
     public function geo($sLat, $sLon, $iHeight)
287 287
     {
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      * The language that the person speaks.
294 294
      *
295 295
      * @param string $sLang e.g., en-US
296
-     * @return object this
296
+     * @return QRCode this
297 297
      */
298 298
     public function lang($sLang)
299 299
     {
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      * @param string $sType
308 308
      * @param string $sSsid
309 309
      * @param string $sPwd
310
-     * @return object this
310
+     * @return QRCode this
311 311
      */
312 312
     public function wifi($sType, $sSsid, $sPwd)
313 313
     {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     /**
319 319
      * Generate the QR code.
320 320
      *
321
-     * @return object this
321
+     * @return QRCode this
322 322
      */
323 323
     public function finish()
324 324
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Service;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use PH7\Framework\Url\Url, PH7\Framework\File\File;
16
+use PH7\Framework\Url\Url;
17
+use PH7\Framework\File\File;
17 18
 
18 19
 class QRCode
19 20
 {
Please login to merge, or discard this patch.
_protected/framework/Str/Str.class.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
       * Count the length of a string and supports the special characters (Asian, Latin, ...).
78 78
       *
79 79
       * @param string $sText
80
-      * @return string
80
+      * @return integer
81 81
       */
82 82
      public function length($sText)
83 83
      {
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
       * Test the equality of two strings.
116 116
       *
117 117
       * @personal For the PHP AND C functions, strcmp and strcasecmp returns a positive or negative integer value if they are different and 0 if they are equal.
118
-      * @param string $text1
119
-      * @param string $text2
118
+      * @param string $sText1
119
+      * @param string $sText2
120 120
       * @return boolean
121 121
       */
122 122
      public function equals($sText1, $sText2)
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
       * @access protected
288 288
       * @param string $sText
289 289
       * @param boolean $bStrip
290
-      * @return The text parsed by Str::stripTags() method if $bStrip parameter is TRUE, otherwise by Str::htmlSpecialChars method.
290
+      * @return string text parsed by Str::stripTags() method if $bStrip parameter is TRUE, otherwise by Str::htmlSpecialChars method.
291 291
       */
292 292
      protected function CEscape($sText, $bStrip)
293 293
      {
@@ -314,6 +314,9 @@  discard block
 block discarded – undo
314 314
          return htmlspecialchars($sText, ENT_QUOTES, 'utf-8');
315 315
      }
316 316
 
317
+     /**
318
+      * @param string $sPattern
319
+      */
317 320
      private static function _regexNormalize($sPattern)
318 321
      {
319 322
          return static::$_sRegexDelimiter . trim($sPattern, static::$_sRegexDelimiter) . static::$_sRegexDelimiter;
Please login to merge, or discard this patch.