drupflare/worker - v1.0.4
    Preparing search index...

    Function phpWhen

    • Wraps PHP declarations in an if block, so they bind at run time. Keep the function_exists or class_exists half of a guard: a fragment can run twice and a redeclare is fatal.

      Parameters

      • condition: string
      • code: string

      Returns string