@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return static::$managedModelKey; |
85 | 85 | } |
86 | 86 | |
87 | - throw new \Exception('Missing required static property \'managedModelKey\' on ' . static::class. '.'); |
|
87 | + throw new \Exception('Missing required static property \'managedModelKey\' 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 ''; |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | { |
137 | 137 | $classKey = get_class($this); |
138 | 138 | if (property_exists($this, 'labelSingular')) { |
139 | - $labelSingular = $this->labelSingular; |
|
140 | - } else { |
|
139 | + $labelSingular = $this->labelSingular; |
|
140 | + }else { |
|
141 | 141 | $labelSingular = Str::singular($classKey); |
142 | 142 | } |
143 | 143 |