lib/FastImageSize.php
protected function loadType($imageType)
	{
		if (isset($this->type[$imageType]))
		{
			return;
		}

		$className = '\FastImageSize\Type\Type' . mb_convert_case(mb_strtolower($imageType), MB_CASE_TITLE);
		$this->type[$imageType] = new $className($this);

		// Create class map
		foreach ($this->supportedTypes[$imageType] as $ext)
		{
			/** @var Type\TypeInterface */
			$this->classMap[$ext] = $this->type[$imageType];
		}
	}
protected function loadType($imageType)
	{
		if (isset($this->type[$imageType]))
		{
			return;
		}

		$className = '\FastImageSize\Type\Type' . mb_convert_case(mb_strtolower($imageType), MB_CASE_TITLE);
		$this->type[$imageType] = new $className($this);

		// Create class map
		foreach ($this->supportedTypes[$imageType] as $ext)
		{
			/** @var Type\TypeInterface */
			$this->classMap[$ext] = $this->type[$imageType];
		}
	}
protected function loadType ( $ imageType ) { if ( isset ( $ this -> type [ $ imageType ] ) ) { return ; } $ className = '\FastImageSize\Type\Type' . mb_convert_case ( mb_strtolower ( $ imageType ) , MB_CASE_TITLE ) ; $ this -> type [ $ imageType ] = new $ className ( $ this ) ; // Create class map foreach ( $ this -> supportedTypes [ $ imageType ] as $ ext ) { /** @var Type\TypeInterface */ $ this -> classMap [ $ ext ] = $ this -> type [ $ imageType ] ; } }
Load an image type

@param string $imageType Mimetype
Load an image type