- version 3.6
Check those constraints:
$this->anything()
<?php | |
namespace Kdyby\Control; | |
use Nette; | |
use Nette\String; | |
class LookoutControl extends Nette\Application\Control |
<?php | |
class AbstractManagerBase extends \PHPUnit_Framework_TestCase | |
{ | |
protected function getEmMock() | |
{ | |
$emMock = $this->getMock('\Doctrine\ORM\EntityManager', | |
array('getRepository', 'getClassMetadata', 'persist', 'flush'), array(), '', false); | |
$emMock->expects($this->any()) | |
->method('getRepository') |
<?php | |
class Timer { | |
public static $time = array(); | |
public static $last; | |
public static function start($name = NULL) { | |
static $i = 0; |
<?php | |
use Nette\Application\UI; | |
use Nette\Reflection\Method; | |
class BasePresenter extends UI\Presenter | |
{ | |
/** @var array datasets for Multipliers */ |
Function::partial = (part_args...) -> \ | |
fun = @ \ | |
(args...) -> fun.apply(@, [part_args..., args...]) | |
f = (a,b) -> "#{a} >>>> #{b}" | |
f 'A', 'B' # outputs: 'A >>>> B' | |
pf = f.partial "XXX" |
<?php | |
namespace UserModule; | |
use FixFacebook; | |
class FacebookPresenter extends AbstractSignPresenter | |
{ | |
public function actionLogin() |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1000)
<?php | |
namespace ApiModule; | |
use Nette, | |
Nette\Application\Request; | |
class Router extends Nette\Object implements Nette\Application\IRouter | |
{ |