@@ -110,11 +110,12 @@ public function generate()
110
110
} catch (FileSystemException $ e ) {
111
111
$ message = 'Error: an object of a generated class may be a dependency for another object, but this '
112
112
. 'dependency has not been defined or set correctly in the signature of the related construct method. '
113
- . 'Due to the current error, executing the CLI commands `bin/magento setup:di:compile` or `bin/magento '
114
- . 'deploy:mode:set production` does not create the required generated classes. '
113
+ . 'Due to the current error, executing the CLI commands `bin/magento setup:di:compile` or `bin/magento '
114
+ . ' deploy:mode:set production` does not create the required generated classes. '
115
115
. 'Magento cannot write a class file to the "generated" directory that is read-only. Before using the '
116
- . 'read-only file system, the classes to be generated must be created beforehand in the "generated" directory. '
117
- . 'For details, see the "File systems access permissions" topic at http://devdocs.magento.com. ' ;
116
+ . 'read-only file system, the classes to be generated must be created beforehand in the "generated" '
117
+ . 'directory. For details, see the "File systems access permissions" topic '
118
+ . 'at http://devdocs.magento.com. ' ;
118
119
$ this ->_addError ($ message );
119
120
$ this ->_addError ($ e ->getMessage ());
120
121
} catch (\Exception $ e ) {
@@ -261,9 +262,9 @@ protected function _validateData()
261
262
$ this ->_addError ('Source class ' . $ sourceClassName . ' doesn \'t exist. ' );
262
263
return false ;
263
264
} elseif (/**
264
- * If makeResultFileDirectory only fails because the file is already created,
265
- * a competing process has generated the file, no exception should be thrown.
266
- */
265
+ * If makeResultFileDirectory only fails because the file is already created,
266
+ * a competing process has generated the file, no exception should be thrown.
267
+ */
267
268
!$ this ->_ioObject ->makeResultFileDirectory ($ resultClassName )
268
269
&& !$ this ->_ioObject ->fileExists ($ resultDir )
269
270
) {
@@ -322,7 +323,8 @@ protected function _getNullDefaultValue()
322
323
*/
323
324
private function extractParameterType (
324
325
\ReflectionParameter $ parameter
325
- ): ?string {
326
+ ): ?string
327
+ {
326
328
/** @var string|null $typeName */
327
329
$ typeName = null ;
328
330
if ($ parameter ->hasType ()) {
@@ -339,7 +341,7 @@ private function extractParameterType(
339
341
}
340
342
341
343
if ($ parameter ->allowsNull ()) {
342
- $ typeName = '? ' .$ typeName ;
344
+ $ typeName = '? ' . $ typeName ;
343
345
}
344
346
}
345
347
@@ -353,7 +355,8 @@ private function extractParameterType(
353
355
*/
354
356
private function extractParameterDefaultValue (
355
357
\ReflectionParameter $ parameter
356
- ): ?ValueGenerator {
358
+ ): ?ValueGenerator
359
+ {
357
360
/** @var ValueGenerator|null $value */
358
361
$ value = null ;
359
362
if ($ parameter ->isOptional () && $ parameter ->isDefaultValueAvailable ()) {
0 commit comments