Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed some RFI and dynamic parameter warnings from PHPCS #222

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/custom/az_core/src/QuickstartConfigInstaller.php
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ public function checkConfigurationToInstall($type, $name) {
}
$config_install_path = $this
->getDefaultConfigDirectory($type, $name);
if (!is_dir($config_install_path)) {
if (stream_resolve_include_path($config_install_path) === FALSE) {
return;
}
$storage = new FileStorage($config_install_path, StorageInterface::DEFAULT_COLLECTION);
@@ -99,7 +99,7 @@ protected function checkAllowedOverrides(array $configuration, string $type, str
$app_root = \Drupal::root();
$filename = $app_root . '/' . drupal_get_path($type, $name) . '/' . $name . '.az_config_overrides.yml';

if (file_exists($filename)) {
if (stream_resolve_include_path($filename)) {
// If an override file exists, parse it for overrides.
$yaml = Yaml::decode(file_get_contents($filename));
if (!empty($yaml['overrides'])) {
2 changes: 1 addition & 1 deletion themes/custom/az_barrio/az_barrio.theme
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
* Functions to support theming in the Arizona Barrio theme.
*/

include_once dirname(__FILE__) . '/includes/common.inc';
include_once drupal_get_path('theme', 'az_barrio') . '/includes/common.inc';

use Drupal\Core\Link;
use Drupal\Core\Render\Markup;
2 changes: 1 addition & 1 deletion themes/custom/az_barrio/theme-settings.php
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
* Provides theme settings for Arizona Barrio.
*/

include_once dirname(__FILE__) . '/includes/common.inc';
include_once drupal_get_path('theme', 'az_barrio') . '/includes/common.inc';

use Drupal\Core\Form\FormStateInterface;