@@ -63,7 +63,7 @@ |
||
63 | 63 | * A static method that attempts to return a HighlightProviderInterface instance |
64 | 64 | * based on the name of the provider class supplied. |
65 | 65 | * |
66 | - * @param $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
66 | + * @param string $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface |
|
67 | 67 | * |
68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
69 | 69 | * |
@@ -63,11 +63,11 @@ |
||
63 | 63 | * A static method that attempts to return a EmailProviderInterface instance |
64 | 64 | * based on the name of the provider class supplied. |
65 | 65 | * |
66 | - * @param $providerName The class name of the provider class (fully qualified). |
|
66 | + * @param string $providerName The class name of the provider class (fully qualified). |
|
67 | 67 | * |
68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
69 | 69 | * |
70 | - * @return \Alpha\Util\Http\Email\EmailProviderInterface |
|
70 | + * @return EmailProviderInterface|null |
|
71 | 71 | * |
72 | 72 | * @since 2.0 |
73 | 73 | */ |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * A static method that attempts to return a SessionProviderInterface instance |
64 | 64 | * based on the name of the provider class supplied. |
65 | 65 | * |
66 | - * @param $providerName The class name of the provider class (fully qualified). |
|
66 | + * @param string $providerName The class name of the provider class (fully qualified). |
|
67 | 67 | * |
68 | 68 | * @throws \Alpha\Exception\IllegalArguementException |
69 | 69 | * |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * A static method that attempts to return a SearchProviderInterface instance |
64 | 64 | * based on the name of the provider class supplied. |
65 | 65 | * |
66 | - * @param $providerName The class name of the provider class, should be fully-qualified. |
|
66 | + * @param string $providerName The class name of the provider class, should be fully-qualified. |
|
67 | 67 | * |
68 | 68 | * @throws \Alpha\Exception\IllegalArguementException; |
69 | 69 | * |
@@ -230,7 +230,7 @@ |
||
230 | 230 | /** |
231 | 231 | * Getter for the name. |
232 | 232 | * |
233 | - * @return string |
|
233 | + * @return SmallText |
|
234 | 234 | * |
235 | 235 | * @since 1.0 |
236 | 236 | */ |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * Get the year part. |
245 | 245 | * |
246 | - * @return int |
|
246 | + * @return string |
|
247 | 247 | * |
248 | 248 | * @since 1.0 |
249 | 249 | */ |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * Get the month part. |
257 | 257 | * |
258 | - * @return int |
|
258 | + * @return string |
|
259 | 259 | * |
260 | 260 | * @since 1.0 |
261 | 261 | */ |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | /** |
268 | 268 | * Get the day part. |
269 | 269 | * |
270 | - * @return int |
|
270 | + * @return string |
|
271 | 271 | * |
272 | 272 | * @since 1.0 |
273 | 273 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Alpha\Model\Type\Integer; |
7 | 7 | use Alpha\Model\Type\Timestamp; |
8 | 8 | use Alpha\Model\Type\TypeInterface; |
9 | -use Alpha\Model\Type\Enum; |
|
10 | 9 | use Alpha\Model\Type\Relation; |
11 | 10 | use Alpha\Util\Config\ConfigProvider; |
12 | 11 | use Alpha\Util\Logging\Logger; |
@@ -1158,7 +1158,7 @@ discard block |
||
1158 | 1158 | * to be overridden in case you want to do something different with the ID of your objects outside |
1159 | 1159 | * of the standard 11 digit OID sequence used internally in Alpha. |
1160 | 1160 | * |
1161 | - * @return int 11 digit zero-padded OID value. |
|
1161 | + * @return string 11 digit zero-padded OID value. |
|
1162 | 1162 | * |
1163 | 1163 | * @since 1.0 |
1164 | 1164 | */ |
@@ -1175,7 +1175,7 @@ discard block |
||
1175 | 1175 | * Gets the OID for the object in zero-padded format (same as getID()). This version is final so cannot |
1176 | 1176 | * be overridden. |
1177 | 1177 | * |
1178 | - * @return int 11 digit zero-padded OID value. |
|
1178 | + * @return string 11 digit zero-padded OID value. |
|
1179 | 1179 | * |
1180 | 1180 | * @since 1.0 |
1181 | 1181 | */ |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * @param string $sourceDir The path to the source directory. |
542 | 542 | * @param string $fileList The HTML list of files generated (pass by reference). |
543 | 543 | * @param int $fileCount The current file count (used in recursive calls). |
544 | - * @param array $excludeFiles An array of file names to exclude from the list rendered. |
|
544 | + * @param string[] $excludeFiles An array of file names to exclude from the list rendered. |
|
545 | 545 | * |
546 | 546 | * @return int The current filecount for the directory. |
547 | 547 | * |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | * Recursively deletes the contents of the directory indicated (the directory itself is not deleted). |
579 | 579 | * |
580 | 580 | * @param string $sourceDir The path to the source directory. |
581 | - * @param array $excludeFiles An array of file names to exclude from the deletion. |
|
581 | + * @param string[] $excludeFiles An array of file names to exclude from the deletion. |
|
582 | 582 | * |
583 | 583 | * @throws \Alpha\Exception\AlphaException |
584 | 584 | * |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | if (isset($codeTypeTag[0])) { |
76 | 76 | $start = mb_strpos($codeTypeTag[0], '['); |
77 | 77 | $end = mb_strpos($codeTypeTag[0], ']'); |
78 | - $language = mb_substr($codeTypeTag[0], $start + 1, $end - ($start + 1)); |
|
78 | + $language = mb_substr($codeTypeTag[0], $start+1, $end-($start+1)); |
|
79 | 79 | } else { |
80 | 80 | // will use php as a default language type when none is provided |
81 | 81 | $language = 'php'; |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | { |
107 | 107 | $config = ConfigProvider::getInstance(); |
108 | 108 | |
109 | - $whole_match = $matches[1]; |
|
110 | - $link_text = $this->runSpanGamut($matches[2]); |
|
111 | - $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
112 | - $title =& $matches[7]; |
|
113 | - $attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
|
109 | + $whole_match = $matches[1]; |
|
110 | + $link_text = $this->runSpanGamut($matches[2]); |
|
111 | + $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
112 | + $title = & $matches[7]; |
|
113 | + $attr = $this->doExtraAttributes("a", $dummy = & $matches[8]); |
|
114 | 114 | |
115 | 115 | $external = false; |
116 | 116 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $result = "<a href=\"$url\""; |
133 | 133 | if (isset($title)) { |
134 | 134 | $title = $this->encodeAttribute($title); |
135 | - $result .= " title=\"$title\""; |
|
135 | + $result .= " title=\"$title\""; |
|
136 | 136 | } |
137 | 137 | if ($external) { |
138 | 138 | $result .= " target=\"$url\""; |
@@ -214,6 +214,6 @@ discard block |
||
214 | 214 | $text .= "</tbody>\n"; |
215 | 215 | $text .= "</table>"; |
216 | 216 | |
217 | - return $this->hashBlock($text) . "\n"; |
|
217 | + return $this->hashBlock($text)."\n"; |
|
218 | 218 | } |
219 | 219 | } |