@param $to

@return Code
340760
public function generateCode($to)
	{
		$length       = (int) config('ibrand.sms.code.length', 5);
		$characters   = '0123456789';
		$charLength   = strlen($characters);
		$randomString = '';
		for ($i = 0; $i < $length; ++$i) {
			$randomString .= $characters[mt_rand(0, $charLength - 1)];
		}

		$validMinutes = (int) config('ibrand.sms.code.validMinutes', 5);

		return new Code($to, $randomString, false, 0, Carbon::now()->addMinutes($validMinutes));
	}
264807
public function rename($to) {
		
		if($this->alreadyUploaded) {
			return parent::rename($to);
		}

		$this->originalName = $to;

		return $this;

	}
720028
public function limit($from, $to = '') 
    {
        $this->sql .= ' LIMIT ' . $from;
        
        if(is_numeric($to)) {
            $this->sql .= ', ' . $to;
        }
        
        return $this;
    }
721935
public static function move($from, $to)
    {
        return self::copy($from, $to) && self::delete($from);
    }
1056685
function replyTo( $convert = true )
    {
//        return $this->Mail->getHeader( 'Reply-To' );
        if ( !$convert )
            return $this->ReplyTo;
        return $this->convertHeaderText( $this->ReplyTo );
    }
766504
public function get($reference, $to, array $parameters = array(), $locale = null)
    {
        try {
            $email = $this->getEmail($reference);
            return $this->generateMessage($email, $to, $parameters, $locale);
        } catch (ReferenceNotFoundException $e) {
            return $this->generateExceptionMessage($reference);
        }
    }
1092888
public static function ConvertEncoding($value, $to, $from)
	{
		if (self::getIsMbstringEnabled()) {
			$value = mb_convert_encoding($value, $to, $from);
			return $value;
		}

		if (self::getIsIconvEnabled()) {
			$value = iconv($from, $to, $value);
			return $value;
		}

		// else, no conversion
		return $value;
	}
659603
public function setTo($to = [])
    {
        $this->to = $to;
        $this->debug->debug(__FUNCTION__, 'setTo: ', $this->to);
    }
237954
private function getUrl($string, $from, $to, $key)
    {
        return sprintf(
            'https://www.googleapis.com/language/translate/v2?key=%s&source=%s&target=%s&q=%s',
            $key,
            $from,
            $to,
            urlencode($string)
        );
    }
230326
private function resolveTo($to, $from)
    {
        if (is_string($to)) {
            $to = strtolower($to);
        }

        if ($to === 'down') {
            $to = $this->versionCollection->getPreviousVersion($from);
        }

        if ($to === 'up') {
            $to = $this->versionCollection->getNextVersion($from);
        }

        if ($to === 'bottom') {
            $to = 0;
        }

        if ($to === 'top' || null === $to) {
            $to = $this->versionCollection->getLatestVersion();
        }

        if (0 !== $to && false === strtotime($to)) {
            throw new MigratorException(sprintf(
                'Unknown migration action "%s". Known actions: "%s"',
                $to,
                implode('", "', $this->actions)
            ));
        }

        if (0 !== $to && !$this->versionCollection->has($to)) {
            throw new MigratorException(sprintf(
                'Unknown version "%s"', $to
            ));
        }

        return $to;
    }
