File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,6 @@ protected function getFilePaths($definitions)
167
167
168
168
protected function fileIsNodeType ($ filename )
169
169
{
170
- if (substr ($ filename , -4 ) === '.cnd ' ) {
171
- return true ;
172
- }
173
-
174
- return false ;
170
+ return substr ($ filename , -4 ) === '.cnd ' ;
175
171
}
176
172
}
Original file line number Diff line number Diff line change @@ -22,11 +22,7 @@ class UUIDHelper
22
22
public static function isUUID ($ id )
23
23
{
24
24
// UUID is HEX_CHAR{8}-HEX_CHAR{4}-HEX_CHAR{4}-HEX_CHAR{4}-HEX_CHAR{12}
25
- if (1 === preg_match ('/^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$/ ' , $ id )) {
26
- return true ;
27
- }
28
-
29
- return false ;
25
+ return 1 === preg_match ('/^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$/ ' , $ id );
30
26
}
31
27
32
28
/**
You can’t perform that action at this time.
0 commit comments