@@ -59,7 +59,7 @@ |
||
59 | 59 | $normalizers = [ |
60 | 60 | new ObjectNormalizer() |
61 | 61 | ]; |
62 | - $encoders = [ |
|
62 | + $encoders = [ |
|
63 | 63 | new JsonEncoder() |
64 | 64 | ]; |
65 | 65 | $serializer = new Serializer($normalizers, $encoders); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | protected function configureOptions(OptionsResolver $resolver) |
57 | 57 | { |
58 | 58 | $resolver->setDefaults([ |
59 | - 'limit' => 15, //Given only 15 entries |
|
59 | + 'limit' => 15, //Given only 15 entries |
|
60 | 60 | //'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs. |
61 | 61 | //'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources, |
62 | 62 | 'empty_returns_all' => false //Return the whole list of ressources when empty keyword is given |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function getListOfRessources() : array |
73 | 73 | { |
74 | 74 | try { |
75 | - return $this->cache->get('attachment_builtin_ressources', function () { |
|
75 | + return $this->cache->get('attachment_builtin_ressources', function() { |
|
76 | 76 | $results = []; |
77 | 77 | |
78 | 78 | $finder = new Finder(); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } */ |
147 | 147 | |
148 | 148 | //Ignore case |
149 | - $regex = '/.*' . $keyword . '.*/i'; |
|
149 | + $regex = '/.*'.$keyword.'.*/i'; |
|
150 | 150 | |
151 | 151 | return preg_grep($regex, $base_list); |
152 | 152 | } |