1 | <?php |
||
25 | class Project extends MiddlewareAbstract |
||
26 | { |
||
27 | /** |
||
28 | * List of callbacks to handle the incoming request. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $callbacks = [ |
||
33 | 'Issue', |
||
34 | 'IssueFilter', |
||
35 | 'Note', |
||
36 | 'Project', |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * Handle an incoming request. |
||
41 | * |
||
42 | * @param Request $request |
||
43 | * @param \Closure $next |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function handle(Request $request, Closure $next) |
||
63 | |||
64 | /** |
||
65 | * Whether or not the incoming request is valid project issue request. |
||
66 | * |
||
67 | * @param Request $request |
||
68 | * |
||
69 | * @return bool |
||
70 | */ |
||
71 | protected function handleIssueRequest(Request $request) |
||
75 | |||
76 | /** |
||
77 | * Whether or not the incoming uri is for the issue filter "project/issue/{issue}". |
||
78 | * |
||
79 | * @param Request $request |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function handleIssueFilterRequest(Request $request) |
||
118 | |||
119 | /** |
||
120 | * Whether or not the incoming request is valid project note request. |
||
121 | * |
||
122 | * @param Request $request |
||
123 | * |
||
124 | * @return bool |
||
125 | */ |
||
126 | protected function handleNoteRequest(Request $request) |
||
130 | |||
131 | /** |
||
132 | * Whether or not the incoming request is valid project request. |
||
133 | * |
||
134 | * @param Request $request |
||
135 | * |
||
136 | * @return bool |
||
137 | */ |
||
138 | protected function handleProjectRequest(Request $request) |
||
145 | |||
146 | /** |
||
147 | * Whether or not a model entity relationship with the project is correct. |
||
148 | * |
||
149 | * @param Request $request |
||
150 | * @param string $entityName |
||
151 | * |
||
152 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
||
153 | * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException |
||
154 | * |
||
155 | * @return bool |
||
156 | */ |
||
157 | protected function isBelongToProject(Request $request, $entityName) |
||
179 | } |
||
180 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.