Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Last active August 29, 2015 13:57
Show Gist options
  • Save StanAngeloff/9390347 to your computer and use it in GitHub Desktop.
Save StanAngeloff/9390347 to your computer and use it in GitHub Desktop.
Vim Fuzzy completions
<?php
private array $list;
|
V
/**
* @var array
*/
private $list;
# -----------------------------------------------------
$timezone?->getName()
$property->timezone?->getName()
|
V
(isset ($timezone) ? $timezone->getName() : null)
(isset ($property->timezone) ? $property->timezone->getName() : null)
# -----------------------------------------------------
return $this->eventDispatcher = new EventDispatcher();
|
V
if ($this->eventDispatcher === null) {
$this->eventDispatcher = new EventDispatcher();
}
return $this->eventDispatcher;
# -----------------------------------------------------
if isset $this->repository $this->eventDispatcher
|
V
if (isset ($this->repository) && isset ($this->eventDispatcher)) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment