We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 19 | class Breadcrumbs |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * A collection of crumbs. |
||
| 24 | * |
||
| 25 | * @var Collection |
||
| 26 | */ |
||
| 27 | protected $collection; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Breadcrumbs constructor. |
||
| 31 | * @param Collection $collection |
||
| 32 | */ |
||
| 33 | public function __construct(Collection $collection) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $title |
||
| 40 | * @param string $path |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function addCrumb(string $title, string $path) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $title |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function filter(string $title) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return Collection |
||
| 65 | */ |
||
| 66 | public function crumbs() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $name |
||
| 73 | * @param int $position |
||
| 74 | * @return bool |
||
| 75 | */ |
||
| 76 | public function contain(string $name, int $position) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param int $integer |
||
| 86 | * @return bool |
||
| 87 | */ |
||
| 88 | public function hasCount(int $integer) |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param int $count |
||
| 95 | * @return $this |
||
| 96 | */ |
||
| 97 | public function limit(int $count) |
||
| 112 | |||
| 113 | /** |
||
| 114 | * @return Breadcrumbs |
||
| 115 | */ |
||
| 116 | public static function fromCurrentRoute() |
||
| 138 | |||
| 139 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.