Code cleanup

This commit is contained in:
James Cole
2018-04-28 06:23:13 +02:00
parent 6f0e1c79ac
commit 13b78bdc20
218 changed files with 621 additions and 681 deletions

View File

@@ -49,7 +49,7 @@ class RuleRepository implements RuleRepositoryInterface
* @param Rule $rule
*
* @return bool
*
* @throws \Exception
*/
public function destroy(Rule $rule): bool
{
@@ -261,7 +261,7 @@ class RuleRepository implements RuleRepositoryInterface
$rule->strict = $data['strict'] ?? false;
$rule->stop_processing = 1 === (int)$data['stop_processing'];
$rule->title = $data['title'];
$rule->description = strlen($data['description']) > 0 ? $data['description'] : null;
$rule->description = \strlen($data['description']) > 0 ? $data['description'] : null;
$rule->save();