Code Duplication    Length = 5-5 lines in 3 locations

sources/lib/PropertyInfo/Extractor/ListExtractor.php 1 location

@@ 38-42 (lines=5) @@
35
     */
36
    public function getProperties($class, array $context = array())
37
    {
38
        if (isset($context['session:name'])) {
39
            $session = $this->pomm->getSession($context['session:name']);
40
        } else {
41
            $session = $this->pomm->getDefaultSession();
42
        }
43
44
        if (isset($context['model:name'])) {
45
            $model_name = $context['model:name'];

sources/lib/PropertyInfo/Extractor/TypeExtractor.php 1 location

@@ 39-43 (lines=5) @@
36
     */
37
    public function getTypes($class, $property, array $context = array())
38
    {
39
        if (isset($context['session:name'])) {
40
            $session = $this->pomm->getSession($context['session:name']);
41
        } else {
42
            $session = $this->pomm->getDefaultSession();
43
        }
44
45
        if (isset($context['model:name'])) {
46
            $model_name = $context['model:name'];

sources/lib/Serializer/Normalizer/FlexibleEntityDenormalizer.php 1 location

@@ 37-41 (lines=5) @@
34
     */
35
    public function denormalize($data, $class, $format = null, array $context = array())
36
    {
37
        if (isset($context['session:name'])) {
38
            $session = $this->pomm->getSession($context['session:name']);
39
        } else {
40
            $session = $this->pomm->getDefaultSession();
41
        }
42
43
        if (isset($context['model:name'])) {
44
            $model_name = $context['model:name'];