Skip to content

Commit d8c7ad8

Browse files
committedJan 25, 2015
typos
1 parent b713574 commit d8c7ad8

6 files changed

+10
-10
lines changed
 

‎src/Application/Application.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ class Application extends Nette\Object
3131
/** @var string */
3232
public $errorPresenter;
3333

34-
/** @var array of function(Application $sender); Occurs before the application loads presenter */
34+
/** @var callable[] function(Application $sender); Occurs before the application loads presenter */
3535
public $onStartup;
3636

37-
/** @var array of function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down */
37+
/** @var callable[] function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down */
3838
public $onShutdown;
3939

40-
/** @var array of function(Application $sender, Request $request); Occurs when a new request is received */
40+
/** @var callable[] function(Application $sender, Request $request); Occurs when a new request is received */
4141
public $onRequest;
4242

43-
/** @var array of function(Application $sender, Presenter $presenter); Occurs when a presenter is created */
43+
/** @var callable[] function(Application $sender, Presenter $presenter); Occurs when a presenter is created */
4444
public $onPresenter;
4545

46-
/** @var array of function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch */
46+
/** @var callable[] function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch */
4747
public $onResponse;
4848

49-
/** @var array of function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
49+
/** @var callable[] function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
5050
public $onError;
5151

5252
/** @var Request[] */

‎src/Application/UI/Presenter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ abstract class Presenter extends Control implements Application\IPresenter
4848
/** @var int */
4949
public $invalidLinkMode;
5050

51-
/** @var array of function(Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down */
51+
/** @var callable[] function(Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down */
5252
public $onShutdown;
5353

5454
/** @var Nette\Application\Request */

‎tests/Application.Latte/Compiler.extension.phpt ‎tests/Application.DI/LatteExtension.basic.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Test: Nette\DI\Compiler: services setup.
4+
* Test: LatteExtension.
55
*/
66

77
use Nette\DI,
@@ -74,7 +74,7 @@ latte:
7474
$compiler = new DI\Compiler;
7575
$compiler->addExtension('latte', new Nette\Bridges\ApplicationDI\LatteExtension(NULL, FALSE));
7676
$compiler->addExtension('another', new AnotherExtension);
77-
$code = $compiler->compile($config, 'Container', 'Nette\DI\Container');
77+
$code = $compiler->compile($config, 'Container');
7878
eval($code);
7979

8080
$container = new Container;

‎tests/Application.Routers/RoutingExtension.basic.phpt ‎tests/Application.DI/RoutingExtension.basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test(function() {
2929
$container = new Container1;
3030
$router = $container->getService('router');
3131
Assert::type('Nette\Application\Routers\RouteList', $router);
32-
Assert::same(2, count($router));
32+
Assert::count(2, $router);
3333
Assert::same('index.php', $router[0]->getMask());
3434
Assert::same('item/<id>', $router[1]->getMask());
3535
});

0 commit comments

Comments
 (0)