original_string: protected function _stringifyExpressions($expressions, $generator, $wrap = true)
      {
          $result = [];
          foreach ($expressions as $k => $expression) {
              if ($expression instanceof ExpressionInterface) {
                  $value = $expression->sql($generator);
                  $expression = $wrap ? '(' . $value . ')' : $value;
              }
              $result[$k] = $expression;
          }
  
          return $result;
      }
code: protected function _stringifyExpressions($expressions, $generator, $wrap = true)
      {
          $result = [];
          foreach ($expressions as $k => $expression) {
              if ($expression instanceof ExpressionInterface) {
                  $value = $expression->sql($generator);
                  $expression = $wrap ? '(' . $value . ')' : $value;
              }
              $result[$k] = $expression;
          }
  
          return $result;
      }
code_tokens: protected function _stringifyExpressions ( $ expressions , $ generator , $ wrap = true ) { $ result = [ ] ; foreach ( $ expressions as $ k => $ expression ) { if ( $ expression instanceof ExpressionInterface ) { $ value = $ expression -> sql ( $ generator ) ; $ expression = $ wrap ? '(' . $ value . ')' : $ value ; } $ result [ $ k ] = $ expression ; } return $ result ; }
docstring: Helper function used to covert ExpressionInterface objects inside an array
  into their string representation.
  
  @param array $expressions list of strings and ExpressionInterface objects
  @param \Cake\Database\ValueBinder $generator the placeholder generator to be used in expressions
  @param bool $wrap Whether to wrap each expression object with parenthesis
  @return array
docstring_tokens: Helper function used to covert ExpressionInterface objects inside an array into their string representation .