@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $bin_dir = $composer->getConfig()->get('bin-dir'); |
28 | 28 | $make = NULL; |
29 | 29 | $executor = new ProcessExecutor(); |
30 | - $executor->execute($bin_dir . '/drush make-convert composer.lock', $make); |
|
30 | + $executor->execute($bin_dir.'/drush make-convert composer.lock', $make); |
|
31 | 31 | $make = Yaml::parse($make); |
32 | 32 | |
33 | 33 | // Include any drupal-library packages in the make file. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | ->getPackages(); |
38 | 38 | |
39 | 39 | // Retrieve a list of all libraries. |
40 | - $libraries = array_filter($libraries, function (PackageInterface $package) { |
|
40 | + $libraries = array_filter($libraries, function(PackageInterface $package) { |
|
41 | 41 | return $package->getType() == 'drupal-library'; |
42 | 42 | }); |
43 | 43 |
@@ -145,8 +145,7 @@ |
||
145 | 145 | list($major, $minor, $patch) = $sem_ver; |
146 | 146 | |
147 | 147 | $tag = "$major.$minor$patch"; |
148 | - } |
|
149 | - else { |
|
148 | + } else { |
|
150 | 149 | preg_match('/\d+\.x-\d+\.0/', $tag, $match); |
151 | 150 | $tag = str_replace($match, str_replace('x-', NULL, $match), $tag); |
152 | 151 | preg_match('/\d+\.\d+\.0/', $tag, $match); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** @var \Composer\Package\Link $package */ |
29 | 29 | foreach ($patched_dependencies as $package) { |
30 | 30 | if (static::packageIsUnpinned($package)) { |
31 | - $error[] = $package->getTarget() . ': ' . $package->getPrettyConstraint(); |
|
31 | + $error[] = $package->getTarget().': '.$package->getPrettyConstraint(); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | if (!empty($error)) { |
@@ -35,8 +35,7 @@ |
||
35 | 35 | array_unshift($error, 'The following dependencies are patched but don\'t have pinned dependency constraints:'); |
36 | 36 | $event->getIO()->writeError($error); |
37 | 37 | return FALSE; |
38 | - } |
|
39 | - else { |
|
38 | + } else { |
|
40 | 39 | $event->getIO()->write('Patched dependencies have constraints that are properly pinned.'); |
41 | 40 | } |
42 | 41 | } |