Code Duplication    Length = 9-12 lines in 2 locations

htdocs/class/libraries/vendor/raveren/kint/inc/kintParser.class.php 1 location

@@ 486-494 (lines=9) @@
483
			$name = $property->name;
484
			if ( $property->isStatic() || isset( $encountered[ $name ] ) ) continue;
485
486
			if ( $property->isProtected() ) {
487
				$property->setAccessible( true );
488
				$access = "protected";
489
			} elseif ( $property->isPrivate() ) {
490
				$property->setAccessible( true );
491
				$access = "private";
492
			} else {
493
				$access = "public";
494
			}
495
496
			$value = $property->getValue( $variable );
497

htdocs/class/libraries/vendor/raveren/kint/parsers/custom/classstatics.php 1 location

@@ 14-25 (lines=12) @@
11
		$reflection = new ReflectionClass( $variable );
12
		// first show static values
13
		foreach ( $reflection->getProperties( ReflectionProperty::IS_STATIC ) as $property ) {
14
			if ( $property->isPrivate() ) {
15
				if ( !method_exists( $property, 'setAccessible' ) ) {
16
					break;
17
				}
18
				$property->setAccessible( true );
19
				$access = "private";
20
			} elseif ( $property->isProtected() ) {
21
				$property->setAccessible( true );
22
				$access = "protected";
23
			} else {
24
				$access = 'public';
25
			}
26
27
			$_      = $property->getValue();
28
			$output = kintParser::factory( $_, '$' . $property->getName() );