summaryrefslogtreecommitdiffstats
path: root/src/Utils/Error.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-09-25 11:01:45 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-09-25 11:01:45 +0300
commit8f19b8f15e098b06587cc67ce02ecc204fd201c7 (patch)
tree4219e5576893acc5edf7035218114ce2dbd39ffc /src/Utils/Error.php
parent1415469b34b1fc33189e2c801302597b5b50f704 (diff)
downloadsql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.zip
sql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.tar.gz
sql-parser-8f19b8f15e098b06587cc67ce02ecc204fd201c7.tar.bz2
Updated coding style to follow PSR-2 coding standards.
Diffstat (limited to 'src/Utils/Error.php')
-rw-r--r--src/Utils/Error.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Utils/Error.php b/src/Utils/Error.php
index df6d513..a9c0814 100644
--- a/src/Utils/Error.php
+++ b/src/Utils/Error.php
@@ -78,14 +78,20 @@ class Error
* @return array
*/
public static function format(
- $errors, $format = '#%1$d: %2$s (near "%4$s" at position %5$d)'
+ $errors,
+ $format = '#%1$d: %2$s (near "%4$s" at position %5$d)'
) {
$ret = array();
$i = 0;
foreach ($errors as $key => $err) {
$ret[$key] = sprintf(
- $format, ++$i, $err[0], $err[1], $err[2], $err[3]
+ $format,
+ ++$i,
+ $err[0],
+ $err[1],
+ $err[2],
+ $err[3]
);
}