@@ -109,13 +109,13 @@ |
||
| 109 | 109 | $markup = ''; |
| 110 | 110 | $markup .= '<a class="login-dropdown-button standard-icon meta-icon-size left" data-toggle="user-logout-wrapper" aria-controls="user-logout-wrapper" aria-expanded="false">'; |
| 111 | 111 | $markup .= '<i class="icon ion-ios-person"></i>'; |
| 112 | - $markup .= '<span> '. $username . '</span>'; |
|
| 112 | + $markup .= '<span> '.$username.'</span>'; |
|
| 113 | 113 | $markup .= '</a>'; |
| 114 | 114 | |
| 115 | 115 | $markup .= '<div id="user-logout-wrapper" class="dropdown-pane f-dropdown" data-dropdown aria-hidden="true" aria-autoclose="false" data-auto-focus="false">'; |
| 116 | 116 | $markup .= '<div class="user-links">'; |
| 117 | - $markup .= '<a class="" href="' . $user_page_url . '"><i class="icon ion-ios-person"></i> ' . $username . '</a>'; |
|
| 118 | - $markup .= '<a class="logout-button" href="' . $user_logout_url . '"><i class="icon ion-log-out"></i> ' . t('Log Out') . '</a>'; |
|
| 117 | + $markup .= '<a class="" href="'.$user_page_url.'"><i class="icon ion-ios-person"></i> '.$username.'</a>'; |
|
| 118 | + $markup .= '<a class="logout-button" href="'.$user_logout_url.'"><i class="icon ion-log-out"></i> '.t('Log Out').'</a>'; |
|
| 119 | 119 | $markup .= '</div>'; |
| 120 | 120 | $markup .= '</div>'; |
| 121 | 121 | |
@@ -18,12 +18,12 @@ |
||
| 18 | 18 | $first_name = $strings[0]; |
| 19 | 19 | $last_name = $strings[1]; |
| 20 | 20 | $password = \Drupal::service('password')->hash('password'); |
| 21 | - $row->setSourceProperty('Name', $first_name . $last_name); |
|
| 21 | + $row->setSourceProperty('Name', $first_name.$last_name); |
|
| 22 | 22 | $row->setSourceProperty('First', $first_name); |
| 23 | 23 | $row->setSourceProperty('Last', $last_name); |
| 24 | 24 | $row->setSourceProperty('Pass', $password); |
| 25 | 25 | $row->setSourceProperty('Status', 1); |
| 26 | - $row->setSourceProperty('Mail', $first_name . $last_name . '@example.com'); |
|
| 26 | + $row->setSourceProperty('Mail', $first_name.$last_name.'@example.com'); |
|
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -16,11 +16,11 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function prepareRow(Row $row) { |
| 18 | 18 | if ($image = $row->getSourceProperty('Picture')) { |
| 19 | - $base_path = dirname($this->configuration['path']) . '/images/'; |
|
| 19 | + $base_path = dirname($this->configuration['path']).'/images/'; |
|
| 20 | 20 | |
| 21 | 21 | // Setup our source/destination paths. |
| 22 | - $path = $base_path . $image; |
|
| 23 | - $destination_path = 'public://' . $image; |
|
| 22 | + $path = $base_path.$image; |
|
| 23 | + $destination_path = 'public://'.$image; |
|
| 24 | 24 | |
| 25 | 25 | // Copy the file. |
| 26 | 26 | file_unmanaged_copy($path, $destination_path, FILE_EXISTS_REPLACE); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | // Write YAML to a file. |
| 52 | - $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml'; |
|
| 52 | + $panels_file = $base_path.'/data/panelizer.panels_display.node.'.$node->uuid().'.yml'; |
|
| 53 | 53 | $configuration = \Drupal::service('panelizer')->getPanelsDisplay($node, 'full')->getConfiguration(); |
| 54 | 54 | $yaml = \Symfony\Component\Yaml\Yaml::dump($configuration, 99, 2); |
| 55 | 55 | file_put_contents($panels_file, $yaml); |
@@ -20,19 +20,19 @@ |
||
| 20 | 20 | 'render element' => 'content', |
| 21 | 21 | 'base hook' => 'node', |
| 22 | 22 | 'template' => 'node--cta', |
| 23 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 23 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 24 | 24 | ); |
| 25 | 25 | $theme['node__cta__callout'] = array( |
| 26 | 26 | 'render element' => 'content', |
| 27 | 27 | 'base hook' => 'node', |
| 28 | 28 | 'template' => 'node--cta--callout', |
| 29 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 29 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 30 | 30 | ); |
| 31 | 31 | $theme['node__cta__notification'] = array( |
| 32 | 32 | 'render element' => 'content', |
| 33 | 33 | 'base hook' => 'node', |
| 34 | 34 | 'template' => 'node--cta--notification', |
| 35 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 35 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 36 | 36 | ); |
| 37 | 37 | return $theme; |
| 38 | 38 | } |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | ->getStorage('file')->loadByProperties(['filename' => $image]); |
| 21 | 21 | |
| 22 | 22 | if (empty($files)) { |
| 23 | - $base_path = dirname($this->configuration['path']) . '/images/'; |
|
| 24 | - $path = $base_path . $image; |
|
| 23 | + $base_path = dirname($this->configuration['path']).'/images/'; |
|
| 24 | + $path = $base_path.$image; |
|
| 25 | 25 | $data = file_get_contents($path); |
| 26 | 26 | $uri = file_build_uri($image); |
| 27 | 27 | $file = file_save_data($data, $uri); |
@@ -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, ']')); |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | } |
| 285 | 285 | else if ($referenced_entity instanceof MediaInterface) { |
| 286 | 286 | if ($depth < self::DEPTH_LIMIT && $file = $this->getFileFromEntity($referenced_entity)) { |
| 287 | - $return = $file; |
|
| 287 | + $return = $file; |
|
| 288 | 288 | } |
| 289 | 289 | } |
| 290 | 290 | } |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $selection['table'][$mid] = [ |
| 140 | 140 | '#attributes' => [ |
| 141 | 141 | 'class' => ['draggable'], |
| 142 | - 'data-entity-id' => $media->getEntityTypeId() . ':' . $mid, |
|
| 142 | + 'data-entity-id' => $media->getEntityTypeId().':'.$mid, |
|
| 143 | 143 | ], |
| 144 | 144 | 'title' => ['#markup' => $media->label()], |
| 145 | 145 | 'type' => ['#markup' => $bundle_info[$media->bundle()]['label']], |