protected function buildDictionary()
	{
		$keys = $this->getAvailableKeys();
		rsort($keys);

		$this->dictionary = [];
		arsort($this->savings);
		foreach (array_keys($this->savings) as $str)
		{
			$key = array_pop($keys);
			if (!$key)
			{
				break;
			}

			$this->dictionary[$key] = $str;
		}
	}
protected function buildDictionary()
	{
		$keys = $this->getAvailableKeys();
		rsort($keys);

		$this->dictionary = [];
		arsort($this->savings);
		foreach (array_keys($this->savings) as $str)
		{
			$key = array_pop($keys);
			if (!$key)
			{
				break;
			}

			$this->dictionary[$key] = $str;
		}
	}
protected function buildDictionary ( ) { $ keys = $ this -> getAvailableKeys ( ) ; rsort ( $ keys ) ; $ this -> dictionary = [ ] ; arsort ( $ this -> savings ) ; foreach ( array_keys ( $ this -> savings ) as $ str ) { $ key = array_pop ( $ keys ) ; if ( ! $ key ) { break ; } $ this -> dictionary [ $ key ] = $ str ; } }
Build a dictionary of all cost-effective string replacements

@return void
Build a dictionary of all cost - effective string replacements