Does the actual work on the concrete and configured checks.

@param $checkList [CheckInterface]

@return CheckOutcome[]
490364
private function doChecks(array $checkList)
    {
        $retValue = array();
        if (empty($checkList)) {
            $retValue[] = new CheckOutcome('message.nochecks', array(), CheckOutcome::NOTICE);

            return $retValue;
        }

        /** @var CheckInterface $check */
        foreach ($checkList as $check) {
            try {
                $retValue = array_merge($retValue, $check->performCheck());
            } catch (\Exception $e) {
                $retValue[] = new CheckOutcome(
                    'message.exception',
                    array('%0%' => $e->getMessage()),
                    CheckOutcome::EXCEPTION
                );
            }
        }
        if (empty($retValue)) {
            $retValue[] = new CheckOutcome('message.nooutcome', array(), CheckOutcome::NOTICE);
        }

        return $retValue;
    }
244534
public function getPendingSchedules(array $whitelist = array(), array $blacklist = array())
    {
        $pendingSchedules = Mage::getModel('cron/schedule')->getCollection()
            ->addFieldToFilter('status', Aoe_Scheduler_Model_Schedule::STATUS_PENDING)
            ->addFieldToFilter('scheduled_at', array('lt' => strftime('%Y-%m-%d %H:%M:%S', time())))
            ->addOrder('scheduled_at', 'ASC');

        $whitelist = array_filter(array_map('trim', $whitelist));
        if (!empty($whitelist)) {
            $pendingSchedules->addFieldToFilter('job_code', array('in' => $whitelist));
        }

        $blacklist = array_filter(array_map('trim', $blacklist));
        if (!empty($blacklist)) {
            $pendingSchedules->addFieldToFilter('job_code', array('nin' => $blacklist));
        }

        return $pendingSchedules;
    }
257590
private function formatWhitelist(array $whitelist): array
    {
        if (array_values($whitelist) === $whitelist) {
            return $whitelist;
        }
        foreach ($whitelist as $name => $value) {
            if (null === $value) {
                unset($whitelist[$name]);
                $whitelist[] = $name;
            }
        }

        return $whitelist;
    }
732647
function checkout() {
		if (isset($_SESSION[$this->key])) {
			$out=$_SESSION[$this->key];
			unset($_SESSION[$this->key]);
			return $out;
		}
		return [];
	}
914891
def after_check
      @checkers.each do |checker|
        after_check_callbacks = checker.class.get_callbacks(:after_check)
        after_check_callbacks.each do |block|
          checker.instance_exec &block
        end
      end
    end
122695
public function changed($blacklist = []) {
		$changed = false;
		foreach($this->fields as $k => $v) {
			if( ! isset($blacklist[$k]) && array_key_exists($k, $this->initial_values ) &&
				$v != $this->initial_values[$k]
				){
				$changed = true;
			break;
			}
		}
		return $changed;
	}
582505
public function getListInstallerCommands($returnList = true) {
		$commandsList = $this->_getListInstallerCommandsFull();
		$installerCommands = $this->_getConfigValueArray('installerCommands');
		$result = array_intersect_key($commandsList, array_flip($installerCommands));
		if ($returnList) {
			$result = array_keys($result);
		}

		return $result;
	}
436435
public static function validate($checkType, $value)
    {
        if (array_key_exists($checkType, self::$checks)) {
            if (empty(self::$checks[$checkType])) {
                $blnReturn = true;
            } else {
                if (is_array($value)) {
                    $arrValues = $value;
                    $blnSub = true;
                    foreach ($arrValues as $value) {
                        $blnSub = preg_match(self::$checks[$checkType], $value);
                        if (! $blnSub) {
                            // *** At least 1 value is not valid, skip the rest and return false;
                            exit();
                        }
                    }

                    $blnReturn = $blnSub;
                } else {
                    $blnReturn = preg_match(self::$checks[$checkType], $value);
                }
            }
        } else {
            if (empty($checkType)) {
                $blnReturn = true; // No custom validation set.
            } else {
                $blnReturn = @preg_match($checkType, $value); // Use custom validation
            }
        }

        return $blnReturn;
    }
