@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class PollForm extends Form |
| 8 | 8 | { |
| 9 | - const RULE_TITLE = 'nullable|string|max:100'; |
|
| 9 | + const RULE_TITLE = 'nullable|string|max:100'; |
|
| 10 | 10 | // @todo dodac walidator sprawdzajacy liczbe (oraz dlugosc) linii |
| 11 | 11 | // @todo musimy pisac "poll.title" jezeli ten formularz jest dzieckiem. reguly powinny byc zmieniane |
| 12 | 12 | // przez klase Form |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | 'plan_id' => [ |
| 48 | 48 | 'bail', |
| 49 | 49 | Rule::requiredIf(function () use ($job) { |
| 50 | - return ! $job->exists; |
|
| 50 | + return !$job->exists; |
|
| 51 | 51 | }), |
| 52 | 52 | |
| 53 | 53 | 'int', |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | - * @param Session[] $collection |
|
| 136 | + * @param Collection $collection |
|
| 137 | 137 | * @return Collection |
| 138 | 138 | */ |
| 139 | 139 | private function unique(Collection $collection) |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @return array |
|
| 22 | + * @return Twig_SimpleFunction[] |
|
| 23 | 23 | */ |
| 24 | 24 | public function getFunctions() |
| 25 | 25 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @param $element |
|
| 99 | + * @param string $element |
|
| 100 | 100 | * @param $field |
| 101 | 101 | * @param array $options |
| 102 | 102 | * @return null |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Illuminate\Session\TokenMismatchException; |
| 10 | 10 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
| 11 | 11 | use Symfony\Component\Console\Exception\CommandNotFoundException; |
| 12 | -use Symfony\Component\Debug\Exception\FlattenException; |
|
| 13 | 12 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 14 | 13 | use Symfony\Component\HttpFoundation\Response as SymfonyResponse; |
| 15 | 14 | |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * Zostawia jedynie 2 ostatnie komentarze do wpisu |
| 105 | 105 | * |
| 106 | 106 | * @param \Illuminate\Pagination\LengthAwarePaginator $microblogs |
| 107 | - * @return mixed |
|
| 107 | + * @return \Illuminate\Pagination\LengthAwarePaginator |
|
| 108 | 108 | */ |
| 109 | 109 | private function slice($microblogs) |
| 110 | 110 | { |