Completed
Push — master ( 8a3ba8...53d1ed )
by Mike
04:38
created
src/Version/OrderedList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         }
22 22
 
23 23
         // sort versions (jASC)
24
-        usort($this->versions, function (Version $v1, Version $v2) {
24
+        usort($this->versions, function(Version $v1, Version $v2) {
25 25
             $v1 = (string) $v1->getFull();
26 26
             $v2 = (string) $v2->getFull();
27 27
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function merge(OrderedList $range, $checkAliases = false)
50 50
     {
51
-        $filtered = $range->filter(function (Version $version) use ($checkAliases) {
51
+        $filtered = $range->filter(function(Version $version) use ($checkAliases) {
52 52
             return !$this->contains($version, $checkAliases);
53 53
         });
54 54
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function contains(Version $version, $checkAliases = false)
65 65
     {
66 66
         if ($checkAliases) {
67
-            return in_array($version->getFull(), $this->map(function (Version $version) {
67
+            return in_array($version->getFull(), $this->map(function(Version $version) {
68 68
                 return $version->getFull();
69 69
             }));
70 70
         }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function isEqualTo(OrderedList $range, $checkAliases = false)
108 108
     {
109 109
         if ($checkAliases) {
110
-            $getFull = function (Version $version) {
110
+            $getFull = function(Version $version) {
111 111
                 return $version->getFull();
112 112
             };
113 113
 
Please login to merge, or discard this patch.
src/Version/Graph/Dijkstra.php 2 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,6 +72,10 @@  discard block
 block discarded – undo
72 72
         return $pairs;
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $source
77
+     * @param string $target
78
+     */
75 79
     private function getShortestPath($source, $target)
76 80
     {
77 81
         // array of the best estimates of shortest path to each vertex
@@ -134,7 +138,7 @@  discard block
 block discarded – undo
134 138
     /**
135 139
      * @param Version $from
136 140
      *
137
-     * @return OrderedList
141
+     * @return \Sugarcrm\UpgradeSpec\Version\OrderedList
138 142
      */
139 143
     private function getOriginVertexes(Version $from)
140 144
     {
@@ -152,7 +156,7 @@  discard block
 block discarded – undo
152 156
     /**
153 157
      * @param Version $to
154 158
      *
155
-     * @return OrderedList
159
+     * @return \Sugarcrm\UpgradeSpec\Version\OrderedList
156 160
      */
157 161
     private function getDestinationVertexes(Version $to)
158 162
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function __construct(AdjacencyList $adj)
20 20
     {
21 21
         foreach ($adj as $vertex => $list) {
22
-            $list = array_map(function (Version $version) use ($vertex) {
22
+            $list = array_map(function(Version $version) use ($vertex) {
23 23
                 return [(string) $version => (new Version($vertex))->isChildOf($version) ? 0 : 1];
24 24
             }, iterator_to_array($list));
25 25
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $aliases = $aliases->merge($from->getAliases());
145 145
         }
146 146
 
147
-        return $aliases->filter(function (Version $version) {
147
+        return $aliases->filter(function(Version $version) {
148 148
             return isset($this->graph[(string) $version]);
149 149
         });
150 150
     }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     private function getDestinationVertexes(Version $to)
158 158
     {
159
-        return $to->getAliases()->filter(function (Version $version) {
159
+        return $to->getAliases()->filter(function(Version $version) {
160 160
             return isset($this->graph[(string) $version]);
161 161
         });
162 162
     }
Please login to merge, or discard this patch.