@@ -24,7 +24,7 @@ protected function replaceBindings(string $sql, array $bindings): string
2424 /**
2525 * Get final value that will be displayed in query.
2626 *
27- * @param mixed $value
27+ * @param mixed $value
2828 *
2929 * @return int|string
3030 */
@@ -38,27 +38,27 @@ protected function value($value)
3838 return (int ) $ value ;
3939 }
4040
41- return is_numeric ($ value ) ? $ value : "' " . $ value . "' " ;
41+ return is_numeric ($ value ) ? $ value : "' " . $ value. "' " ;
4242 }
4343
4444 /**
4545 * Get regex to be used for named parameter with given name.
4646 *
47- * @param string $name
47+ * @param string $name
4848 */
4949 protected function getNamedParameterRegex ($ name ): string
5050 {
5151 if (mb_substr ($ name , 0 , 1 ) == ': ' ) {
5252 $ name = mb_substr ($ name , 1 );
5353 }
5454
55- return $ this ->wrapRegex ($ this ->notInsideQuotes ('\: ' . preg_quote ($ name ), false ));
55+ return $ this ->wrapRegex ($ this ->notInsideQuotes ('\: ' . preg_quote ($ name ), false ));
5656 }
5757
5858 /**
5959 * Format bindings values.
6060 *
61- * @param array $bindings
61+ * @param array $bindings
6262 *
6363 * @return array
6464 */
@@ -84,28 +84,28 @@ protected function getRegex()
8484 {
8585 return $ this ->wrapRegex (
8686 $ this ->notInsideQuotes ('? ' )
87- . '| ' .
87+ .'| ' .
8888 $ this ->notInsideQuotes ('\:\w+ ' , false )
8989 );
9090 }
9191
9292 /**
9393 * Wrap regex.
9494 *
95- * @param string $regex
95+ * @param string $regex
9696 *
9797 * @return string
9898 */
9999 protected function wrapRegex ($ regex )
100100 {
101- return '# ' . $ regex . '#ms ' ;
101+ return '# ' . $ regex. '#ms ' ;
102102 }
103103
104104 /**
105105 * Create partial regex to find given text not inside quotes.
106106 *
107- * @param string $string
108- * @param bool $quote
107+ * @param string $string
108+ * @param bool $quote
109109 *
110110 * @return string
111111 */
@@ -117,9 +117,9 @@ protected function notInsideQuotes($string, $quote = true)
117117
118118 return
119119 // double quotes - ignore "" and everything inside quotes for example " abc \"err "
120- '(?:""|"(?:[^"]| \\")*?[^ \\\]")(*SKIP)(*F)| ' . $ string .
121- '| ' .
120+ '(?:""|"(?:[^"]| \\")*?[^ \\\]")(*SKIP)(*F)| ' . $ string .
121+ '| ' .
122122 // single quotes - ignore '' and everything inside quotes for example ' abc \'err '
123- '(?: \\\'\\\'| \'(?:[^ \']| \\\')*?[^ \\\] \')(*SKIP)(*F)| ' . $ string ;
123+ '(?: \\\'\\\'| \'(?:[^ \']| \\\')*?[^ \\\] \')(*SKIP)(*F)| ' . $ string ;
124124 }
125125}
0 commit comments