@@ -29,8 +29,7 @@ discard block |
||
29 | 29 | protected function mock($date) |
30 | 30 | { |
31 | 31 | $this->currentDate = $date instanceof \DateTime ? |
32 | - $date : |
|
33 | - date_create($date) |
|
32 | + $date : date_create($date) |
|
34 | 33 | ; |
35 | 34 | } |
36 | 35 | |
@@ -49,8 +48,7 @@ discard block |
||
49 | 48 | ; |
50 | 49 | |
51 | 50 | return empty($format) ? |
52 | - $date : |
|
53 | - $date->format($format) |
|
51 | + $date : $date->format($format) |
|
54 | 52 | ; |
55 | 53 | } |
56 | 54 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | 'loader_method' => 'choiceList', |
40 | 40 | 'choice_value' => 'id', |
41 | 41 | 'choice_label' => function ($choice) { |
42 | - return (string)$choice; |
|
42 | + return (string) $choice; |
|
43 | 43 | }, |
44 | 44 | 'choices' => function (Options $options) { |
45 | 45 |
@@ -113,8 +113,7 @@ |
||
113 | 113 | foreach ($filters as $key => $value) { |
114 | 114 | $current = $this->getPropertyAccessor()->getValue($entity, $key); |
115 | 115 | $res = $res && (is_array($value) ? |
116 | - in_array($current, $value) : |
|
117 | - $current == $value |
|
116 | + in_array($current, $value) : $current == $value |
|
118 | 117 | ); |
119 | 118 | } |
120 | 119 |