mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Style fixes
This commit is contained in:
parent
3a219a591d
commit
afe26fb8e1
6 changed files with 8 additions and 12 deletions
11
RoboFile.php
11
RoboFile.php
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Robo\Collection\CollectionBuilder;
|
||||
use Robo\Result;
|
||||
|
||||
const BASE = __DIR__.\DIRECTORY_SEPARATOR;
|
||||
|
@ -166,7 +165,7 @@ class RoboFile extends \Robo\Tasks {
|
|||
(IS_WIN && (!exec(escapeshellarg($bin)." --help $blackhole", $junk, $status) || $status))
|
||||
|| (!IS_WIN && (!exec("which ".escapeshellarg($bin)." $blackhole", $junk, $status) || $status))
|
||||
) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -283,7 +282,7 @@ class RoboFile extends \Robo\Tasks {
|
|||
* The commit to package may be any Git tree-ish identifier: a tag, a branch,
|
||||
* or any commit hash. If none is provided on the command line, Robo will prompt
|
||||
* for a commit to package; the default is "HEAD".
|
||||
*
|
||||
*
|
||||
* The Arch base-devel group should be installed for this.
|
||||
*/
|
||||
public function packageArch(string $commit = null): Result {
|
||||
|
@ -317,7 +316,7 @@ class RoboFile extends \Robo\Tasks {
|
|||
* The commit to package may be any Git tree-ish identifier: a tag, a branch,
|
||||
* or any commit hash. If none is provided on the command line, Robo will prompt
|
||||
* for a commit to package; the default is "HEAD".
|
||||
*
|
||||
*
|
||||
* The pbuilder tool should be installed for this.
|
||||
*/
|
||||
public function packageDeb(string $commit = null): Result {
|
||||
|
@ -404,7 +403,7 @@ class RoboFile extends \Robo\Tasks {
|
|||
* The commit to package may be any Git tree-ish identifier: a tag, a branch,
|
||||
* or any commit hash. If none is provided on the command line, Robo will prompt
|
||||
* for a commit to package; the default is "HEAD".
|
||||
*
|
||||
*
|
||||
* Generic release tarballs will always be generated, but distribution-specific
|
||||
* packages are skipped when the required tools are not available
|
||||
*/
|
||||
|
@ -416,7 +415,7 @@ class RoboFile extends \Robo\Tasks {
|
|||
// determine whether the distribution-specific packages can be built
|
||||
$dist = [
|
||||
'Arch' => $this->toolExists("git", "makepkg", "updpkgsums"),
|
||||
'Deb' => $this->toolExists("git", "sudo", "pbuilder"),
|
||||
'Deb' => $this->toolExists("git", "sudo", "pbuilder"),
|
||||
];
|
||||
// start a collection
|
||||
$t = $this->collectionBuilder();
|
||||
|
|
|
@ -57,4 +57,4 @@ trait MySQLCommon {
|
|||
}
|
||||
$db->query("SET FOREIGN_KEY_CHECKS=1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ declare(strict_types=1);
|
|||
namespace JKingWeb\Arsse\Test\DatabaseDrivers;
|
||||
|
||||
use JKingWeb\Arsse\Arsse;
|
||||
use JKingWeb\Arsse\Db\Driver;
|
||||
|
||||
trait PostgreSQL {
|
||||
use PostgreSQLCommon;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
declare(strict_types=1);
|
||||
namespace JKingWeb\Arsse\Test\DatabaseDrivers;
|
||||
|
||||
use JKingWeb\Arsse\Arsse;
|
||||
use JKingWeb\Arsse\Db\Driver;
|
||||
|
||||
trait PostgreSQLCommon {
|
||||
|
@ -66,4 +65,4 @@ trait PostgreSQLCommon {
|
|||
self::dbExec($db, $st);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ declare(strict_types=1);
|
|||
namespace JKingWeb\Arsse\Test\DatabaseDrivers;
|
||||
|
||||
use JKingWeb\Arsse\Arsse;
|
||||
use JKingWeb\Arsse\Db\Driver;
|
||||
|
||||
trait SQLite3 {
|
||||
use SQLite3Common;
|
||||
|
|
|
@ -67,4 +67,4 @@ trait SQLite3Common {
|
|||
$db->exec($st);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue