|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
1
|
|
-<?php declare(strict_types=1); |
|
|
1
|
+<?php declare(strict_types = 1); |
|
2
|
2
|
|
|
3
|
3
|
|
|
4
|
4
|
namespace Shopware\Psh\Listing; |
|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
{ |
|
79
|
79
|
$scripts = $this->getAllScripts(); |
|
80
|
80
|
|
|
81
|
|
- return array_filter($scripts, function ($key) use ($query) { |
|
|
81
|
+ return array_filter($scripts, function($key) use ($query) { |
|
82
|
82
|
return strpos($key, $query) > -1 || levenshtein($key, $query) < 3; |
|
83
|
83
|
}, ARRAY_FILTER_USE_KEY); |
|
84
|
84
|
} |
Please login to merge, or discard this patch.