@@ -345,7 +345,7 @@ public function getChildren($parent, $limit = false, $offset = false, $filter =
345
345
$ children = (array ) $ node ->getNodeNames ();
346
346
foreach ($ children as $ key => $ child ) {
347
347
// filter before fetching data already to save some traffic
348
- if (strpos ($ child , 'phpcr_locale: ' ) === 0 ) {
348
+ if (0 === strpos ($ child , 'phpcr_locale: ' )) {
349
349
unset($ children [$ key ]);
350
350
351
351
continue ;
@@ -363,7 +363,7 @@ public function getChildren($parent, $limit = false, $offset = false, $filter =
363
363
$ result = [];
364
364
foreach ($ children as $ name => $ child ) {
365
365
// if we requested all children above, we did not filter yet
366
- if (strpos ($ name , 'phpcr_locale: ' ) === 0 ) {
366
+ if (0 === strpos ($ name , 'phpcr_locale: ' )) {
367
367
continue ;
368
368
}
369
369
@@ -460,7 +460,7 @@ private function getChildrenPaths($path, array &$children, $depth)
460
460
$ node = $ this ->getDm ()->getPhpcrSession ()->getNode ($ path );
461
461
$ names = (array ) $ node ->getNodeNames ();
462
462
foreach ($ names as $ name ) {
463
- if (strpos ($ name , 'phpcr_locale: ' ) === 0 ) {
463
+ if (0 === strpos ($ name , 'phpcr_locale: ' )) {
464
464
continue ;
465
465
}
466
466
@@ -504,7 +504,7 @@ public function getDescendants($parent, $depth = null)
504
504
private function checkChildren (array $ childNames , $ path , $ ignoreRole = false , $ class = null )
505
505
{
506
506
foreach ($ childNames as $ name ) {
507
- if (strpos ($ name , 'phpcr_locale: ' ) === 0 ) {
507
+ if (0 === strpos ($ name , 'phpcr_locale: ' )) {
508
508
continue ;
509
509
}
510
510
0 commit comments