Completed
Pull Request — master (#29)
by Ozan
05:26
created
src/Contracts/Intl.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,15 +84,15 @@  discard block
 block discarded – undo
84 84
 
85 85
         $results = $this->all();
86 86
 
87
-        $filterCallback = function ($name) use ($includeKeywords, $excludeKeywords) {
87
+        $filterCallback = function($name) use ($includeKeywords, $excludeKeywords) {
88 88
             $includeCondition = $excludeCondition = true;
89 89
 
90
-            if (! empty($includeKeywords)) {
91
-                $includeCondition = (bool) preg_match('/'.implode('|', $includeKeywords).'/', $name);
90
+            if (!empty($includeKeywords)) {
91
+                $includeCondition = (bool) preg_match('/' . implode('|', $includeKeywords) . '/', $name);
92 92
             }
93 93
 
94
-            if (! empty($excludeKeywords)) {
95
-                $excludeCondition = ! (bool) preg_match('/'.implode('|', $excludeKeywords).'/', $name);
94
+            if (!empty($excludeKeywords)) {
95
+                $excludeCondition = !(bool) preg_match('/' . implode('|', $excludeKeywords) . '/', $name);
96 96
             }
97 97
 
98 98
             return $includeCondition && $excludeCondition;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         foreach ($keywords as $keyword) {
121 121
             if (Str::startsWith($keyword, ['-', '\\-'])) {
122 122
                 $excludeKeywords[] = str_replace(['-', '\\'], '', $keyword);
123
-            }  else {
123
+            } else {
124 124
                 $includeKeywords[] = $keyword;
125 125
             }
126 126
         }
Please login to merge, or discard this patch.