original_string: public static function buildExpressions(array $expressions)
      {
          foreach ($expressions as $k => $expr) {
              if ($expr instanceof self) {
                  $if = $expr->ifPart;
                  $then = $expr->thenPart;
                  $expressions[$k] = function ($v) use ($if, $then) {
                      return $if($v) ? $then($v) : $v;
                  };
              }
          }
  
          return $expressions;
      }
code: public static function buildExpressions(array $expressions)
      {
          foreach ($expressions as $k => $expr) {
              if ($expr instanceof self) {
                  $if = $expr->ifPart;
                  $then = $expr->thenPart;
                  $expressions[$k] = function ($v) use ($if, $then) {
                      return $if($v) ? $then($v) : $v;
                  };
              }
          }
  
          return $expressions;
      }
code_tokens: public static function buildExpressions ( array $ expressions ) { foreach ( $ expressions as $ k => $ expr ) { if ( $ expr instanceof self ) { $ if = $ expr -> ifPart ; $ then = $ expr -> thenPart ; $ expressions [ $ k ] = function ( $ v ) use ( $ if , $ then ) { return $ if ( $ v ) ? $ then ( $ v ) : $ v ; } ; } } return $ expressions ; }
docstring: Builds the expressions.
  
  @param ExprBuilder[] $expressions An array of ExprBuilder instances to build
  
  @return array
docstring_tokens: Builds the expressions .