@@ -71,7 +71,7 @@ |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @return array |
|
74 | + * @return string[] |
|
75 | 75 | */ |
76 | 76 | public function getArgs() |
77 | 77 | { |
@@ -3,19 +3,13 @@ |
||
3 | 3 | |
4 | 4 | namespace PhpSchool\LearnYouPhpTest\Exercise; |
5 | 5 | |
6 | -use Faker\Factory; |
|
7 | -use Faker\Generator; |
|
8 | -use Hoa\Core\Exception\Exception; |
|
9 | 6 | use Hoa\Socket\Client; |
10 | -use PhpSchool\LearnYouPhp\Exercise\ArrayWeGo; |
|
11 | 7 | use PhpSchool\LearnYouPhp\Exercise\TimeServer; |
12 | 8 | use PhpSchool\LearnYouPhp\TcpSocketFactory; |
13 | 9 | use PhpSchool\PhpWorkshop\Result\Failure; |
14 | 10 | use PhpSchool\PhpWorkshop\Result\StdOutFailure; |
15 | 11 | use PhpSchool\PhpWorkshop\Result\Success; |
16 | 12 | use PHPUnit_Framework_TestCase; |
17 | -use PhpSchool\LearnYouPhp\Exercise\MyFirstIo; |
|
18 | -use Symfony\Component\Filesystem\Filesystem; |
|
19 | 13 | |
20 | 14 | /** |
21 | 15 | * Class TimeServerTest |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use PhpParser\ParserFactory; |
8 | 8 | use PhpSchool\LearnYouPhp\Exercise\ConcernedAboutSeparation; |
9 | 9 | use PhpSchool\PhpWorkshop\Result\Failure; |
10 | -use PhpSchool\PhpWorkshop\Result\FailureInterface; |
|
11 | 10 | use PhpSchool\PhpWorkshop\Result\Success; |
12 | 11 | use PhpSchool\PhpWorkshop\Solution\SolutionInterface; |
13 | 12 | use PHPUnit_Framework_TestCase; |
@@ -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; |