| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 1 | public function index() |
|
| 25 | { |
||
| 26 | 1 | $quote = PhpResponsiveQuote::getRandomQuote(); |
|
|
|
|||
| 27 | |||
| 28 | // the view name is set in the - Service provider - boot - loadViewsFrom |
||
| 29 | 1 | return view('php-responsive-quote::index', [ |
|
| 30 | 1 | 'quoteAuthor' => $quote['author'], |
|
| 31 | 1 | 'quoteText' => $quote['text'], |
|
| 32 | ]); |
||
| 37 |