Skip to content

Commit

Permalink
ACMS-000: Fix static code analysis warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra committed Oct 8, 2024
1 parent 1cc5f36 commit 7a2ee25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/acquia_cms_audio/acquia_cms_audio.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Drupal\Core\Config\StorageInterface;
*/
function acquia_cms_audio_install($is_syncing) {
if (!$is_syncing) {
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module','acquia_cms_audio') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module', 'acquia_cms_audio') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
if (is_dir($optional_install_path)) {
$config_installer = \Drupal::service('config.installer');
$storage = new FileStorage($optional_install_path, StorageInterface::DEFAULT_COLLECTION);
Expand Down
2 changes: 1 addition & 1 deletion modules/acquia_cms_document/acquia_cms_document.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Drupal\Core\Config\StorageInterface;
*/
function acquia_cms_document_install($is_syncing) {
if (!$is_syncing) {
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module','acquia_cms_document') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module', 'acquia_cms_document') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
if (is_dir($optional_install_path)) {
$config_installer = \Drupal::service('config.installer');
$storage = new FileStorage($optional_install_path, StorageInterface::DEFAULT_COLLECTION);
Expand Down
2 changes: 1 addition & 1 deletion modules/acquia_cms_image/acquia_cms_image.install
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use Drupal\image\Entity\ImageStyle;
*/
function acquia_cms_image_install($is_syncing) {
if (!$is_syncing) {
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module','acquia_cms_image') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module', 'acquia_cms_image') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
if (is_dir($optional_install_path)) {
$config_installer = \Drupal::service('config.installer');
$storage = new FileStorage($optional_install_path, StorageInterface::DEFAULT_COLLECTION);
Expand Down
2 changes: 1 addition & 1 deletion modules/acquia_cms_video/acquia_cms_video.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Drupal\Core\Config\StorageInterface;
*/
function acquia_cms_video_install($is_syncing) {
if (!$is_syncing) {
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module','acquia_cms_video') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
$optional_install_path = \Drupal::service('extension.path.resolver')->getPath('module', 'acquia_cms_video') . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
if (is_dir($optional_install_path)) {
$config_installer = \Drupal::service('config.installer');
$storage = new FileStorage($optional_install_path, StorageInterface::DEFAULT_COLLECTION);
Expand Down

0 comments on commit 7a2ee25

Please sign in to comment.