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

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