@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 6 | 6 | use Symfony\Component\EventDispatcher\Event; |
| 7 | -use Symfony\Component\HttpKernel\Event\KernelEvent; |
|
| 8 | 7 | use Symfony\Component\HttpKernel\KernelEvents; |
| 9 | 8 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
| 10 | 9 | use Drupal\Core\Cache\CacheTagsInvalidator; |
@@ -231,6 +231,7 @@ |
||
| 231 | 231 | * Copied from color.module and modified to add variable replacement support. |
| 232 | 232 | * |
| 233 | 233 | * @see _color_rewrite_stylesheet |
| 234 | + * @param string $style |
|
| 234 | 235 | */ |
| 235 | 236 | function _df_tools_color_color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) { |
| 236 | 237 | // Prepare color conversion table. |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * |
| 143 | 143 | * @param $options |
| 144 | 144 | * |
| 145 | - * @return mixed|string |
|
| 145 | + * @return string |
|
| 146 | 146 | */ |
| 147 | 147 | protected function haversine($options) { |
| 148 | 148 | $formula = '( :earth_radius * ACOS( COS( RADIANS(:origin_latitude) ) * COS( RADIANS(:destination_latitude) ) * COS( RADIANS(:destination_longitude) - RADIANS(:origin_longitude) ) + SIN( RADIANS(:origin_latitude) ) * SIN( RADIANS(:destination_latitude) ) ) )'; |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | * @param string $type The project type. |
| 236 | 236 | * @param string $name The name of the project. |
| 237 | 237 | * |
| 238 | - * @return bool FALSE if the project does not exist. |
|
| 238 | + * @return false|null FALSE if the project does not exist. |
|
| 239 | 239 | */ |
| 240 | 240 | function df_tools_translation_import_translations($type, $name) { |
| 241 | 241 | // Attempt to pull module path. |
@@ -1,7 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Drupal\user\Entity\User; |
|
| 4 | - |
|
| 5 | 3 | /** |
| 6 | 4 | * @file |
| 7 | 5 | * Contains core functionality for the DF distribution. |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace Acquia\DFExtension\Context; |
| 4 | 4 | |
| 5 | 5 | use Acquia\LightningExtension\AwaitTrait; |
| 6 | -use Acquia\LightningExtension\Context\PanelsInPlaceContext; |
|
| 7 | -use Acquia\LightningExtension\Context\UtilityContext; |
|
| 8 | 6 | use Drupal\DrupalExtension\Context\DrupalSubContextBase; |
| 9 | 7 | |
| 10 | 8 | /** |