- Vem kód,
- forkni ho,
- přidej 2 chyby.
Pak forky projedu a pospojuju.
Cílem je soubor o ~100 řádcích, tak přidávej metody a třídy!
<?php | |
const INDEX_NAME = 'users'; | |
$dataSource = new class($this->elasticClient) extends ElasticsearchDataSource | |
{ | |
public function __construct(Client $elasticClient) | |
{ | |
parent::__construct( | |
$elasticClient, |
<?php | |
interface FuelType | |
{ | |
} | |
class Gas implements FuelType | |
{ | |
public function burn(int $litres) {} |
<?php | |
/** | |
* @param int $item_id | |
* @param int|NULL $prev_id | |
* @param int|NULL $next_id | |
* @return void | |
*/ | |
public function handleSort($item_id, $prev_id, $next_id) | |
{ |
<?php | |
namespace App\Presenters; | |
use Nette\Application\UI\Form; | |
class HomepagePresenter extends BasePresenter | |
{ | |
public function createComponentForm($name) |