@@ -95,7 +95,7 @@ public function getModelInstance(Document $document): Model
9595 $ modelClass = $ document ->get (self ::DOCUMENT_MODEL_CLASS );
9696 $ modelId = $ document ->get (self ::DOCUMENT_MODEL_ID );
9797 } catch (InvalidException ) {
98- throw new RuntimeException () ;
98+ throw new RuntimeException ;
9999 }
100100
101101 return $ modelClass ::findOrFail ($ modelId );
@@ -125,7 +125,7 @@ final public function hasBlueGreenIndices(): bool
125125 final public function getBlueGreenActiveSuffix (): string
126126 {
127127 if (! $ this ->hasBlueGreenIndices ()) {
128- throw new BlueGreenIndicesIncorrectlySetupException () ;
128+ throw new BlueGreenIndicesIncorrectlySetupException ;
129129 }
130130
131131 $ aliases = array_filter (
@@ -134,13 +134,13 @@ final public function getBlueGreenActiveSuffix(): string
134134 );
135135
136136 if (count ($ aliases ) !== 1 ) {
137- throw new BlueGreenIndicesIncorrectlySetupException () ;
137+ throw new BlueGreenIndicesIncorrectlySetupException ;
138138 }
139139
140140 $ suffix = substr ((string ) array_keys ($ aliases )[0 ], strlen ($ this ->getName ()));
141141
142142 if (! in_array ($ suffix , self ::INDEX_SUFFIXES , true )) {
143- throw new BlueGreenIndicesIncorrectlySetupException () ;
143+ throw new BlueGreenIndicesIncorrectlySetupException ;
144144 }
145145
146146 return $ suffix ;
@@ -158,7 +158,7 @@ final public function getBlueGreenInactiveSuffix(): string
158158 return self ::INDEX_SUFFIX_BLUE ;
159159 }
160160
161- throw new BlueGreenIndicesIncorrectlySetupException () ;
161+ throw new BlueGreenIndicesIncorrectlySetupException ;
162162 }
163163
164164 final public function getBlueGreenActiveElasticaIndex (): Index
0 commit comments