Code Duplication    Length = 19-19 lines in 2 locations

src/Request/Plugin/CallableClass.php 1 location

@@ 62-80 (lines=19) @@
59
     */
60
    protected $sRequestedMethod = null;
61
62
    public function __construct()
63
    {
64
        if(!empty($_GET['jxncls']))
65
        {
66
            $this->sRequestedClass = $_GET['jxncls'];
67
        }
68
        if(!empty($_GET['jxnmthd']))
69
        {
70
            $this->sRequestedMethod = $_GET['jxnmthd'];
71
        }
72
        if(!empty($_POST['jxncls']))
73
        {
74
            $this->sRequestedClass = $_POST['jxncls'];
75
        }
76
        if(!empty($_POST['jxnmthd']))
77
        {
78
            $this->sRequestedMethod = $_POST['jxnmthd'];
79
        }
80
    }
81
82
    /**
83
     * Return the name of this plugin

src/Request/Plugin/CallableDir.php 1 location

@@ 83-101 (lines=19) @@
80
     */
81
    protected $sRequestedMethod = null;
82
83
    public function __construct()
84
    {
85
        if(!empty($_GET['jxncls']))
86
        {
87
            $this->sRequestedClass = $_GET['jxncls'];
88
        }
89
        if(!empty($_GET['jxnmthd']))
90
        {
91
            $this->sRequestedMethod = $_GET['jxnmthd'];
92
        }
93
        if(!empty($_POST['jxncls']))
94
        {
95
            $this->sRequestedClass = $_POST['jxncls'];
96
        }
97
        if(!empty($_POST['jxnmthd']))
98
        {
99
            $this->sRequestedMethod = $_POST['jxnmthd'];
100
        }
101
    }
102
103
    /**
104
     * Return the name of this plugin