original_string: public static function getSpotColor($name, &$spotc) {
  		if (isset($spotc[$name])) {
  			return $spotc[$name];
  		}
  		$color = preg_replace('/[\s]*/', '', $name); // remove extra spaces
  		$color = strtolower($color);
  		if (isset(self::$spotcolor[$color])) {
  			if (!isset($spotc[$name])) {
  				$i = (1 + count($spotc));
  				$spotc[$name] = array('C' => self::$spotcolor[$color][0], 'M' => self::$spotcolor[$color][1], 'Y' => self::$spotcolor[$color][2], 'K' => self::$spotcolor[$color][3], 'name' => self::$spotcolor[$color][4], 'i' => $i);
  			}
  			return $spotc[self::$spotcolor[$color][4]];
  		}
  		return false;
  	}
code: public static function getSpotColor($name, &$spotc) {
  		if (isset($spotc[$name])) {
  			return $spotc[$name];
  		}
  		$color = preg_replace('/[\s]*/', '', $name); // remove extra spaces
  		$color = strtolower($color);
  		if (isset(self::$spotcolor[$color])) {
  			if (!isset($spotc[$name])) {
  				$i = (1 + count($spotc));
  				$spotc[$name] = array('C' => self::$spotcolor[$color][0], 'M' => self::$spotcolor[$color][1], 'Y' => self::$spotcolor[$color][2], 'K' => self::$spotcolor[$color][3], 'name' => self::$spotcolor[$color][4], 'i' => $i);
  			}
  			return $spotc[self::$spotcolor[$color][4]];
  		}
  		return false;
  	}
code_tokens: public static function getSpotColor ( $ name , & $ spotc ) { if ( isset ( $ spotc [ $ name ] ) ) { return $ spotc [ $ name ] ; } $ color = preg_replace ( '/[\s]*/' , '' , $ name ) ; // remove extra spaces $ color = strtolower ( $ color ) ; if ( isset ( self :: $ spotcolor [ $ color ] ) ) { if ( ! isset ( $ spotc [ $ name ] ) ) { $ i = ( 1 + count ( $ spotc ) ) ; $ spotc [ $ name ] = array ( 'C' => self :: $ spotcolor [ $ color ] [ 0 ] , 'M' => self :: $ spotcolor [ $ color ] [ 1 ] , 'Y' => self :: $ spotcolor [ $ color ] [ 2 ] , 'K' => self :: $ spotcolor [ $ color ] [ 3 ] , 'name' => self :: $ spotcolor [ $ color ] [ 4 ] , 'i' => $ i ) ; } return $ spotc [ self :: $ spotcolor [ $ color ] [ 4 ] ] ; } return false ; }
docstring: Return the Spot color array.
  @param $name (string) Name of the spot color.
  @param $spotc (array) Reference to an array of spot colors.
  @return (array) Spot color array or false if not defined.
  @since 5.9.125 (2011-10-03)
  @public static
docstring_tokens: Return the Spot color array .