@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | return new RobotsTxt( |
15 | 15 | $configuration['sitemap'], |
16 | - new RulesSetCollection($configuration['rulesSetCollection']->map(function (Collection $rules) { |
|
16 | + new RulesSetCollection($configuration['rulesSetCollection']->map(function(Collection $rules) { |
|
17 | 17 | $rulesSet = new RulesSet($rules['User-Agent']); |
18 | 18 | $rulesSet->addAllowRules($rules['Allow']->toArray()); |
19 | 19 | $rulesSet->addDisallowRules($rules['Disallow']->toArray()); |
@@ -8,16 +8,16 @@ |
||
8 | 8 | { |
9 | 9 | $robotsTxt = ['Sitemap: ' . $robot->sitemap()]; |
10 | 10 | $rules = $robot->ruleSetCollection() |
11 | - ->map(function (RulesSet $rule) { |
|
11 | + ->map(function(RulesSet $rule) { |
|
12 | 12 | return array_merge( |
13 | 13 | [ |
14 | 14 | '', |
15 | 15 | 'User-Agent: ' . $rule->userAgent(), |
16 | 16 | ], |
17 | - array_map(function (string $string) { |
|
17 | + array_map(function(string $string) { |
|
18 | 18 | return "Allow: $string"; |
19 | 19 | }, $rule->allowRules()), |
20 | - array_map(function (string $string) { |
|
20 | + array_map(function(string $string) { |
|
21 | 21 | return "Disallow: $string"; |
22 | 22 | }, $rule->disallowRules()) |
23 | 23 | ); |