751044
public function checkoutAllRemoteBranches($remote = 'origin')
    {
        $actualBranch = $this->getMainBranch();
        $actualBranches = $this->getBranches(true, false);
        $allBranches = $this->getBranches(true, true);
        $realBranches = array_filter(
            $allBranches,
            function (string $branch) use ($actualBranches) {
                return !in_array($branch, $actualBranches)
                && preg_match('/^remotes(.+)$/', $branch)
                && !preg_match('/^(.+)(HEAD)(.*?)$/', $branch);
            }
        );

        foreach ($realBranches as $realBranch) {
            $this->checkout(str_replace(sprintf('remotes/%s/', $remote), '', $realBranch));
        }

        $this->checkout($actualBranch);

        return $this;
    }
149273
public function checkboxes(FieldContract $field)
    {
        return $this->form->checkboxes(
                        $field->get('name'), $field->get('options'), $field->get('checked'), $field->get('attributes')
        );
    }
458984
public function check()
	{
		$this->checked	= TRUE;
		$this->methods	= array();
		$matches		= array();
		$content		= FS_File_Reader::load( $this->fileName );
		if( preg_match( "@class @i", $content ) )
			if( preg_match_all( "@\tfunction (& *)?([a-z][a-z0-9]+)@i", $content, $matches ) )
				foreach( $matches[2] as $match )
					$this->methods[]	= $match;
		return empty( $this->methods );
	}
316820
public function isChecked()
    {
        if (null == $this->checked) {
            $this->checked = StaticFilter::filter(
                Boolean::class,
                $this->getValue()
            );
        }
        return $this->checked;
    }
851502
protected function getPaymentMethodsCheckout()
    {
        $list = $this->payment->getList(array('status' => true));
        $this->prepareMethodsCheckout($list);
        return $list;
    }
1231665
public function checkFile($file)
    {
        $result = $this->execute(new Process([$this->getCli(), '-l', $file]));

        if (0 === $result['code']) {
            return [
                'validity' => true,
                'errors' => null
            ];
        }

        $fullMessage = \preg_replace('/ in (?:.+) on line (?:[0-9]+)$/', '', $result['output']);
        \preg_match('/ on line ([0-9]+)$/', $result['output'], $matchLine);
        $line = isset($matchLine[1]) ? \intval($matchLine[1]) : null;

        list($type, $message) = \explode(': ', $fullMessage);

        return [
            'validity' => false,
            'errors' => [
                [
                    'file' => $file,
                    'code' => $result['code'],
                    'line' => $line,
                    'type' => $type,
                    'message' => $this->convertMessage($message)
                ],
            ],
        ];
    }
522801
public function generateAll($checkPreviousBundle = false)
    {
        $this->generateServerBundles();
        $files = $this->generateClientBundles($checkPreviousBundle);
        return $files;
    }
486631
public function checkRequirements(): array
    {
        $results = [];

        $this->checkVersion($results, 'php','php', $this->requires['php'], PHP_VERSION);
        $this->checkVersion($results, 'grav', 'grav', $this->requires['grav'], GRAV_VERSION);
        $this->checkPlugins($results, $this->requires['plugins']);

        return $results;
    }
475663
protected static function getCheckoutBody(CheckoutInterface $checkout): array
    {
        return [
            "checkout_reference" => $checkout->getReference(),
            "amount" => $checkout->getAmount(),
            "currency" => $checkout->getCurrency(),
            "fee_amount" => $checkout->getFeeAmount(),
            "pay_to_email" => $checkout->getPayToEmail(),
            "pay_from_email" => $checkout->getPayFromEmail(),
            "description" => $checkout->getDescription(),
            "return_url" => $checkout->getRedirectUrl(),
        ];
    }