Skip to content

Commit 6d5d345

Browse files
committed
fixed phpDoc
1 parent 46606c4 commit 6d5d345

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

src/Application/PresenterFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function formatPresenterClass($presenter)
136136
/**
137137
* Formats presenter name from class name.
138138
* @param string
139-
* @return string
139+
* @return string|NULL
140140
* @internal
141141
*/
142142
public function unformatPresenterClass($class)
@@ -148,6 +148,7 @@ public function unformatPresenterClass($class)
148148
. preg_replace("#$mapping[1]#iA", '$1:', $matches[1]) . $matches[3];
149149
}
150150
}
151+
return NULL;
151152
}
152153

153154
}

src/Application/Routers/CliRouter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ public function match(Nette\Http\IRequest $httpRequest)
9595

9696
/**
9797
* This router is only unidirectional.
98-
* @return NULL
98+
* @return void
9999
*/
100100
public function constructUrl(Application\Request $appRequest, Nette\Http\Url $refUrl)
101101
{
102-
return NULL;
103102
}
104103

105104

src/Application/UI/ComponentReflection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,18 @@ public function getAnnotation($name)
266266
}
267267

268268

269+
/**
270+
* @return MethodReflection
271+
*/
269272
public function getMethod($name)
270273
{
271274
return new MethodReflection($this->getName(), $name);
272275
}
273276

274277

278+
/**
279+
* @return MethodReflection[]
280+
*/
275281
public function getMethods($filter = -1)
276282
{
277283
foreach ($res = parent::getMethods($filter) as $key => $val) {

src/Application/UI/ITemplate.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ function render();
2222

2323
/**
2424
* Sets the path to the template file.
25-
* @return void
25+
* @param string
26+
* @return static
2627
*/
2728
function setFile($file);
2829

2930
/**
3031
* Returns the path to the template file.
31-
* @return string
32+
* @return string|NULL
3233
*/
3334
function getFile();
3435

src/Application/UI/Presenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function sendTemplate()
472472

473473
/**
474474
* Finds layout template file name.
475-
* @return string
475+
* @return string|NULL
476476
* @internal
477477
*/
478478
public function findLayoutTemplateFile()
@@ -775,7 +775,7 @@ public function lastModified($lastModified, $etag = NULL, $expire = NULL)
775775
* @param string destination in format "[//] [[[module:]presenter:]action | signal! | this] [#fragment]"
776776
* @param array array of arguments
777777
* @param string forward|redirect|link
778-
* @return string URL
778+
* @return string|NULL URL
779779
* @throws InvalidLinkException
780780
* @internal
781781
*/

src/Bridges/ApplicationLatte/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function setFile($file)
130130

131131

132132
/**
133-
* @return string
133+
* @return string|NULL
134134
*/
135135
public function getFile()
136136
{

src/Bridges/ApplicationLatte/UIMacros.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* - {link destination ...} control link
2222
* - {plink destination ...} presenter link
2323
* - {snippet ?} ... {/snippet ?} control snippet
24-
* - n:once
24+
* - n:nonce
2525
*/
2626
class UIMacros extends Latte\Macros\MacroSet
2727
{

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function test(\Closure $function)
2929

3030
class Notes
3131
{
32-
static public $notes = [];
32+
public static $notes = [];
3333

3434
public static function add($message)
3535
{

0 commit comments

Comments
 (0)