- Issue created by @nick_nem
- last update
over 1 year ago 18 pass - last update
over 1 year ago 18 pass - Status changed to Needs work
over 1 year ago 6:57pm 4 July 2023 - 🇮🇹Italy mondrake 🇮🇹
Thank you. We would need an automated test here.
-
+++ b/src/Textimage.php @@ -349,10 +349,13 @@ class Textimage implements TextimageInterface { + if ($source_image_file && !is_null($source_image_file)) {
!is_null
seems redundant here. -
+++ b/src/Textimage.php @@ -916,4 +919,14 @@ class Textimage implements TextimageInterface { + protected function createMockFile() {
better name this
createFallbackImageFile()
, 'mock' remind me of PHPUnit tests. -
+++ b/src/Textimage.php @@ -916,4 +919,14 @@ class Textimage implements TextimageInterface { + $module_path = drupal_get_path('module', 'textimage');
drupal_get_path
is deprecated and not present in D10, https://www.drupal.org/node/2940438 → (hence we need a test...) -
+++ b/src/Textimage.php @@ -916,4 +919,14 @@ class Textimage implements TextimageInterface { + $file_path = $module_path . '/mock.jpg';
It should be possible to configure which image file to use as a fallback.
-
Thank you mondrake for your review!
Here is an updated patch.!is_null seems redundant here.
Donebetter name this createFallbackImageFile(), 'mock' remind me of PHPUnit tests.
Donedrupal_get_path is deprecated and not present in D10
DoneIt should be possible to configure which image file to use as a fallback.
Added the possibility to set a custom fallback image via the module settings page.\I also added a simple test. Unfortunately had no chance to verify it.
Please check when you have a moment.
- Status changed to Needs review
over 1 year ago 5:27pm 16 July 2023 - last update
over 1 year ago 3 pass, 3 fail The last submitted patch, 3: 0002-absent-image-handling.patch, failed testing. View results →
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- last update
about 1 year ago 18 pass - last update
about 1 year ago 3 pass, 6 fail - last update
12 months ago 3 pass, 6 fail - last update
12 months ago 3 pass, 3 fail