Skip to content

Commit e7bac8f

Browse files
authored
Update LibraryBase.php
rectify typo
1 parent 5caf5b7 commit e7bac8f

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/SPC/builder/LibraryBase.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,6 @@ public function tryBuild(bool $force_build = false): int
261261
return LIB_STATUS_ALREADY;
262262
}
263263

264-
/**
265-
* Patch before build, overwrite this and return true to patch libs.
266-
*/
267-
public function patchBeforeBuild(): bool
268-
{
269-
return false;
270-
}
271-
272264
public function validate(): void
273265
{
274266
// do nothing, just throw wrong usage exception if not valid
@@ -294,10 +286,21 @@ public function beforePack(): void
294286
// do something before pack, default do nothing. overwrite this method to do something (e.g. modify pkg-config file)
295287
}
296288

289+
/**
290+
* Patch code before build
291+
* If you need to patch some code, overwrite this
292+
* return true if you patched something, false if not
293+
*/
294+
public function patchBeforeBuild(): bool
295+
{
296+
return false;
297+
}
298+
299+
297300
/**
298301
* Patch code before ./buildconf
299302
* If you need to patch some code, overwrite this
300-
* return true if you patched something, false if notand return true
303+
* return true if you patched something, false if not
301304
*/
302305
public function patchBeforeBuildconf(): bool
303306
{

0 commit comments

Comments
 (0)