@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $session->switchToWindow(); |
| 43 | 43 | // @TODO: Make this smarter, because we can't be sure that #edit-submit |
| 44 | 44 | // exists at all, or that it's the correct submit button. |
| 45 | - $session->executeScript('frames["' . $frame . '"].document.forms[0].querySelector("#edit-submit").click()'); |
|
| 45 | + $session->executeScript('frames["'.$frame.'"].document.forms[0].querySelector("#edit-submit").click()'); |
|
| 46 | 46 | sleep(10); |
| 47 | 47 | $this->minkContext->iWaitForAjaxToFinish(); |
| 48 | 48 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function selectItem($n, $browser_id = NULL) { |
| 93 | 93 | if ($browser_id) { |
| 94 | - $selector = 'form#entity-browser-' . Html::cleanCssIdentifier($browser_id) . '-form'; |
|
| 94 | + $selector = 'form#entity-browser-'.Html::cleanCssIdentifier($browser_id).'-form'; |
|
| 95 | 95 | } |
| 96 | 96 | else { |
| 97 | 97 | $selector = 'form[data-entity-browser-uuid]'; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */ |
| 23 | 23 | $iterator = $source->initializeIterator(); |
| 24 | 24 | $base_path = $iterator->getPath(); |
| 25 | - $filename = $base_path . '/' . $iterator->getFilename(); |
|
| 25 | + $filename = $base_path.'/'.$iterator->getFilename(); |
|
| 26 | 26 | |
| 27 | 27 | $destination = $migration->getDestinationPlugin(); |
| 28 | 28 | $entity_type = explode(':', $destination->getPluginId())[1]; |
@@ -73,14 +73,14 @@ discard block |
||
| 73 | 73 | $entity = $entity_storage->load($id); |
| 74 | 74 | |
| 75 | 75 | // See if a Panelizer config file exists for this Node. |
| 76 | - $panels_file = $base_path . '/panelizer.panels_display.' . $entity_type . '.' . $entity->uuid() . '.yml'; |
|
| 76 | + $panels_file = $base_path.'/panelizer.panels_display.'.$entity_type.'.'.$entity->uuid().'.yml'; |
|
| 77 | 77 | if (file_exists($panels_file) && isset($entity->panelizer)) { |
| 78 | 78 | $yaml = file_get_contents($panels_file); |
| 79 | 79 | |
| 80 | 80 | $panels_display = Yaml::parse($yaml); |
| 81 | 81 | |
| 82 | 82 | // The storage ID isn't based on UUIDs, unfortunately. Hotswap it with current info. |
| 83 | - $panels_display['storage_id'] = $entity_type . ':' . $entity->id() . ':full:' . $entity->getRevisionId(); |
|
| 83 | + $panels_display['storage_id'] = $entity_type.':'.$entity->id().':full:'.$entity->getRevisionId(); |
|
| 84 | 84 | |
| 85 | 85 | // Set the Panels Display to match what's defined in YAML. |
| 86 | 86 | $entity->panelizer->panels_display = $panels_display; |
@@ -43,12 +43,12 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | else { |
| 45 | 45 | foreach ($value as $j) { |
| 46 | - $output[] = $this->keysToString($keys) . '[] = ' . $j; |
|
| 46 | + $output[] = $this->keysToString($keys).'[] = '.$j; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | else { |
| 51 | - $output[] = $this->keysToString($keys) . ' = ' . $value; |
|
| 51 | + $output[] = $this->keysToString($keys).' = '.$value; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | array_pop($keys); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | protected function keysToString(array $keys) { |
| 70 | 70 | $head = array_shift($keys); |
| 71 | 71 | if ($keys) { |
| 72 | - return $head . '[' . implode('][', $keys) . ']'; |
|
| 72 | + return $head.'['.implode('][', $keys).']'; |
|
| 73 | 73 | } |
| 74 | 74 | else { |
| 75 | 75 | return $head; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | foreach (['key', 'value1', 'value2', 'value3'] as $var) { |
| 124 | 124 | $$var = isset($match[++$i]) ? $match[$i] : ''; |
| 125 | 125 | } |
| 126 | - $value = stripslashes(substr($value1, 1, -1)) . stripslashes(substr($value2, 1, -1)) . $value3; |
|
| 126 | + $value = stripslashes(substr($value1, 1, -1)).stripslashes(substr($value2, 1, -1)).$value3; |
|
| 127 | 127 | |
| 128 | 128 | // Parse array syntax. |
| 129 | 129 | $keys = preg_split('/\]?\[/', rtrim($key, ']')); |
@@ -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 | |
@@ -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)) { |