@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | |
384 | 384 | public function setElement(AttachmentContainingDBElement $element) : Attachment |
385 | 385 | { |
386 | - if (!is_a($element,static::ALLOWED_ELEMENT_CLASS)) { |
|
386 | + if (!is_a($element, static::ALLOWED_ELEMENT_CLASS)) { |
|
387 | 387 | throw new \InvalidArgumentException(sprintf( |
388 | 388 | 'The element associated with a %s must be a %s!', |
389 | 389 | get_class($this), |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | if ($only_http) { //Check if scheme is HTTPS or HTTP |
472 | 472 | $scheme = parse_url($string, PHP_URL_SCHEME); |
473 | 473 | if ($scheme !== 'http' && $scheme !== 'https') { |
474 | - return false; //All other schemes are not valid. |
|
474 | + return false; //All other schemes are not valid. |
|
475 | 475 | } |
476 | 476 | } |
477 | 477 | if ($path_required) { |
@@ -40,5 +40,5 @@ |
||
40 | 40 | */ |
41 | 41 | protected $element; |
42 | 42 | |
43 | - public const ALLOWED_ELEMENT_CLASS = AttachmentType::class; |
|
43 | + public const ALLOWED_ELEMENT_CLASS = AttachmentType::class; |
|
44 | 44 | } |
45 | 45 | \ No newline at end of file |