diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-12-28 14:03:05 +0100 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-12-28 14:03:05 +0100 |
commit | 34eee889f4596b7b713e5be1d1cf3d4f1810a06e (patch) | |
tree | 2589d28307a5bf1dcd492b10cd10beeeca9326e0 | |
parent | 3cc1034becc10c507ec891414457d5f826ff405f (diff) | |
parent | 7a2c1c56222d1529d971aaed0197fcff2e6d6cd9 (diff) | |
download | symfony-security-34eee889f4596b7b713e5be1d1cf3d4f1810a06e.zip symfony-security-34eee889f4596b7b713e5be1d1cf3d4f1810a06e.tar.gz symfony-security-34eee889f4596b7b713e5be1d1cf3d4f1810a06e.tar.bz2 |
minor #17086 CS: use nowdoc instead of heredoc (gharlan)
This PR was merged into the 2.3 branch.
Discussion
----------
CS: use nowdoc instead of heredoc
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | —
| License | MIT
| Doc PR | —
if this is accepted, we could add the fixer to symfony level of php-cs-fixer: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1580
Commits
-------
3dca549 use nowdoc instead of heredoc
-rw-r--r-- | Acl/Dbal/AclProvider.php | 2 | ||||
-rw-r--r-- | Acl/Dbal/MutableAclProvider.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Acl/Dbal/AclProvider.php b/Acl/Dbal/AclProvider.php index 0ccc19f..bba5824 100644 --- a/Acl/Dbal/AclProvider.php +++ b/Acl/Dbal/AclProvider.php @@ -367,7 +367,7 @@ FINDCHILDREN; */ protected function getSelectObjectIdentityIdSql(ObjectIdentityInterface $oid) { - $query = <<<QUERY + $query = <<<'QUERY' SELECT o.id FROM %s o INNER JOIN %s c ON c.id = o.class_id diff --git a/Acl/Dbal/MutableAclProvider.php b/Acl/Dbal/MutableAclProvider.php index c62bdd4..074c4a0 100644 --- a/Acl/Dbal/MutableAclProvider.php +++ b/Acl/Dbal/MutableAclProvider.php @@ -433,7 +433,7 @@ class MutableAclProvider extends AclProvider implements MutableAclProviderInterf */ protected function getInsertAccessControlEntrySql($classId, $objectIdentityId, $field, $aceOrder, $securityIdentityId, $strategy, $mask, $granting, $auditSuccess, $auditFailure) { - $query = <<<QUERY + $query = <<<'QUERY' INSERT INTO %s ( class_id, object_identity_id, @@ -510,7 +510,7 @@ QUERY; */ protected function getInsertObjectIdentitySql($identifier, $classId, $entriesInheriting) { - $query = <<<QUERY + $query = <<<'QUERY' INSERT INTO %s (class_id, object_identifier, entries_inheriting) VALUES (%d, %s, %s) QUERY; |