Completed
Push — master ( 2c34c5...280b2d )
by Jan
04:15
created
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.
src/Controller/RedirectController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         //$new_url = str_replace($request->getPathInfo(), '/' . $locale . $request->getPathInfo(), $request->getUri());
79
-        $new_url = $request->getUriForPath('/' . $locale . $request->getPathInfo());
79
+        $new_url = $request->getUriForPath('/'.$locale.$request->getPathInfo());
80 80
 
81 81
         //If either mod_rewrite is not enabled or the index.php version is enforced, add index.php to the string
82 82
         if (($this->enforce_index_php || !$this->checkIfModRewriteAvailable())
83 83
             && strpos($new_url, 'index.php') === false) {
84 84
             //Like Request::getUriForPath only with index.php
85
-            $new_url = $request->getSchemeAndHttpHost(). $request->getBaseUrl().'/index.php/' . $locale . $request->getPathInfo();
85
+            $new_url = $request->getSchemeAndHttpHost().$request->getBaseUrl().'/index.php/'.$locale.$request->getPathInfo();
86 86
         }
87 87
         return $this->redirect($new_url);
88 88
     }
Please login to merge, or discard this patch.