Completed
Push — master ( 6dd3a0...ec39b9 )
by Níckolas Daniel
05:32
created
src/Infrastructure/Domain/Factory/JigsawRobotsTxtFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Domain/Model/FileProcessing/RobotsTxt/RobotsTxtStringBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.