140742
public function getToc(ContentInterface $md_content, OutputFormatInterface $formatter, array $attributes = null)
    {
        $cfg_toc_max_level      = $this->getConfigOrDefault('toc_max_level');
        $cfg_toc_title          = $this->getConfigOrDefault('toc_title');
        $cfg_toc_title_level    = $this->getConfigOrDefault('toc_title_level');
        $cfg_toc_id             = $this->getConfigOrDefault('toc_id');
        $cfg_toc_class          = $this->getConfigOrDefault('toc_class');
        $cfg_toc_item_title     = $this->getConfigOrDefault('toc_item_title');

        $menu                   = $md_content->getMenu();
        $content                = $list_content = '';
        $max_level              = isset($attributes['max_level']) ? $attributes['max_level'] : $cfg_toc_max_level;

        if (!empty($menu) && count($menu) > 1) {
            $depth = 0;
            $current_level = null;

            foreach ($menu as $item_id=>$menu_item) {
                $_item_id = TemplateHelper::getSafeIdString($item_id);

                if (isset($max_level) && $menu_item['level']>$max_level) {
                    continue;
                }

                $diff = $menu_item['level']-(is_null($current_level) ? $menu_item['level'] : $current_level);
                if ($diff > 0) {
                    $list_content .= str_repeat('<ul><li>', $diff);
                } elseif ($diff < 0) {
                    $list_content .= str_repeat('</li></ul></li>', -$diff);
                    $list_content .= '<li>';
                } else {
                    if (!is_null($current_level)) $list_content .= '</li>';
                    $list_content .= '<li>';
                }

                $depth += $diff;
                $list_content .= $formatter->buildTag('link', $menu_item['text'], array(
                    'href'  => '#'.$_item_id,
                    'title' => isset($attributes['toc_item_title']) ? $attributes['toc_item_title'] : $cfg_toc_item_title,
                ));
                $current_level = $menu_item['level'];
            }

            if ($depth!=0) {
                $list_content .= str_repeat('</ul></li>', $depth);
            }

            $content .= $formatter->buildTag('title', $cfg_toc_title, array(
                'level'     => isset($attributes['toc_title_level']) ? $attributes['toc_title_level'] : $cfg_toc_title_level,
                'id'        => isset($attributes['toc_id']) ? $attributes['toc_id'] : $cfg_toc_id,
                'no-addon'  => true
            ));

            $content .= $formatter->buildTag('unordered_list', $list_content, array(
                'class'     => isset($attributes['class']) ? $attributes['class'] : $cfg_toc_class,
            ));

        }
        return $content;
    }
300831
public function signToField($to)
    {
        return array_map(function ($recipient) {
            $bits = explode(':', $recipient);
            $recipient_feed = $this->client->feed($bits[0], $bits[1]);
            $recipient_token = $recipient_feed->getToken();

            return "$recipient $recipient_token";
        }, $to);
    }
1327594
protected function convertEncoding($string, $to, $from)
    {
        $result = '';
        if (function_exists('iconv')) {
            $result = iconv($from, $to, $string);
        } elseif (function_exists('mb_convert_encoding')) {
            $result = mb_convert_encoding($string, $to, $from);
        } else {
            throw new \RuntimeException(
                get_class($this)
                . ' requires either the iconv or mbstring extension to be installed'
                . ' when escaping for non UTF-8 strings.'
            );
        }

        if ($result === false) {
            return ''; // return non-fatal blank string on encoding errors from users
        }
        return $result;
    }
385013
public function compile($to){
		copy($this->path->skeleton, $to);
		$epub = new \ZipArchive();
		if( true === $epub->open($to) ){
			$this->deliver($epub, $this->temp_dir);
		}
	}
87737
public static function nested($to = 1)
    {
        static::$to = $to;
        static::$nested = is_numeric($to) ? $to : false;

        return new self();
    }
1003475
public function seeResponseCodeIsBetween($from, $to)
    {
        $failureMessage = sprintf(
            'Expected HTTP Status Code between %s and %s. Actual Status Code: %s',
            HttpCode::getDescription($from),
            HttpCode::getDescription($to),
            HttpCode::getDescription($this->getResponseStatusCode())
        );
        $this->assertGreaterThanOrEqual($from, $this->getResponseStatusCode(), $failureMessage);
        $this->assertLessThanOrEqual($to, $this->getResponseStatusCode(), $failureMessage);
    }
325570
private function getInstanceCode(Instance $instance) : Code
    {
        $node = ($this->normalizer)($instance->value);

        return new Code(new Node\Stmt\Return_($node), false);
    }