Completed
Branch master (1bc8d1)
by Pierre-Henry
33:16
created
_protected/framework/Mvc/Router/FrontController.class.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -427,6 +427,7 @@
 block discarded – undo
427 427
 
428 428
     /**
429 429
      * @access private
430
+     * @param string $sMod
430 431
      * @return void
431 432
      */
432 433
     private function ajaxRouter($sMod = null)
Please login to merge, or discard this patch.
Unused Use Statements   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,16 +15,15 @@
 block discarded – undo
15 15
 namespace PH7\Framework\Mvc\Router;
16 16
 defined('PH7') or exit('Restricted access');
17 17
 
18
-use
19
-PH7\Framework\Translate\Lang,
20
-PH7\Framework\Layout\LoadTemplate,
21
-PH7\Framework\Mvc\Model\Engine\Db,
22
-PH7\Framework\Registry\Registry,
23
-PH7\Framework\Config\Config,
24
-PH7\Framework\Mvc\Model\DbConfig,
25
-PH7\Framework\Mvc\Request\Http,
26
-PH7\Framework\Url\Uri,
27
-PH7\Framework\Mvc\Router\Uri as UriRoute;
18
+use PH7\Framework\Translate\Lang;
19
+use PH7\Framework\Layout\LoadTemplate;
20
+use PH7\Framework\Mvc\Model\Engine\Db;
21
+use PH7\Framework\Registry\Registry;
22
+use PH7\Framework\Config\Config;
23
+use PH7\Framework\Mvc\Model\DbConfig;
24
+use PH7\Framework\Mvc\Request\Http;
25
+use PH7\Framework\Url\Uri;
26
+use PH7\Framework\Mvc\Router\Uri as UriRoute;
28 27
 
29 28
 /**
30 29
  * @class Singleton Class
Please login to merge, or discard this patch.
_protected/framework/Mvc/Router/Uri.class.php 2 patches
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.
Unused Use Statements   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
 namespace PH7\Framework\Mvc\Router;
12 12
 defined('PH7') or exit('Restricted access');
13 13
 
14
-use PH7\Framework\Pattern\Statik, PH7\Framework\Parse\Url;
14
+use PH7\Framework\Pattern\Statik;
15
+use PH7\Framework\Parse\Url;
15 16
 
16 17
 class Uri
17 18
 {
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/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/Structure/General.class.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
      /**
32 32
       * Emit a signal.
33 33
       *
34
-      * @param mixed $mVar [, string $... ]
35 34
       * @return string
36 35
       */
37 36
      public static function emit()
Please login to merge, or discard this patch.
_protected/framework/Translate/Adapter/Gettext/gettext.inc.php 1 patch
Unused Use Statements   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,8 @@
 block discarded – undo
4 4
  */
5 5
 defined('PH7') or exit('Restricted access');
6 6
 
7
-use
8
-PH7\Framework\Translate\Adapter\Gettext\StreamReader,
9
-PH7\Framework\Translate\Adapter\Gettext\StringReader,
10
-PH7\Framework\Translate\Adapter\Gettext\FileReader,
11
-PH7\Framework\Translate\Adapter\Gettext\CachedFileReader;
7
+use PH7\Framework\Translate\Adapter\Gettext\StreamReader;
8
+use PH7\Framework\Translate\Adapter\Gettext\FileReader;
12 9
 
13 10
 
14 11
 /*
Please login to merge, or discard this patch.
_protected/framework/Translate/Lang.class.php 2 patches
Unused Use Statements   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 {
15 15
  defined('PH7') or exit('Restricted access');
16 16
 
17
- use PH7\Framework\Config\Config, PH7\Framework\Cookie\Cookie;
17
+ use PH7\Framework\Config\Config;
18
+ use PH7\Framework\Cookie\Cookie;
18 19
 
19 20
  class Lang
20 21
  {
@@ -177,7 +178,8 @@  discard block
 block discarded – undo
177 178
 namespace
178 179
 {
179 180
 
180
- use PH7\Framework\Registry\Registry, PH7\Framework\Parse\SysVar;
181
+ use PH7\Framework\Registry\Registry;
182
+ use PH7\Framework\Parse\SysVar;
181 183
 
182 184
  /**
183 185
   * Check if GetText PHP extension exists, if not, it'll includes the GetText library.
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
       * Set the default language name.
49 49
       *
50 50
       * @param string $sNewDefLang Prefix of the language.
51
-      * @return object $this
51
+      * @return Lang $this
52 52
       */
53 53
      public function setDefaultLang($sNewDefLang)
54 54
      {
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
      /**
61 61
       * Set the user language name.
62 62
       *
63
-      * @param string $sNewDefaultLang Prefix of the language.
64
-      * @return object $this
63
+      * @return Lang $this
65 64
       */
66 65
      public function setUserLang($sNewUserLang)
67 66
      {
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
       *
121 120
       * @param string $sFileName The language filename (e.g., "global").
122 121
       * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL
123
-      * @return object $this
122
+      * @return Lang $this
124 123
       */
125 124
      public function load($sFileName, $sPath = null)
126 125
      {
@@ -134,7 +133,7 @@  discard block
 block discarded – undo
134 133
      /**
135 134
       * Loading language files.
136 135
       *
137
-      * @return object $this
136
+      * @return Lang $this
138 137
       * @throws \PH7\Framework\Translate\Exception If the language file is not found.
139 138
       */
140 139
      public function init()
@@ -202,7 +201,6 @@  discard block
 block discarded – undo
202 201
  /**
203 202
   * Language helper function.
204 203
   *
205
-  * @param string $sVar [, string $... ]
206 204
   * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table).
207 205
   */
208 206
  function t(...$aTokens)
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Api.class.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * @param string $sUrl
68
-     * @return mixed (string | boolean) The embed URL if id is valid, false otherwise.
68
+     * @return false|string (string | boolean) The embed URL if id is valid, false otherwise.
69 69
      */
70 70
     public function getEmbedUrl($sUrl)
71 71
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,10 +13,9 @@
 block discarded – undo
13 13
 namespace PH7\Framework\Video\Api;
14 14
 defined('PH7') or exit('Restricted access');
15 15
 
16
-use
17
-PH7\Framework\File\File,
18
-PH7\Framework\Str\Str,
19
-PH7\Framework\Mvc\Model\DbConfig;
16
+use PH7\Framework\File\File;
17
+use PH7\Framework\Str\Str;
18
+use PH7\Framework\Mvc\Model\DbConfig;
20 19
 
21 20
 abstract class Api
22 21
 {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Dailymotion.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     /**
24 24
      * @param string $sUrl
25
-     * @return mixed (string | boolean) Returns the video embed URL if it was found, FALSE otherwise.
25
+     * @return false|string (string | boolean) Returns the video embed URL if it was found, FALSE otherwise.
26 26
      */
27 27
     public function getVideo($sUrl)
28 28
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * @param string $sUrl
58
-     * @return mixed (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise.
58
+     * @return string|false (integer | boolean) Returns the ID of the video if it was found, FALSE otherwise.
59 59
      */
60 60
     public function getVideoId($sUrl)
61 61
     {
Please login to merge, or discard this patch.