@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @access private |
198 | 198 | * @param string $sFileToMerge file to get |
199 | - * @param object $base base |
|
200 | - * @return object |
|
199 | + * @param stdClass $base base |
|
200 | + * @return stdClass |
|
201 | 201 | */ |
202 | 202 | private static function _mergeAndGetConf(string $sFileToMerge, \StdClass $base) : \StdClass |
203 | 203 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @access private |
224 | 224 | * @param $oConfFiles |
225 | - * @param StdClass $base |
|
225 | + * @param stdClass $base |
|
226 | 226 | * @return multitype:array multitype:array |
227 | 227 | */ |
228 | 228 | private static function _recursiveGet($oConfFiles, StdClass $base) : array |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @access public |
120 | 120 | * @param mixed $mKey |
121 | - * @return void |
|
121 | + * @return boolean |
|
122 | 122 | */ |
123 | 123 | public function __isset($mKey) |
124 | 124 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @access public |
132 | 132 | * @param mixed $mOffset |
133 | - * @return mixed |
|
133 | + * @return boolean |
|
134 | 134 | */ |
135 | 135 | function offsetExists($mOffset) |
136 | 136 | { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * run the routeur |
91 | 91 | * |
92 | 92 | * @access public |
93 | - * @return void |
|
93 | + * @return null|boolean |
|
94 | 94 | */ |
95 | 95 | public function run() |
96 | 96 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | * load a route |
379 | 379 | * |
380 | 380 | * @access private |
381 | - * @param stdClass $oRoute one route |
|
381 | + * @param \stdClass $oRoute one route |
|
382 | 382 | * @param string $RequestUri URI |
383 | 383 | * @return void |
384 | 384 | */ |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * check security of access |
64 | 64 | * |
65 | 65 | * @access public |
66 | - * @return void |
|
66 | + * @return null|boolean |
|
67 | 67 | */ |
68 | 68 | |
69 | 69 | public function checkSecurity() { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @access public |
43 | 43 | * @param string $sCode code of the url between "routes" and "route" in Route.conf |
44 | 44 | * @param array $aParams parameters to create the url |
45 | - * @return void |
|
45 | + * @return string |
|
46 | 46 | * |
47 | 47 | * @tutorial If I have this route I could make my URL: |
48 | 48 | * |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | * Get the UID of the connected user, or 0 |
504 | 504 | * if the Facebook user is not connected. |
505 | 505 | * |
506 | - * @return string the UID if available. |
|
506 | + * @return integer the UID if available. |
|
507 | 507 | */ |
508 | 508 | public function getUser() { |
509 | 509 | if ($this->user !== null) { |
@@ -757,6 +757,7 @@ discard block |
||
757 | 757 | * either logged in to Facebook or has granted an offline access permission. |
758 | 758 | * |
759 | 759 | * @param string $code An authorization code. |
760 | + * @param string $redirect_uri |
|
760 | 761 | * @return mixed An access token exchanged for the authorization code, or |
761 | 762 | * false if an access token could not be generated. |
762 | 763 | */ |
@@ -1135,7 +1136,7 @@ discard block |
||
1135 | 1136 | /** |
1136 | 1137 | * Build the URL for given domain alias, path and parameters. |
1137 | 1138 | * |
1138 | - * @param $name string The name of the domain |
|
1139 | + * @param string $name string The name of the domain |
|
1139 | 1140 | * @param $path string Optional path (without a leading slash) |
1140 | 1141 | * @param $params array Optional query parameters |
1141 | 1142 | * |
@@ -1402,6 +1403,9 @@ discard block |
||
1402 | 1403 | return self::endsWith($big, '.'.$small); |
1403 | 1404 | } |
1404 | 1405 | |
1406 | + /** |
|
1407 | + * @param string $small |
|
1408 | + */ |
|
1405 | 1409 | protected static function endsWith($big, $small) { |
1406 | 1410 | $len = strlen($small); |
1407 | 1411 | if ($len === 0) { |
@@ -150,6 +150,9 @@ |
||
150 | 150 | return self::FBSS_COOKIE_NAME . '_' . $this->getAppId(); |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param string $key |
|
155 | + */ |
|
153 | 156 | protected function constructSessionVariableName($key) { |
154 | 157 | $parts = array('fb', $this->getAppId(), $key); |
155 | 158 | if ($this->sharedSessionID) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @access public |
99 | 99 | * @param string $sName name of the session |
100 | - * @return mixed |
|
100 | + * @return boolean |
|
101 | 101 | */ |
102 | 102 | public function delete(string $sName) |
103 | 103 | { |
@@ -108,7 +108,6 @@ discard block |
||
108 | 108 | * flush the cache |
109 | 109 | * |
110 | 110 | * @access public |
111 | - * @param string $sName name of the session |
|
112 | 111 | * @return mixed |
113 | 112 | */ |
114 | 113 | public function flush() |
@@ -121,7 +120,7 @@ discard block |
||
121 | 120 | * |
122 | 121 | * @access public |
123 | 122 | * @param string $sName name of the session |
124 | - * @return mixed |
|
123 | + * @return string |
|
125 | 124 | */ |
126 | 125 | private function _getSubDirectory($sName) |
127 | 126 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param string $sName name of the session |
38 | 38 | * @param int $iFlags flags |
39 | 39 | * @param int $iTimeout expiration of cache |
40 | - * @return mixed |
|
40 | + * @return boolean |
|
41 | 41 | */ |
42 | 42 | public function get(string $sName, int &$iFlags = null, int $iTimeout = 0) |
43 | 43 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param mixed $mValue value of this sesion var |
53 | 53 | * @param int $iFlag unused |
54 | 54 | * @param int $iExpire expiration of cache |
55 | - * @return \Venus\lib\Cache\Apc |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | public function set(string $sName, $mValue, int $iFlag = 0, int $iExpire = false) |
58 | 58 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * flush the cache |
64 | 64 | * |
65 | 65 | * @access public |
66 | - * @return mixed |
|
66 | + * @return boolean |
|
67 | 67 | */ |
68 | 68 | public function flush() |
69 | 69 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @access public |
77 | 77 | * @param string $sName name of the session |
78 | - * @return mixed |
|
78 | + * @return boolean |
|
79 | 79 | */ |
80 | 80 | public function delete(string $sName) |
81 | 81 | { |
@@ -88,9 +88,8 @@ discard block |
||
88 | 88 | * @access public |
89 | 89 | * @param string $sName name of the session |
90 | 90 | * @param mixed $mValue value of this sesion var |
91 | - * @param int $iFlag unused |
|
92 | 91 | * @param int $iExpire expiration of cache |
93 | - * @return mixed |
|
92 | + * @return boolean |
|
94 | 93 | */ |
95 | 94 | public function add($sName, $mValue, $iExpire = false) |
96 | 95 | { |