Completed
Push — master ( f0fda6...d0b240 )
by Lukáš
02:37
created
app/Providers/SatisServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
                     'json',
56 56
                     function(VisitorInterface $visitor, Collection $collection, array $type, Context $context) {
57 57
                         $output = [];
58
-                        foreach($collection->values() as $package) {
58
+                        foreach ($collection->values() as $package) {
59 59
                             /** @var Package $package */
60 60
 
61 61
                             $output[$package->getName()] = $package->getVersion();
62 62
                         }
63 63
 
64
-                        if(!$output) {
64
+                        if (!$output) {
65 65
                             return null;
66 66
                         }
67 67
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                         $repositories = $visitor->visitArray($data, $type, $context);
82 82
 
83 83
                         $collection = new RepositoryCollection();
84
-                        foreach($repositories as $repository) {
84
+                        foreach ($repositories as $repository) {
85 85
                             $collection->put($repository->getId(), $repository);
86 86
                         }
87 87
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                     'json',
96 96
                     function(VisitorInterface $visitor, array $data, array $type, Context $context) {
97 97
                         $temp = [];
98
-                        foreach($data as $name => $version) {
98
+                        foreach ($data as $name => $version) {
99 99
                             $temp[] = ['name' => $name, 'version' => $version];
100 100
                         }
101 101
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                         $packages = $visitor->visitArray($temp, $type, $context);
104 104
 
105 105
                         $collection = new PackageCollection();
106
-                        foreach($packages as $package) {
106
+                        foreach ($packages as $package) {
107 107
                             $collection->put($package->getId(), $package);
108 108
                         }
109 109
 
Please login to merge, or discard this patch.