Code Duplication    Length = 11-11 lines in 2 locations

src/ApaiIO/ResponseTransformer/ObjectToItems.php 1 location

@@ 78-88 (lines=11) @@
75
	 * @param type $response
76
	 * @return mixed
77
	 */
78
	protected function get_items($response)
79
	{
80
		if( isset($response['Items']['Item']) AND is_array($response['Items']['Item']) )
81
		{
82
			return $this->items = $response['Items']['Item'];
83
		}
84
		else
85
		{
86
			return FALSE;
87
		}
88
	}
89
90
91
	/**

src/ApaiIO/ResponseTransformer/ObjectToPreview.php 1 location

@@ 65-75 (lines=11) @@
62
     * @param type $response
63
     * @return mixed
64
     */
65
    protected function getItems($response)
66
    {
67
        if (isset($response['Items']['Item']) AND is_array($response['Items']['Item'])) {
68
            return $this->items = $response['Items']['Item'];
69
        } else {
70
            return false;
71
        }
72
    }
73
74
    /**
75
     *
76
     * @param array $response
77
     */
78
    protected function getCategories($response)