1 | <?php |
||
21 | class FeedController extends Controller |
||
22 | { |
||
23 | /** |
||
24 | * Feed facade. |
||
25 | * |
||
26 | * @var \Roumen\Feed\Facades\Feed |
||
27 | */ |
||
28 | protected $feed; |
||
29 | |||
30 | /** |
||
31 | * Create a new feed controller instance. |
||
32 | */ |
||
33 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Generates an Atom feed of all issues. |
||
44 | * |
||
45 | * @param \Gitamin\Models\Owner|null $owner |
||
46 | * |
||
47 | * @return \Illuminate\Http\Response |
||
48 | */ |
||
49 | public function atomAction(Owner $owner = null) |
||
53 | |||
54 | /** |
||
55 | * Generates a Rss feed of all issues. |
||
56 | * |
||
57 | * @param \Gitamin\Models\Owner|null $owner |
||
58 | * |
||
59 | * @return \Illuminate\Http\Response |
||
60 | */ |
||
61 | public function rssAction(Owner $owner = null) |
||
67 | |||
68 | /** |
||
69 | * Generates a feed of all issues. |
||
70 | * |
||
71 | * @param \Gitamin\Models\Owner|null $owner |
||
72 | * @param bool $isRss |
||
73 | * |
||
74 | * @return \Illuminate\Http\Response |
||
75 | */ |
||
76 | private function feedAction(Owner &$owner, $isRss) |
||
92 | |||
93 | /** |
||
94 | * Adds an item to the feed. |
||
95 | * |
||
96 | * @param \Gitamin\Models\Issue $issue |
||
97 | * @param bool $isRss |
||
98 | */ |
||
99 | private function feedAddItem($issue, $isRss) |
||
109 | } |
||
110 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):