Completed
Push — master ( 5d1483...c090d1 )
by Chris
03:05
created

QuoteFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRandomQuote() 0 18 1
1
<?php
2
3
namespace Cion\InspirationalQuotes;
4
5
class QuoteFactory
6
{
7
    public function getRandomQuote()
8
    {
9
        return Collection::make([
10
            'When there is no desire, all things are at peace. - Laozi',
11
            'Simplicity is the ultimate sophistication. - Leonardo da Vinci',
12
            'Simplicity is the essence of happiness. - Cedric Bledsoe',
13
            'Smile, breathe, and go slowly. - Thich Nhat Hanh',
14
            'Simplicity is an acquired taste. - Katharine Gerould',
15
            'Well begun is half done. - Aristotle',
16
            'He who is contented is rich. - Laozi',
17
            'Very little is needed to make a happy life. - Marcus Antoninus',
18
            'It is quality rather than quantity that matters. - Lucius Annaeus Seneca',
19
            'Genius is one percent inspiration and ninety-nine percent perspiration. - Thomas Edison',
20
            'Computer science is no more about computers than astronomy is about telescopes. - Edsger Dijkstra',
21
            'It always seems impossible until it is done. - Nelson Mandela',
22
            'Act only according to that maxim whereby you can, at the same time, will that it should become a universal law. - Immanuel Kant',
23
        ])->random();
24
    }
25
}
26