@@ -143,8 +143,6 @@ class CodeIgniter
143
143
*/
144
144
protected $ useSafeOutput = false ;
145
145
146
- //--------------------------------------------------------------------
147
-
148
146
/**
149
147
* Constructor.
150
148
*
@@ -154,15 +152,13 @@ public function __construct(App $config)
154
152
{
155
153
if (version_compare (PHP_VERSION , self ::MIN_PHP_VERSION , '< ' ))
156
154
{
157
- die (lang ('Core.invalidPhpVersion ' , [self ::MIN_PHP_VERSION , PHP_VERSION ]));
155
+ exit (lang ('Core.invalidPhpVersion ' , [self ::MIN_PHP_VERSION , PHP_VERSION ]));
158
156
}
159
157
160
158
$ this ->startTime = microtime (true );
161
159
$ this ->config = $ config ;
162
160
}
163
161
164
- //--------------------------------------------------------------------
165
-
166
162
/**
167
163
* Handles some basic app and environment setup.
168
164
*/
@@ -178,9 +174,7 @@ public function initialize()
178
174
// Run this check for manual installations
179
175
if (! is_file (COMPOSER_PATH ))
180
176
{
181
- // @codeCoverageIgnoreStart
182
- $ this ->resolvePlatformExtensions ();
183
- // @codeCoverageIgnoreEnd
177
+ $ this ->resolvePlatformExtensions (); // @codeCoverageIgnore
184
178
}
185
179
186
180
// Set default locale on the server
@@ -193,20 +187,17 @@ public function initialize()
193
187
194
188
if (! CI_DEBUG )
195
189
{
196
- // @codeCoverageIgnoreStart
197
- Kint::$ enabled_mode = false ;
198
- // @codeCoverageIgnoreEnd
190
+ Kint::$ enabled_mode = false ; // @codeCoverageIgnore
199
191
}
200
192
}
201
193
202
- //--------------------------------------------------------------------
203
-
204
194
/**
205
195
* Checks system for missing required PHP extensions.
206
196
*
207
- * @return void
208
197
* @throws FrameworkException
209
198
*
199
+ * @return void
200
+ *
210
201
* @codeCoverageIgnore
211
202
*/
212
203
protected function resolvePlatformExtensions ()
@@ -229,14 +220,12 @@ protected function resolvePlatformExtensions()
229
220
}
230
221
}
231
222
232
- if ($ missingExtensions )
223
+ if ($ missingExtensions !== [] )
233
224
{
234
225
throw FrameworkException::forMissingExtension (implode (', ' , $ missingExtensions ));
235
226
}
236
227
}
237
228
238
- //--------------------------------------------------------------------
239
-
240
229
/**
241
230
* Initializes Kint
242
231
*/
0 commit comments