@@ -341,6 +341,10 @@ |
||
| 341 | 341 | return $file; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $class |
|
| 346 | + * @param string $ext |
|
| 347 | + */ |
|
| 344 | 348 | private function findFileWithExtension($class, $ext) |
| 345 | 349 | { |
| 346 | 350 | // PSR-4 lookup |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * |
| 105 | 105 | * @param string $start Delimiter marking the start of the substring |
| 106 | 106 | * @param string $end Delimiter marketing the end of the substring |
| 107 | - * @param string $offset Index from which to begin the search |
|
| 107 | + * @param integer $offset Index from which to begin the search |
|
| 108 | 108 | * @return Stringy Object whose $str has been converted to an URL slug |
| 109 | 109 | */ |
| 110 | 110 | public function between($start, $end, $offset = 0) |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | * |
| 498 | 498 | * @param string $needle Substring to look for |
| 499 | 499 | * @param int $offset Offset from which to search |
| 500 | - * @return int|bool The occurrence's index if found, otherwise false |
|
| 500 | + * @return integer The occurrence's index if found, otherwise false |
|
| 501 | 501 | */ |
| 502 | 502 | public function indexOf($needle, $offset = 0) |
| 503 | 503 | { |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | * |
| 514 | 514 | * @param string $needle Substring to look for |
| 515 | 515 | * @param int $offset Offset from which to search |
| 516 | - * @return int|bool The last occurrence's index if found, otherwise false |
|
| 516 | + * @return integer The last occurrence's index if found, otherwise false |
|
| 517 | 517 | */ |
| 518 | 518 | public function indexOfLast($needle, $offset = 0) |
| 519 | 519 | { |
@@ -818,8 +818,8 @@ discard block |
||
| 818 | 818 | * ArrayAccess interface, and throws an OutOfBoundsException if the index |
| 819 | 819 | * does not exist. |
| 820 | 820 | * |
| 821 | - * @param mixed $offset The index from which to retrieve the char |
|
| 822 | - * @return mixed The character at the specified index |
|
| 821 | + * @param integer $offset The index from which to retrieve the char |
|
| 822 | + * @return string The character at the specified index |
|
| 823 | 823 | * @throws \OutOfBoundsException If the positive or negative offset does |
| 824 | 824 | * not exist |
| 825 | 825 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Asserts that a variable is of a Stringy instance. |
| 11 | 11 | * |
| 12 | - * @param mixed $actual |
|
| 12 | + * @param S $actual |
|
| 13 | 13 | */ |
| 14 | 14 | public function assertStringy($actual) |
| 15 | 15 | { |
@@ -90,6 +90,7 @@ |
||
| 90 | 90 | * @param string $path |
| 91 | 91 | * @param string|array $method |
| 92 | 92 | * @param boolean $count_match |
| 93 | + * @param string $name |
|
| 93 | 94 | */ |
| 94 | 95 | public function __construct($callback, $path = null, $method = null, $count_match = true, $name = null) |
| 95 | 96 | { |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * |
| 120 | 120 | * This will start a session if the current session id is null |
| 121 | 121 | * |
| 122 | - * @return string|false |
|
| 122 | + * @return string|boolean |
|
| 123 | 123 | */ |
| 124 | 124 | public function startSession() |
| 125 | 125 | { |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | return false; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $value |
|
| 39 | + */ |
|
| 37 | 40 | function apc_store($key, $value) |
| 38 | 41 | { |
| 39 | 42 | return false; |
@@ -44,6 +44,9 @@ |
||
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $string |
|
| 49 | + */ |
|
| 47 | 50 | protected function validator($string, $error_message = null) |
| 48 | 51 | { |
| 49 | 52 | return new Validator($string, $error_message); |