@@ -63,11 +63,11 @@ |
||
| 63 | 63 | |
| 64 | 64 | public static function registrationKey(): string |
| 65 | 65 | { |
| 66 | - if(isset(static::$registrationKey)){ |
|
| 66 | + if (isset(static::$registrationKey)) { |
|
| 67 | 67 | return static::$registrationKey; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - throw new \Exception('Missing required static property \'registrationKey\' on ' . static::class. '.'); |
|
| 70 | + throw new \Exception('Missing required static property \'registrationKey\' on '.static::class.'.'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | public static function registrationKey(): string |
| 82 | 82 | { |
| 83 | - if(isset(static::$registrationKey)){ |
|
| 83 | + if (isset(static::$registrationKey)) { |
|
| 84 | 84 | return static::$registrationKey; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - throw new \Exception('Missing required static property \'registrationKey\' on ' . static::class. '.'); |
|
| 87 | + throw new \Exception('Missing required static property \'registrationKey\' on '.static::class.'.'); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | public function flatReferenceLabel(): string |
| 125 | 125 | { |
| 126 | 126 | if ($this->exists) { |
| 127 | - $status = ! $this->isPublished() ? ' [' . $this->statusAsPlainLabel().']' : null; |
|
| 127 | + $status = !$this->isPublished() ? ' ['.$this->statusAsPlainLabel().']' : null; |
|
| 128 | 128 | |
| 129 | - return $this->title ? $this->title . $status : ''; |
|
| 129 | + return $this->title ? $this->title.$status : ''; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | return ''; |
@@ -83,12 +83,12 @@ |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $manager = new \ReflectionClass($managerClass); |
| 86 | - if (! $manager->implementsInterface(Manager::class)) { |
|
| 86 | + if (!$manager->implementsInterface(Manager::class)) { |
|
| 87 | 87 | throw new \InvalidArgumentException('Class ['.$managerClass.'] is expected to implement the ['.Manager::class.'] contract.'); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | $model = new \ReflectionClass($modelClass); |
| 91 | - if (! $model->implementsInterface(ManagedModel::class)) { |
|
| 91 | + if (!$model->implementsInterface(ManagedModel::class)) { |
|
| 92 | 92 | throw new \InvalidArgumentException('Class ['.$modelClass.'] is expected to implement the ['.ManagedModel::class.'] contract.'); |
| 93 | 93 | } |
| 94 | 94 | } |