| @@ 283-293 (lines=11) @@ | ||
| 280 | * |
|
| 281 | * @return Requirement[] |
|
| 282 | */ |
|
| 283 | public function getRequirements() |
|
| 284 | { |
|
| 285 | $array = array(); |
|
| 286 | foreach ($this->requirements as $req) { |
|
| 287 | if (!$req->isOptional()) { |
|
| 288 | $array[] = $req; |
|
| 289 | } |
|
| 290 | } |
|
| 291 | ||
| 292 | return $array; |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * Returns the mandatory requirements that were not met. |
|
| @@ 300-310 (lines=11) @@ | ||
| 297 | * |
|
| 298 | * @return Requirement[] |
|
| 299 | */ |
|
| 300 | public function getFailedRequirements() |
|
| 301 | { |
|
| 302 | $array = array(); |
|
| 303 | foreach ($this->requirements as $req) { |
|
| 304 | if (!$req->isFulfilled() && !$req->isOptional()) { |
|
| 305 | $array[] = $req; |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||
| 309 | return $array; |
|
| 310 | } |
|
| 311 | ||
| 312 | /** |
|
| 313 | * Returns all optional recommendations. |
|
| @@ 317-327 (lines=11) @@ | ||
| 314 | * |
|
| 315 | * @return Requirement[] |
|
| 316 | */ |
|
| 317 | public function getRecommendations() |
|
| 318 | { |
|
| 319 | $array = array(); |
|
| 320 | foreach ($this->requirements as $req) { |
|
| 321 | if ($req->isOptional()) { |
|
| 322 | $array[] = $req; |
|
| 323 | } |
|
| 324 | } |
|
| 325 | ||
| 326 | return $array; |
|
| 327 | } |
|
| 328 | ||
| 329 | /** |
|
| 330 | * Returns the recommendations that were not met. |
|
| @@ 334-344 (lines=11) @@ | ||
| 331 | * |
|
| 332 | * @return Requirement[] |
|
| 333 | */ |
|
| 334 | public function getFailedRecommendations() |
|
| 335 | { |
|
| 336 | $array = array(); |
|
| 337 | foreach ($this->requirements as $req) { |
|
| 338 | if (!$req->isFulfilled() && $req->isOptional()) { |
|
| 339 | $array[] = $req; |
|
| 340 | } |
|
| 341 | } |
|
| 342 | ||
| 343 | return $array; |
|
| 344 | } |
|
| 345 | ||
| 346 | /** |
|
| 347 | * Returns whether a php.ini configuration is not correct. |
|