$result = Strings::isBlank('0');
false
public function validateNotBlank($value, $errorMessage, $errorField = null) { if (Strings::isBlank($value)) { $this->error($errorMessage); $this->_errorFields[] = $errorField; } }
/** * @test */ public function shouldReturnTrueForBlankString() { $this->assertTrue(Strings::isBlank('')); $this->assertTrue(Strings::isBlank(' ')); $this->assertTrue(Strings::isBlank("\t\n\r")); }
public function nullifyIfEmpty() { $fields = func_get_args(); foreach ($fields as $field) { if (isset($this->{$field}) && !is_bool($this->{$field}) && Strings::isBlank($this->{$field})) { $this->{$field} = null; } } }
public function isEmpty() { return Strings::isBlank($this->sql); }