Unverified Commit 05d72b35 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3499213 by chi, ramprassad, quietone, mstrelan, cmlara, borisson_:...

Issue #3499213 by chi, ramprassad, quietone, mstrelan, cmlara, borisson_: Narrow boolean return types
parent 0a657124
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ public function __toString() {
   * @param string $plural_forms
   *   The Plural-Forms entry value.
   *
   * @return array|bool
   * @return array|false
   *   An indexed array of parsed plural formula data. Containing:
   *   - 'nplurals': The number of plural forms defined by the plural formula.
   *   - 'plurals': Array of plural positions keyed by plural value.
@@ -271,7 +271,7 @@ private function parseHeader($header) {
   * @param string $string
   *   A string containing the arithmetic formula.
   *
   * @return array|bool
   * @return array|false
   *   A stack of values and operations to be evaluated. False if the formula
   *   could not be parsed.
   */
+2 −2
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public static function check() {
   *   The data possibly containing a BOM. This can be the entire contents of
   *   a file, or just a fragment containing at least the first five bytes.
   *
   * @return string|bool
   * @return string|false
   *   The name of the encoding, or FALSE if no byte order mark was present.
   */
  public static function encodingFromBOM($data) {
@@ -181,7 +181,7 @@ public static function encodingFromBOM($data) {
   * @param string $encoding
   *   The encoding that the data is in.
   *
   * @return string|bool
   * @return string|false
   *   Converted data or FALSE.
   */
  public static function convertToUtf8($data, $encoding) {
+2 −2
Original line number Diff line number Diff line
@@ -754,7 +754,7 @@ protected function finish(&$context) {
   * installs are processed with modules coming before themes. This order is
   * necessary because themes can depend on modules.
   *
   * @return array|bool
   * @return array|false
   *   An array containing the next operation and extension name to perform it
   *   on. If there is nothing left to do returns FALSE;
   */
@@ -784,7 +784,7 @@ protected function getNextExtensionOperation() {
  /**
   * Gets the next configuration operation to perform.
   *
   * @return array|bool
   * @return array|false
   *   An array containing the next operation and configuration name to perform
   *   it on. If there is nothing left to do returns FALSE;
   */
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ interface ControllerResolverInterface extends BaseControllerResolverInterface {
   *   The controller attribute like in
   *   $request->attributes->get(RouteObjectInterface::CONTROLLER_NAME).
   *
   * @return mixed|bool
   * @return mixed|false
   *   A PHP callable representing the Controller, or false if this resolver is
   *   not able to determine the controller
   *
+1 −1
Original line number Diff line number Diff line
@@ -1272,7 +1272,7 @@ abstract public function mapConditionOperator($operator);
   *   (optional) Provides a data type hint for drivers that have alternate
   *   quoting styles. Defaults to \PDO::PARAM_STR.
   *
   * @return string|bool
   * @return string|false
   *   A quoted string that is theoretically safe to pass into an SQL statement.
   *   Returns FALSE if the driver does not support quoting in this way.
   *
Loading