@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Saltwater\App\Provider; |
| 4 | 4 | |
| 5 | 5 | use Saltwater\Server as S; |
| 6 | -use Saltwater\Utils as U; |
|
| 7 | 6 | use Saltwater\App\Common\Route as AbstractRoute; |
| 8 | 7 | |
| 9 | 8 | class Route extends AbstractRoute |
@@ -99,6 +99,9 @@ |
||
| 99 | 99 | return S::$n->entity->get($name); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @return string|null |
|
| 104 | + */ |
|
| 102 | 105 | private static function cfgToDSN($cfg) |
| 103 | 106 | { |
| 104 | 107 | if (isset($cfg->dsn)) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param string $name |
| 50 | 50 | * @param int $bit |
| 51 | 51 | * |
| 52 | - * @return bool|null|string |
|
| 52 | + * @return string|null |
|
| 53 | 53 | */ |
| 54 | 54 | private function find($name, $bit) |
| 55 | 55 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * @param string $name |
| 79 | 79 | * @param int $bit |
| 80 | 80 | * |
| 81 | - * @return bool|string |
|
| 81 | + * @return false|string |
|
| 82 | 82 | */ |
| 83 | 83 | private function fromModule($module, $name, $bit) |
| 84 | 84 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * Check whether the module contains a salt |
| 108 | 108 | * |
| 109 | - * @param $bit |
|
| 109 | + * @param integer $bit |
|
| 110 | 110 | * |
| 111 | 111 | * @return bool |
| 112 | 112 | */ |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * @param string $type |
| 143 | 143 | * |
| 144 | - * @return false|Provider |
|
| 144 | + * @return string|false |
|
| 145 | 145 | */ |
| 146 | 146 | private function makeProvider($type) |
| 147 | 147 | { |
@@ -153,6 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * Check whether this module provides a salt |
| 155 | 155 | * |
| 156 | + * @param string $salt |
|
| 156 | 157 | * @return bool |
| 157 | 158 | */ |
| 158 | 159 | public function doesProvide($salt) |
@@ -68,7 +68,6 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * @param Module $module |
| 71 | - * @param string $name |
|
| 72 | 71 | * @param int $bit |
| 73 | 72 | * @param string $caller |
| 74 | 73 | * @param string $type |
@@ -128,7 +127,7 @@ discard block |
||
| 128 | 127 | |
| 129 | 128 | /** |
| 130 | 129 | * @param Module $module |
| 131 | - * @param bool $is_provider |
|
| 130 | + * @param boolean $isProvider |
|
| 132 | 131 | * @param int $bit |
| 133 | 132 | * @param string $namespace |
| 134 | 133 | * |