Skip to content

Commit c6ea262

Browse files
committed
typos & fixes
1 parent 5ed802f commit c6ea262

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

src/Application/MicroPresenter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class MicroPresenter extends Nette\Object implements Application\IPresenter
2828
/** @var Nette\Http\IRequest|NULL */
2929
private $httpRequest;
3030

31-
/** @var IRouter|NULL */
31+
/** @var ApplicationIRouter|NULL */
3232
private $router;
3333

3434
/** @var Application\Request */
3535
private $request;
3636

3737

38-
public function __construct(Nette\DI\Container $context = NULL, Http\IRequest $httpRequest = NULL, IRouter $router = NULL)
38+
public function __construct(Nette\DI\Container $context = NULL, Http\IRequest $httpRequest = NULL, ApplicationIRouter $router = NULL)
3939
{
4040
$this->context = $context;
4141
$this->httpRequest = $httpRequest;
@@ -97,7 +97,7 @@ public function run(Application\Request $request)
9797
if ($response[0] instanceof \SplFileInfo) {
9898
$response->setFile($response[0]);
9999
} else {
100-
$response->setSource($response[0]); // TODO
100+
$response->setSource($response[0]);
101101
}
102102
}
103103
if ($response instanceof Application\UI\ITemplate) {

src/Application/Routers/Route.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public function constructUrl(Application\Request $appRequest, Nette\Http\Url $re
404404
}
405405

406406
if (strpos($url, '//', 2) !== FALSE) {
407-
return NULL; // TODO: implement counterpart in match() ?
407+
return NULL;
408408
}
409409

410410
$url = ($this->flags & self::SECURED ? 'https:' : 'http:') . $url;
@@ -740,8 +740,7 @@ private static function path2action($s)
740740
{
741741
$s = strtolower($s);
742742
$s = preg_replace('#-(?=[a-z])#', ' ', $s);
743-
$s = substr(ucwords('x' . $s), 1);
744-
//$s = lcfirst(ucwords($s));
743+
$s = lcfirst(ucwords($s));
745744
$s = str_replace(' ', '', $s);
746745
return $s;
747746
}

src/Application/UI/Presenter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function run(Application\Request $request)
227227
// continue with shutting down
228228
if ($this->isAjax()) try {
229229
$hasPayload = (array) $this->payload; unset($hasPayload['state']);
230-
if ($this->response instanceof Responses\TextResponse && $this->isControlInvalid()) { // snippets - TODO
230+
if ($this->response instanceof Responses\TextResponse && $this->isControlInvalid()) {
231231
$this->snippetMode = TRUE;
232232
$this->response->send($this->httpRequest, $this->httpResponse);
233233
$this->sendPayload();
@@ -867,7 +867,7 @@ protected function createRequest($component, $destination, array $args, $mode)
867867
throw new InvalidLinkException("Unable to pass parameters to 'this!' signal.");
868868
}
869869

870-
} elseif (strpos($signal, self::NAME_SEPARATOR) === FALSE) { // TODO: AppForm exception
870+
} elseif (strpos($signal, self::NAME_SEPARATOR) === FALSE) {
871871
// counterpart of signalReceived() & tryCall()
872872
$method = $component->formatSignalMethod($signal);
873873
if (!$reflection->hasCallableMethod($method)) {
@@ -898,7 +898,7 @@ protected function createRequest($component, $destination, array $args, $mode)
898898
$action = self::DEFAULT_ACTION;
899899
}
900900

901-
$current = ($action === '*' || strcasecmp($action, $this->action) === 0) && $presenterClass === get_class($this); // TODO
901+
$current = ($action === '*' || strcasecmp($action, $this->action) === 0) && $presenterClass === get_class($this);
902902

903903
$reflection = new PresenterComponentReflection($presenterClass);
904904
if ($args || $destination === 'this') {

src/Application/UI/PresenterComponentReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PresenterComponentReflection extends Nette\Reflection\ClassType
3535
*/
3636
public function getPersistentParams($class = NULL)
3737
{
38-
$class = $class === NULL ? $this->getName() : $class; // TODO
38+
$class = $class === NULL ? $this->getName() : $class;
3939
$params = & self::$ppCache[$class];
4040
if ($params !== NULL) {
4141
return $params;

0 commit comments

Comments
 (0)