Skip to content

Commit e4658dc

Browse files
committed
typo
1 parent 8e4167b commit e4658dc

10 files changed

+28
-32
lines changed

src/Engine/Finder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ protected function getName($path)
6666

6767
/**
6868
* Returns file extension.
69-
* @param File
70-
* @param string[]
69+
* @param File $file
70+
* @param string[] $extensions
7171
* @return string
7272
* @throws Exception
7373
*/

src/Engine/OrderResolver.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
class OrderResolver
2020
{
2121
/**
22-
* @param Migration[]
23-
* @param Group[]
24-
* @param File[]
25-
* @param string
22+
* @param Migration[] $migrations
23+
* @param Group[] $groups
24+
* @param File[] $files
25+
* @param string $mode
2626
* @return File[]
2727
* @throws Exception
2828
*/
@@ -98,7 +98,7 @@ public function resolve(array $migrations, array $groups, array $files, $mode)
9898

9999

100100
/**
101-
* @param File[]
101+
* @param File[] $files
102102
* @return File[] sorted
103103
*/
104104
protected function sortFiles(array $files)
@@ -154,7 +154,7 @@ protected function getFlatFiles(array $files)
154154

155155

156156
/**
157-
* @param Group[]
157+
* @param Group[] $groups
158158
* @return void
159159
* @throws Exception
160160
*/

src/Engine/Runner.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function addGroup(Group $group)
6464

6565

6666
/**
67-
* @param string
68-
* @param IExtensionHandler
67+
* @param string $extension
68+
* @param IExtensionHandler $handler
6969
* @return self
7070
*/
7171
public function addExtensionHandler($extension, IExtensionHandler $handler)
@@ -80,7 +80,8 @@ public function addExtensionHandler($extension, IExtensionHandler $handler)
8080

8181

8282
/**
83-
* @param string self::MODE_CONTINUE|self::MODE_RESET|self::MODE_INIT
83+
* @param string $mode self::MODE_CONTINUE|self::MODE_RESET|self::MODE_INIT
84+
* @return void
8485
*/
8586
public function run($mode = self::MODE_CONTINUE)
8687
{
@@ -124,7 +125,7 @@ public function run($mode = self::MODE_CONTINUE)
124125

125126

126127
/**
127-
* @param string
128+
* @param string $name
128129
* @return IExtensionHandler
129130
*/
130131
public function getExtension($name)
@@ -137,7 +138,7 @@ public function getExtension($name)
137138

138139

139140
/**
140-
* @param File
141+
* @param File $file
141142
* @return int number of executed queries
142143
*/
143144
protected function execute(File $file)

src/Extensions/PhpHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PhpHandler implements IExtensionHandler
2323
private $params = [];
2424

2525
/**
26-
* @param array $params name => value
26+
* @param array $params name => value
2727
*/
2828
public function __construct(array $params = [])
2929
{

src/IDriver.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ function dropTable();
8686

8787
/**
8888
* Inserts migration info into migration table.
89-
* @param Migration
89+
* @param Migration $migration
9090
*/
9191
function insertMigration(Migration $migration);
9292

9393

9494
/**
9595
* Updated migration as executed.
96-
* @param Migration
96+
* @param Migration $migration
9797
*/
9898
function markMigrationAsReady(Migration $migration);
9999

@@ -114,7 +114,7 @@ function getInitTableSource();
114114

115115
/**
116116
* Returns source code for migration table data initialization.
117-
* @param File[]
117+
* @param File[] $files
118118
* @return string
119119
*/
120120
function getInitMigrationsSource(array $files);

src/IExtensionHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
interface IExtensionHandler
2020
{
2121
/**
22-
* @param File
22+
* @param File $file
2323
* @return int number of queries
2424
*/
2525
function execute(File $file);

src/IPrinter.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ function printReset();
2525

2626
/**
2727
* List of migrations which should be executed has been completed.
28-
* @param File[]
28+
* @param File[] $toExecute
2929
*/
3030
function printToExecute(array $toExecute);
3131

3232

3333
/**
3434
* A migration has been successfully executed.
35-
* @param File
36-
* @param int number of executed queries
35+
* @param File $file
36+
* @param int $count number of executed queries
3737
*/
3838
function printExecute(File $file, $count);
3939

@@ -46,14 +46,14 @@ function printDone();
4646

4747
/**
4848
* An error has occurred during execution of a migration.
49-
* @param Exception
49+
* @param Exception $e
5050
*/
5151
function printError(Exception $e);
5252

5353

5454
/**
5555
* Prints init source code.
56-
* @param string
56+
* @param string $code
5757
*/
5858
function printSource($code);
5959

src/Printers/Console.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function printSource($code)
7979

8080
/**
8181
* Prints text to a console, optionally in a specific color.
82-
* @param string
83-
* @param string|NULL self::COLOR_*
82+
* @param string $s
83+
* @param string|NULL $color self::COLOR_*
8484
*/
8585
protected function output($s, $color = NULL)
8686
{

src/Printers/HtmlDump.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function printSource($code)
7676

7777

7878
/**
79-
* @param string HTML string
80-
* @param string
79+
* @param string $s HTML string
80+
* @param string $class
8181
* @return void
8282
*/
8383
protected function output($s, $class = 'info')

tests/inc/TestPrinter.php

-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ class TestPrinter extends Console
1414
public $out = '';
1515

1616

17-
/**
18-
* Prints text to a console, optionally in a specific color.
19-
* @param string
20-
* @param string|NULL self::COLOR_*
21-
*/
2217
protected function output($s, $color = NULL)
2318
{
2419
$this->lines[] = $s;

0 commit comments

Comments
 (0)