@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 42 | 42 | { |
| 43 | - if (! self::$utc_timezone) { |
|
| 43 | + if (!self::$utc_timezone) { |
|
| 44 | 44 | self::$utc_timezone = new DateTimeZone('UTC'); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | public function convertToPHPValue($value, AbstractPlatform $platform) |
| 55 | 55 | { |
| 56 | - if (! self::$utc_timezone) { |
|
| 56 | + if (!self::$utc_timezone) { |
|
| 57 | 57 | self::$utc_timezone = new DateTimeZone('UTC'); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | self::$utc_timezone |
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | - if (! $converted) { |
|
| 70 | + if (!$converted) { |
|
| 71 | 71 | throw ConversionException::conversionFailedFormat($value, $this->getName(), $platform->getDateTimeFormatString()); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public function targetTypeDataProvider(): array |
| 60 | 60 | { |
| 61 | 61 | return [ |
| 62 | - [1, User::class], |
|
| 62 | + [1, User::class], |
|
| 63 | 63 | [2, Attachment::class], |
| 64 | 64 | [3, AttachmentType::class], |
| 65 | 65 | [4, Category::class], |
@@ -78,14 +78,14 @@ |
||
| 78 | 78 | sprintf('You are going to change the password of %s with ID %d. Proceed?', |
| 79 | 79 | $user->getFullName(true), $user->getID())); |
| 80 | 80 | |
| 81 | - if (! $proceed) { |
|
| 81 | + if (!$proceed) { |
|
| 82 | 82 | return 1; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $success = false; |
| 86 | 86 | $new_password = ''; |
| 87 | 87 | |
| 88 | - while (! $success) { |
|
| 88 | + while (!$success) { |
|
| 89 | 89 | $pw1 = $io->askHidden('Please enter new password:'); |
| 90 | 90 | $pw2 = $io->askHidden('Please confirm:'); |
| 91 | 91 | if ($pw1 !== $pw2) { |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | |
| 106 | 106 | $continue = $io->confirm(sprintf('Found %d abandoned files. Do you want to delete them? This can not be undone!', count($file_list)), false); |
| 107 | 107 | |
| 108 | - if (! $continue) { |
|
| 108 | + if (!$continue) { |
|
| 109 | 109 | //We are finished here, when no files should be deleted |
| 110 | 110 | return 0; |
| 111 | 111 | } |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | */ |
| 345 | 345 | final public static function levelIntToString(int $level): string |
| 346 | 346 | { |
| 347 | - if (! isset(self::LEVEL_ID_TO_STRING[$level])) { |
|
| 347 | + if (!isset(self::LEVEL_ID_TO_STRING[$level])) { |
|
| 348 | 348 | throw new \InvalidArgumentException('No level with this int is existing!'); |
| 349 | 349 | } |
| 350 | 350 | |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | final public static function levelStringToInt(string $level): int |
| 362 | 362 | { |
| 363 | 363 | $tmp = array_flip(self::LEVEL_ID_TO_STRING); |
| 364 | - if (! isset($tmp[$level])) { |
|
| 364 | + if (!isset($tmp[$level])) { |
|
| 365 | 365 | throw new \InvalidArgumentException('No level with this string is existing!'); |
| 366 | 366 | } |
| 367 | 367 | |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | */ |
| 378 | 378 | final public static function targetTypeIdToClass(int $type_id): string |
| 379 | 379 | { |
| 380 | - if (! isset(self::TARGET_CLASS_MAPPING[$type_id])) { |
|
| 380 | + if (!isset(self::TARGET_CLASS_MAPPING[$type_id])) { |
|
| 381 | 381 | throw new \InvalidArgumentException('No target type with this ID is existing!'); |
| 382 | 382 | } |
| 383 | 383 | |
@@ -103,12 +103,12 @@ |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | //Check if the event type is black listed |
| 106 | - if (! empty($blacklist) && $this->isObjectClassInArray($logEntry, $blacklist)) { |
|
| 106 | + if (!empty($blacklist) && $this->isObjectClassInArray($logEntry, $blacklist)) { |
|
| 107 | 107 | return false; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | //Check for whitelisting |
| 111 | - if (! empty($whitelist) && ! $this->isObjectClassInArray($logEntry, $whitelist)) { |
|
| 111 | + if (!empty($whitelist) && !$this->isObjectClassInArray($logEntry, $whitelist)) { |
|
| 112 | 112 | return false; |
| 113 | 113 | } |
| 114 | 114 | |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | $qb->resetDQLPart('orderBy'); |
| 224 | 224 | $gb = $qb->getDQLPart('groupBy'); |
| 225 | - if (empty($gb) || ! $this->hasGroupByPart($identifier, $gb)) { |
|
| 225 | + if (empty($gb) || !$this->hasGroupByPart($identifier, $gb)) { |
|
| 226 | 226 | $qb->select($qb->expr()->count($identifier)); |
| 227 | 227 | |
| 228 | 228 | return (int) $qb->getQuery()->getSingleScalarResult(); |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | protected function configureOptions(OptionsResolver $resolver): void |
| 283 | 283 | { |
| 284 | - $providerNormalizer = function (Options $options, $value) { |
|
| 284 | + $providerNormalizer = function(Options $options, $value) { |
|
| 285 | 285 | return array_map([$this, 'normalizeProcessor'], (array) $value); |
| 286 | 286 | }; |
| 287 | 287 | |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | ->setDefaults([ |
| 290 | 290 | 'hydrate' => Query::HYDRATE_OBJECT, |
| 291 | 291 | 'query' => [], |
| 292 | - 'criteria' => function (Options $options) { |
|
| 292 | + 'criteria' => function(Options $options) { |
|
| 293 | 293 | return [new SearchCriteriaProvider()]; |
| 294 | 294 | }, |
| 295 | 295 | ]) |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | /** @var AbstractStructuralDBElement $element */ |
| 42 | 42 | $element = $this->current(); |
| 43 | 43 | |
| 44 | - return ! empty($element->getSubelements()); |
|
| 44 | + return !empty($element->getSubelements()); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function getChildren() |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function validate($value, Constraint $constraint): void |
| 45 | 45 | { |
| 46 | - if (! $constraint instanceof Selectable) { |
|
| 46 | + if (!$constraint instanceof Selectable) { |
|
| 47 | 47 | throw new UnexpectedTypeException($constraint, Selectable::class); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | //Check type of value. Validating only works for StructuralDBElements |
| 57 | - if (! $value instanceof AbstractStructuralDBElement) { |
|
| 57 | + if (!$value instanceof AbstractStructuralDBElement) { |
|
| 58 | 58 | throw new UnexpectedValueException($value, 'StructuralDBElement'); |
| 59 | 59 | } |
| 60 | 60 | |