Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
25c78b8c
Commit
25c78b8c
authored
Aug 23, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring query compiler.
parent
5ca2e2b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
.gitignore
.gitignore
+1
-0
gitflow
gitflow
+1
-0
compiler.php
laravel/db/query/compiler.php
+1
-3
No files found.
.gitignore
0 → 100644
View file @
25c78b8c
gitflow/*
gitflow
@
be5dabf8
Subproject commit be5dabf88e98075b9bc936bfa7de0f54a21a0482
laravel/db/query/compiler.php
View file @
25c78b8c
...
...
@@ -31,9 +31,7 @@ class Compiler {
if
(
!
is_null
(
$query
->
$clause
))
$sql
[]
=
call_user_func
(
array
(
$this
,
'compile_'
.
$clause
),
$query
->
$clause
);
}
foreach
(
$sql
as
$key
=>
$value
)
{
if
(
is_null
(
$value
)
or
(
string
)
$value
===
''
)
unset
(
$sql
[
$key
]);
}
return
implode
(
' '
,
$sql
);
return
implode
(
' '
,
array_filter
(
$sql
,
function
(
$value
)
{
return
!
is_null
(
$value
)
and
(
string
)
$value
!==
''
;
}));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment