| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function step2(Request $request) |
||
| 23 | { |
||
| 24 | $repositories = \Session::get('GithubRepositories')->whereIn('github_id', $request->repos); |
||
| 25 | foreach ($repositories as $repository) { |
||
| 26 | try{ |
||
| 27 | ProductBacklog::create(get_object_vars($repository)); |
||
| 28 | } catch (\Illuminate\Database\QueryException $e) { |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | return view('wizard.step2') |
||
| 33 | ->with('repositories', $repositories) |
||
| 34 | ->with('columns', ['repository', 'organization']); |
||
| 35 | |||
| 36 | } |
||
| 37 | } |
||
| 38 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.