@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $dt = new \DateTime($in, new \DateTimeZone($tz)); |
| 95 | 95 | $time_stamp = new self($dt); |
| 96 | 96 | $time_stamp->setOffset($tz[0] === '+') |
| 97 | - ->setPrecision($precision); |
|
| 97 | + ->setPrecision($precision); |
|
| 98 | 98 | return $time_stamp; |
| 99 | 99 | } |
| 100 | 100 | |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | if ($this->getDate()) { |
| 108 | 108 | $value = \mb_substr( |
| 109 | - $this->getDate()->format(self::DATE_FORMAT), |
|
| 110 | - 0, |
|
| 111 | - $this->getPrecision() |
|
| 109 | + $this->getDate()->format(self::DATE_FORMAT), |
|
| 110 | + 0, |
|
| 111 | + $this->getPrecision() |
|
| 112 | 112 | ); |
| 113 | 113 | |
| 114 | 114 | if ($this->getPrecision() >= self::PRECISION_MINUTES |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | public function __construct($value, $attribute = 'value') |
| 58 | 58 | { |
| 59 | 59 | $this->setValue($value) |
| 60 | - ->setAttribute($attribute); |
|
| 60 | + ->setAttribute($attribute); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | public function __construct(int $value, string $tag) |
| 66 | 66 | { |
| 67 | 67 | $this->setValue($value) |
| 68 | - ->setTag($tag); |
|
| 68 | + ->setTag($tag); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | { |
| 96 | 96 | $upper_code = strtoupper($code); |
| 97 | 97 | $this->code = \in_array($upper_code, |
| 98 | - array( |
|
| 98 | + array( |
|
| 99 | 99 | self::BUSINESS, |
| 100 | 100 | self::HOME, |
| 101 | 101 | self::HOME_BUSINESS, |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | self::MOBILE_CONTACT, |
| 107 | 107 | self::PAGER, |
| 108 | 108 | self::WORKPLACE |
| 109 | - ), true) |
|
| 109 | + ), true) |
|
| 110 | 110 | ? $upper_code |
| 111 | 111 | : ''; |
| 112 | 112 | return $this; |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | class AddressCodeType extends AnyType |
| 43 | 43 | { |
| 44 | - const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. |
|
| 45 | - const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might |
|
| 44 | + const BUSINESS = 'WP'; // An office address. First choice for business related con- tacts during business hours. |
|
| 45 | + const HOME = 'H'; // A communication address at a home, attempted contacts for business purposes might |
|
| 46 | 46 | // intrude privacy and chances are one will contact family or other household members |
| 47 | 47 | // instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. |
| 48 | 48 | const HOME_BUSINESS = 'WP H'; |
@@ -42,14 +42,14 @@ discard block |
||
| 42 | 42 | * @param $displayName |
| 43 | 43 | */ |
| 44 | 44 | public function __construct( |
| 45 | - $code, |
|
| 46 | - $displayName |
|
| 45 | + $code, |
|
| 46 | + $displayName |
|
| 47 | 47 | ) { |
| 48 | 48 | parent::__construct( |
| 49 | - $code, |
|
| 50 | - $displayName, |
|
| 51 | - self::CODE_SYSTEM, |
|
| 52 | - self::CODE_SYSTEM_NAME |
|
| 49 | + $code, |
|
| 50 | + $displayName, |
|
| 51 | + self::CODE_SYSTEM, |
|
| 52 | + self::CODE_SYSTEM_NAME |
|
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | public static function create($code, $displayName): CodedValue |
| 65 | 65 | { |
| 66 | 66 | return new CodedValue( |
| 67 | - $code, |
|
| 68 | - $displayName, |
|
| 69 | - self::CODE_SYSTEM, |
|
| 70 | - self::CODE_SYSTEM_NAME |
|
| 67 | + $code, |
|
| 68 | + $displayName, |
|
| 69 | + self::CODE_SYSTEM, |
|
| 70 | + self::CODE_SYSTEM_NAME |
|
| 71 | 71 | ); |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -51,10 +51,10 @@ |
||
| 51 | 51 | public static function create($key, $displayName): CodedValue |
| 52 | 52 | { |
| 53 | 53 | return new CodedValue( |
| 54 | - $key, |
|
| 55 | - $displayName, |
|
| 56 | - self::CODE_SYSTEM, |
|
| 57 | - self::CODE_SYSTEM_NAME |
|
| 54 | + $key, |
|
| 55 | + $displayName, |
|
| 56 | + self::CODE_SYSTEM, |
|
| 57 | + self::CODE_SYSTEM_NAME |
|
| 58 | 58 | ); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -44,14 +44,14 @@ |
||
| 44 | 44 | * @param $codeSystemName |
| 45 | 45 | */ |
| 46 | 46 | public function __construct( |
| 47 | - $code, |
|
| 48 | - $displayName, |
|
| 49 | - $codeSystem, |
|
| 50 | - $codeSystemName |
|
| 47 | + $code, |
|
| 48 | + $displayName, |
|
| 49 | + $codeSystem, |
|
| 50 | + $codeSystemName |
|
| 51 | 51 | ) { |
| 52 | 52 | $this->setCode($code) |
| 53 | - ->setDisplayName($displayName) |
|
| 54 | - ->setCodeSystem($codeSystem) |
|
| 55 | - ->setCodeSystemName($codeSystemName); |
|
| 53 | + ->setDisplayName($displayName) |
|
| 54 | + ->setCodeSystem($codeSystem) |
|
| 55 | + ->setCodeSystemName($codeSystemName); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | public function __construct($code, $displayName) |
| 43 | 43 | { |
| 44 | 44 | parent::__construct($code, |
| 45 | - $displayName, |
|
| 46 | - self::CODE_SYSTEM, |
|
| 47 | - self::CODE_SYSTEM_NAME); |
|
| 45 | + $displayName, |
|
| 46 | + self::CODE_SYSTEM, |
|
| 47 | + self::CODE_SYSTEM_NAME); |
|
| 48 | 48 | } |
| 49 | 49 | } |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | public function __construct(\DateInterval $period) |
| 64 | 64 | { |
| 65 | 65 | $this->setPeriod($period) |
| 66 | - ->setXSIType(XSITypeInterface::PERIODIC_TIME_INTERVAL) |
|
| 67 | - ->setTag('period'); |
|
| 66 | + ->setXSIType(XSITypeInterface::PERIODIC_TIME_INTERVAL) |
|
| 67 | + ->setTag('period'); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | if ($this->hasInstitutionSpecified()) { |
| 82 | 82 | $el->setAttribute(CDA::NS_CDA . 'institutionSpecified', |
| 83 | - $this->getInstitutionSpecified() |
|
| 83 | + $this->getInstitutionSpecified() |
|
| 84 | 84 | ? 'true' |
| 85 | 85 | : 'false'); |
| 86 | 86 | } |