original_string: public static function raiseMemoryLimitIfNecessary()
      {
          $memoryLimit = self::getMemoryLimitValue();
          if ($memoryLimit === false) {
              return false;
          }
          $minimumMemoryLimit = Config::getInstance()->General['minimum_memory_limit'];
  
          if (self::isArchivePhpTriggered()) {
              // core:archive command: no time limit, high memory limit
              self::setMaxExecutionTime(0);
              $minimumMemoryLimitWhenArchiving = Config::getInstance()->General['minimum_memory_limit_when_archiving'];
              if ($memoryLimit < $minimumMemoryLimitWhenArchiving) {
                  return self::setMemoryLimit($minimumMemoryLimitWhenArchiving);
              }
              return false;
          }
          if ($memoryLimit < $minimumMemoryLimit) {
              return self::setMemoryLimit($minimumMemoryLimit);
          }
          return false;
      }
code: public static function raiseMemoryLimitIfNecessary()
      {
          $memoryLimit = self::getMemoryLimitValue();
          if ($memoryLimit === false) {
              return false;
          }
          $minimumMemoryLimit = Config::getInstance()->General['minimum_memory_limit'];
  
          if (self::isArchivePhpTriggered()) {
              // core:archive command: no time limit, high memory limit
              self::setMaxExecutionTime(0);
              $minimumMemoryLimitWhenArchiving = Config::getInstance()->General['minimum_memory_limit_when_archiving'];
              if ($memoryLimit < $minimumMemoryLimitWhenArchiving) {
                  return self::setMemoryLimit($minimumMemoryLimitWhenArchiving);
              }
              return false;
          }
          if ($memoryLimit < $minimumMemoryLimit) {
              return self::setMemoryLimit($minimumMemoryLimit);
          }
          return false;
      }
code_tokens: public static function raiseMemoryLimitIfNecessary ( ) { $ memoryLimit = self :: getMemoryLimitValue ( ) ; if ( $ memoryLimit === false ) { return false ; } $ minimumMemoryLimit = Config :: getInstance ( ) -> General [ 'minimum_memory_limit' ] ; if ( self :: isArchivePhpTriggered ( ) ) { // core:archive command: no time limit, high memory limit self :: setMaxExecutionTime ( 0 ) ; $ minimumMemoryLimitWhenArchiving = Config :: getInstance ( ) -> General [ 'minimum_memory_limit_when_archiving' ] ; if ( $ memoryLimit < $ minimumMemoryLimitWhenArchiving ) { return self :: setMemoryLimit ( $ minimumMemoryLimitWhenArchiving ) ; } return false ; } if ( $ memoryLimit < $ minimumMemoryLimit ) { return self :: setMemoryLimit ( $ minimumMemoryLimit ) ; } return false ; }
docstring: Raise PHP memory limit if below the minimum required
  
  @return bool  true if set; false otherwise
docstring_tokens: Raise PHP memory limit if below the minimum required