Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | protected function configure() |
||
29 | { |
||
30 | parent::configure(); |
||
31 | $this |
||
32 | ->setName('cache:warmup:aop') |
||
33 | ->setDescription("Warm up the cache with woven aspects") |
||
34 | ->setHelp(<<<EOT |
||
35 | Initializes the kernel and, if successful, warm up the cache for PHP |
||
36 | files under the application directory. |
||
37 | |||
38 | By default, the cache directory is taken from configured AspectKernel class. |
||
39 | EOT |
||
40 | ); |
||
41 | } |
||
42 | |||
54 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: