confirms a queue definition

@param \AMQP\Wire\Reader $args

@return array
184868
protected function queueDeclareOk(\AMQP\Wire\Reader $args)
    {
        $queue = $args->readShortstr();
        $messageCount = $args->readLong();
        $consumerCount = $args->readLong();

        return array($queue, $messageCount, $consumerCount);
    }
1309777
public function all($args = null)
    {
        $this->areArgumentsValid($args, ['filter', 'page', 'pageSize', 'startdate', 'enddate', 'updatedAfterDate', 'completedAfterDate', 'completedBeforeDate', 'showDeleted', 'includeCompletedTasks', 'includeCompletedSubtasks', 'creator-ids', 'include', 'responsible-party-ids', 'sort', 'getSubTasks', 'nestSubTasks', 'getFiles', 'dataSet', 'includeToday', 'ignore-start-date']);

        return $this->client->get($this->endpoint, $args)->response();
    }
658212
private function cmdAutoload($args)
    {
        $cmd = new AutoloadCommand($this->cwd);

        return $cmd->run(array_slice($args, 1));
    }
754703
protected function ls($args) {
		$target = $args['target'];
		
		if (($volume = $this->volume($target)) == false
		|| ($list = $volume->ls($target)) === false) {
			return array('error' => $this->error(self::ERROR_OPEN, '#'.$target));
		}
		return array('list' => $list);
	}
333652
function get($args)
    {
        $cache = $this->get_cache();
        $data  = $cache->read($args['id']);

        if ($data !== null && $data !== false) {
            $args['data'] = base64_decode($data);
            $args['status'] = true;
        }
        else {
            $args['status'] = false;
        }

        return $args;
    }
607818
public function bootstrapHeading2Function(array $args = []) {
        return $this->bootstrapHeading(2, ArrayHelper::get($args, "content"), ArrayHelper::get($args, "description"), ArrayHelper::get($args, "class"));
    }
314805
public function validate($args)
    {
        $check = $this->normalizeArgs(is_array($args) ? $args : []);

        return is_array($check) ? true : $check;
    }
358974
protected function processArguments(array $args) {
		$definition = [];
		
		foreach ($args as $arg) {
			if ($arg->getName() !== 'argument') {
				throw new InvalidConfig('Unknown element "' . $arg->getName() . '" in arguments definition', null, null, $arg);
			}

			$definition[] = $this->processArgument($arg);
		}
		
		return $definition;
	}
1289458
public function unknown_positionals( $args ) {
		$positional_repeating = $this->query_spec(
			array(
				'type'      => 'positional',
				'repeating' => true,
			)
		);

		// At least one positional supports as many as possible.
		if ( ! empty( $positional_repeating ) ) {
			return array();
		}

		$positional = $this->query_spec(
			array(
				'type'      => 'positional',
				'repeating' => false,
			)
		);

		return array_slice( $args, count( $positional ) );
	}
1336192
protected function openOk(Reader $args)
    {
        $this->knownHosts = $args->readShortstr();
        if ($this->debug) {
            Helper::debugMsg("Open OK! known_hosts: " . $this->knownHosts);
        }

        return null;
    }
1253930
public function output($args = null) {
        // calculate diff
        $diff = $this->end->diff($this->begin);

        // decide stuff
        $msg = [];
        if($diff->d > 0) $msg[] = $this->plural($diff->d, 'd');
        if($diff->h > 0) $msg[] = $this->plural($diff->h, 'h');
        if($diff->i > 0) $msg[] = $this->plural($diff->i, 'i');
        $msg[] = $this->plural($diff->s);

        // return stuff
        return $this->str_lreplace(',', ' ' . __d('Unimatrix/cake', 'and'), implode(', ', $msg));
    }
590006
protected function getServiceByArgs($args) {
		$args = $this->normalizeArgs($args);
		$id   = $this->getIdByArgs($args);
		$args = $this->processArgs($args);
			
		if (! isset($this->servicesByArgs[$id])) {
			$this->servicesByArgs[$id] = $this->initService($args);
		}

		return $this->servicesByArgs[$id];
	}
258008
protected function parseArguments(array $args)
    {
        $output = [];

        foreach ($args as $arg) {
            if (is_string($arg) && strpos($arg, '@') === 0) {
                $service = substr($arg, 1);
                $output[] = $this->container->get($service);

                continue;
            }

            $output[] = $arg;
        }

        return $output;
    }
1300001
public static function extractArgs(array $args, ?PaginationType $paginationType, ?int $paginateMaxCount): array
    {
        if ($paginationType->isConnection()) {
            /** @var int $first */
            $first = $args['first'];
            $page = self::calculateCurrentPage(
                $first,
                Cursor::decode($args)
            );
        } else {
            /** @var int $first */
            $first = $args[config('lighthouse.pagination_amount_argument')];
            $page = Arr::get($args, 'page', 1);
        }

        if ($first <= 0) {
            throw new Error(
                "Requested pagination amount must be more than 0, got $first"
            );
        }

        // Make sure the maximum pagination count is not exceeded
        if (
            $paginateMaxCount !== null
            && $first > $paginateMaxCount
        ) {
            throw new Error(
                "Maximum number of {$paginateMaxCount} requested items exceeded. Fetch smaller chunks."
            );
        }

        return [$first, $page];
    }
103499
protected function queueMacro($method, $args)
    {
        $result = $this->callMacro($method, $args);

        if ($result instanceof Buildable) {
            $this->queue($result);
        }

        return $result;
    }
509599
private function getParams(array $args)
    {
        if (count($args) == 0) {
            return [];
        }

        $params = array_slice($args, -1)[0];

        return is_array($params) ? $params : [];
    }
679908
private function cmdClone($args)
    {
        $cmd = new CloneCommand($this->cwd);

        return $cmd->run(array_slice($args, 1));
    }