Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Drupal\Core\Extension; /** * Parses extension .info.yml files. */ clas..

Decoded Output download

<?php

namespace Drupal\Core\Extension;

/**
 * Parses extension .info.yml files.
 */
class InfoParser extends InfoParserDynamic {

  /**
   * Array of all info keyed by filename.
   *
   * @var array
   */
  protected static $parsedInfos = [];

  /**
   * {@inheritdoc}
   */
  public function parse($filename) {
    if (!isset(static::$parsedInfos[$filename])) {
      static::$parsedInfos[$filename] = parent::parse($filename);
    }
    return static::$parsedInfos[$filename];
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\Extension;

/**
 * Parses extension .info.yml files.
 */
class InfoParser extends InfoParserDynamic {

  /**
   * Array of all info keyed by filename.
   *
   * @var array
   */
  protected static $parsedInfos = [];

  /**
   * {@inheritdoc}
   */
  public function parse($filename) {
    if (!isset(static::$parsedInfos[$filename])) {
      static::$parsedInfos[$filename] = parent::parse($filename);
    }
    return static::$parsedInfos[$filename];
  }

}

Function Calls

None

Variables

None

Stats

MD5 7d5ce38dab6a6855984542e7a229bf96
Eval Count 0
Decode Time 78 ms