mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Style fixes
This commit is contained in:
parent
0ef606aa03
commit
e3d2215920
11 changed files with 145 additions and 139 deletions
|
@ -128,6 +128,7 @@ USAGE_TEXT;
|
||||||
} else {
|
} else {
|
||||||
return $this->userAddOrSetPassword("passwordSet", $args["<username>"], $args["<password>"], $args["--oldpass"]);
|
return $this->userAddOrSetPassword("passwordSet", $args["<username>"], $args["<password>"], $args["--oldpass"]);
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case "unset-pass":
|
case "unset-pass":
|
||||||
if ($args['--fever']) {
|
if ($args['--fever']) {
|
||||||
$this->getFever()->unregister($args["<username>"]);
|
$this->getFever()->unregister($args["<username>"]);
|
||||||
|
|
|
@ -82,6 +82,7 @@ class Search {
|
||||||
$state = self::STATE_IN_TOKEN_OR_TAG;
|
$state = self::STATE_IN_TOKEN_OR_TAG;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case self::STATE_BEFORE_TOKEN_QUOTED:
|
case self::STATE_BEFORE_TOKEN_QUOTED:
|
||||||
switch ($char) {
|
switch ($char) {
|
||||||
case "":
|
case "":
|
||||||
|
@ -130,6 +131,7 @@ class Search {
|
||||||
$state = self::STATE_IN_TOKEN_OR_TAG_QUOTED;
|
$state = self::STATE_IN_TOKEN_OR_TAG_QUOTED;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case self::STATE_IN_DATE:
|
case self::STATE_IN_DATE:
|
||||||
while ($pos < $stop && $search[$pos] !== " ") {
|
while ($pos < $stop && $search[$pos] !== " ") {
|
||||||
$buffer .= $search[$pos++];
|
$buffer .= $search[$pos++];
|
||||||
|
@ -169,6 +171,7 @@ class Search {
|
||||||
$buffer .= $char;
|
$buffer .= $char;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case self::STATE_IN_TOKEN:
|
case self::STATE_IN_TOKEN:
|
||||||
while ($pos < $stop && $search[$pos] !== " ") {
|
while ($pos < $stop && $search[$pos] !== " ") {
|
||||||
$buffer .= $search[$pos++];
|
$buffer .= $search[$pos++];
|
||||||
|
@ -214,6 +217,7 @@ class Search {
|
||||||
$buffer .= $char;
|
$buffer .= $char;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case self::STATE_IN_TOKEN_OR_TAG:
|
case self::STATE_IN_TOKEN_OR_TAG:
|
||||||
switch ($char) {
|
switch ($char) {
|
||||||
case "":
|
case "":
|
||||||
|
@ -223,7 +227,7 @@ class Search {
|
||||||
$flag_negative = false;
|
$flag_negative = false;
|
||||||
$buffer = $tag = "";
|
$buffer = $tag = "";
|
||||||
continue 3;
|
continue 3;
|
||||||
case ":";
|
case ":":
|
||||||
$tag = $buffer;
|
$tag = $buffer;
|
||||||
$buffer = "";
|
$buffer = "";
|
||||||
$state = self::STATE_IN_TOKEN;
|
$state = self::STATE_IN_TOKEN;
|
||||||
|
@ -232,6 +236,7 @@ class Search {
|
||||||
$buffer .= $char;
|
$buffer .= $char;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case self::STATE_IN_TOKEN_OR_TAG_QUOTED:
|
case self::STATE_IN_TOKEN_OR_TAG_QUOTED:
|
||||||
switch ($char) {
|
switch ($char) {
|
||||||
case "":
|
case "":
|
||||||
|
@ -267,6 +272,7 @@ class Search {
|
||||||
$buffer .= $char;
|
$buffer .= $char;
|
||||||
continue 3;
|
continue 3;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
default:
|
default:
|
||||||
throw new \Exception; // @codeCoverageIgnore
|
throw new \Exception; // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@ use Zend\Diactoros\Response\EmptyResponse;
|
||||||
|
|
||||||
/** @covers \JKingWeb\Arsse\REST\Fever\API<extended> */
|
/** @covers \JKingWeb\Arsse\REST\Fever\API<extended> */
|
||||||
class TestAPI extends \JKingWeb\Arsse\Test\AbstractTest {
|
class TestAPI extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
|
|
||||||
protected function v($value) {
|
protected function v($value) {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue