@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Check if file exists. |
| 130 | 130 | * |
| 131 | - * @param array|string $mFile |
|
| 131 | + * @param string $mFile |
|
| 132 | 132 | * @return boolean TRUE if file exists, FALSE otherwise. |
| 133 | 133 | */ |
| 134 | 134 | public function existFile($mFile) |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | * Creates a directory if they are in an array. If it does not exist and |
| 281 | 281 | * allows the creation of nested directories specified in the pathname. |
| 282 | 282 | * |
| 283 | - * @param string|array $mDir |
|
| 283 | + * @param string $mDir |
|
| 284 | 284 | * @param integer (octal) $iMode Default: 0777 |
| 285 | 285 | * @return void |
| 286 | 286 | * @throws Exception If the file cannot be created. |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | * |
| 331 | 331 | * @param string $sFrom File or directory. |
| 332 | 332 | * @param string $sTo File or directory. |
| 333 | - * @return integer|boolean Returns the last line on success, and FALSE on failure. |
|
| 333 | + * @return string|false Returns the last line on success, and FALSE on failure. |
|
| 334 | 334 | */ |
| 335 | 335 | public function systemCopy($sFrom, $sTo) |
| 336 | 336 | { |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | * |
| 373 | 373 | * @param string $sFrom File or directory. |
| 374 | 374 | * @param string $sTo File or directory. |
| 375 | - * @return integer|boolean Returns the last line on success, and FALSE on failure. |
|
| 375 | + * @return string|false Returns the last line on success, and FALSE on failure. |
|
| 376 | 376 | */ |
| 377 | 377 | public function systemRename($sFrom, $sTo) |
| 378 | 378 | { |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | /** |
| 80 | 80 | * @param string $sUrl |
| 81 | 81 | * |
| 82 | - * @return string|boolean The embed URL if id is valid, false otherwise. |
|
| 82 | + * @return false|string The embed URL if id is valid, false otherwise. |
|
| 83 | 83 | */ |
| 84 | 84 | public function getEmbedUrl($sUrl) |
| 85 | 85 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @param string $sUrl |
| 24 | 24 | * |
| 25 | - * @return string|boolean Returns the video embed URL if it was found, FALSE otherwise. |
|
| 25 | + * @return false|string Returns the video embed URL if it was found, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * @param string $sUrl |
| 63 | 63 | * |
| 64 | - * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise. |
|
| 64 | + * @return string|false Returns the ID of the video if it was found, FALSE otherwise. |
|
| 65 | 65 | */ |
| 66 | 66 | public function getVideoId($sUrl) |
| 67 | 67 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @param string $sUrl |
| 24 | 24 | * |
| 25 | - * @return string|boolean Returns the embed video URL if found, FALSE otherwise. |
|
| 25 | + * @return false|string Returns the embed video URL if found, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * @param string $sUrl |
| 128 | 128 | * |
| 129 | - * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise. |
|
| 129 | + * @return string|false Returns the ID of the video if it was found, FALSE otherwise. |
|
| 130 | 130 | */ |
| 131 | 131 | public function getVideoId($sUrl) |
| 132 | 132 | { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * |
| 140 | 140 | * @param string $sUrl |
| 141 | 141 | * |
| 142 | - * @return boolean|string |
|
| 142 | + * @return false|string |
|
| 143 | 143 | */ |
| 144 | 144 | public function getEmbedUrl($sUrl) |
| 145 | 145 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @param string $sUrl |
| 24 | 24 | * |
| 25 | - * @return string|boolean Returns the video embed URL if it was found and is valid, FALSE otherwise. |
|
| 25 | + * @return false|string Returns the video embed URL if it was found and is valid, FALSE otherwise. |
|
| 26 | 26 | */ |
| 27 | 27 | public function getVideo($sUrl) |
| 28 | 28 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * @param string $sUrl |
| 72 | 72 | * |
| 73 | - * @return integer|boolean Returns the ID of the video if it was found, FALSE otherwise. |
|
| 73 | + * @return string|false Returns the ID of the video if it was found, FALSE otherwise. |
|
| 74 | 74 | */ |
| 75 | 75 | public function getVideoId($sUrl) |
| 76 | 76 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * @param string $sUrl |
| 28 | 28 | * |
| 29 | - * @return string|boolean Returns the embed video URL if found, FALSE otherwise. |
|
| 29 | + * @return false|string Returns the embed video URL if found, FALSE otherwise. |
|
| 30 | 30 | */ |
| 31 | 31 | public function getVideo($sUrl) |
| 32 | 32 | { |
@@ -13,23 +13,22 @@ |
||
| 13 | 13 | |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\Date\CDateTime, |
|
| 18 | -PH7\Framework\Config\Config, |
|
| 19 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 20 | -PH7\Framework\Ip\Ip, |
|
| 21 | -PH7\Framework\File\File, |
|
| 22 | -PH7\Framework\Util\Various, |
|
| 23 | -PH7\Framework\Geo\Ip\Geo, |
|
| 24 | -PH7\Framework\Error\CException\PH7Exception, |
|
| 25 | -Facebook\Facebook as FB, |
|
| 26 | -Facebook\FacebookResponse, |
|
| 27 | -Facebook\Helpers\FacebookRedirectLoginHelper, |
|
| 28 | -Facebook\GraphNodes\GraphUser, |
|
| 29 | -Facebook\GraphNodes\GraphLocation, |
|
| 30 | -Facebook\Exceptions\FacebookSDKException, |
|
| 31 | -Facebook\Exceptions\FacebookResponseException, |
|
| 32 | -PH7\Framework\Mvc\Router\Uri; |
|
| 16 | +use PH7\Framework\Date\CDateTime; |
|
| 17 | +use PH7\Framework\Config\Config; |
|
| 18 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 19 | +use PH7\Framework\Ip\Ip; |
|
| 20 | +use PH7\Framework\File\File; |
|
| 21 | +use PH7\Framework\Util\Various; |
|
| 22 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 23 | +use PH7\Framework\Error\CException\PH7Exception; |
|
| 24 | +use Facebook\Facebook as FB; |
|
| 25 | +use Facebook\FacebookResponse; |
|
| 26 | +use Facebook\Helpers\FacebookRedirectLoginHelper; |
|
| 27 | +use Facebook\GraphNodes\GraphUser; |
|
| 28 | +use Facebook\GraphNodes\GraphLocation; |
|
| 29 | +use Facebook\Exceptions\FacebookSDKException; |
|
| 30 | +use Facebook\Exceptions\FacebookResponseException; |
|
| 31 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 33 | 32 | |
| 34 | 33 | class Facebook extends Api implements IApi |
| 35 | 34 | { |
@@ -13,19 +13,18 @@ |
||
| 13 | 13 | |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\File\Import, |
|
| 18 | -PH7\Framework\Date\CDateTime, |
|
| 19 | -PH7\Framework\Config\Config, |
|
| 20 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 21 | -PH7\Framework\Ip\Ip, |
|
| 22 | -PH7\Framework\File\File, |
|
| 23 | -PH7\Framework\Util\Various, |
|
| 24 | -PH7\Framework\Session\Session, |
|
| 25 | -PH7\Framework\Registry\Registry, |
|
| 26 | -PH7\Framework\Mvc\Request\Http as HttpRequest, |
|
| 27 | -PH7\Framework\Geo\Ip\Geo, |
|
| 28 | -PH7\Framework\Mvc\Router\Uri; |
|
| 16 | +use PH7\Framework\File\Import; |
|
| 17 | +use PH7\Framework\Date\CDateTime; |
|
| 18 | +use PH7\Framework\Config\Config; |
|
| 19 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 20 | +use PH7\Framework\Ip\Ip; |
|
| 21 | +use PH7\Framework\File\File; |
|
| 22 | +use PH7\Framework\Util\Various; |
|
| 23 | +use PH7\Framework\Session\Session; |
|
| 24 | +use PH7\Framework\Registry\Registry; |
|
| 25 | +use PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 26 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 27 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 29 | 28 | |
| 30 | 29 | class Google extends Api implements IApi |
| 31 | 30 | { |
@@ -13,15 +13,14 @@ |
||
| 13 | 13 | |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\File\Import, |
|
| 18 | -PH7\Framework\Date\CDateTime, |
|
| 19 | -PH7\Framework\Config\Config, |
|
| 20 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 21 | -PH7\Framework\Ip\Ip, |
|
| 22 | -PH7\Framework\Util\Various, |
|
| 23 | -PH7\Framework\Geo\Ip\Geo, |
|
| 24 | -PH7\Framework\Mvc\Router\Uri; |
|
| 16 | +use PH7\Framework\File\Import; |
|
| 17 | +use PH7\Framework\Date\CDateTime; |
|
| 18 | +use PH7\Framework\Config\Config; |
|
| 19 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 20 | +use PH7\Framework\Ip\Ip; |
|
| 21 | +use PH7\Framework\Util\Various; |
|
| 22 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 23 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 25 | 24 | |
| 26 | 25 | class Microsoft extends Api |
| 27 | 26 | { |