Completed
Push — master ( 467579...1395da )
by Jan
06:15
created
src/Controller/TypeaheadController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Services/BuiltinAttachmentsFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.