We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 36 |
| Total Lines | 233 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class FormEngine { |
||
| 25 | /** |
||
| 26 | * Helper to display document's thumbnail for table "tx_dlf_documents" |
||
| 27 | * |
||
| 28 | * @access public |
||
| 29 | * |
||
| 30 | * @param array &$params: An array with parameters |
||
| 31 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
|
|
|||
| 32 | * |
||
| 33 | * @return string HTML <img> tag for thumbnail |
||
| 34 | */ |
||
| 35 | public function displayThumbnail(&$params, &$pObj) { |
||
|
1 ignored issue
–
show
|
|||
| 36 | // Simulate TCA field type "passthrough". |
||
| 37 | $output = '<input type="hidden" name="'.$params['itemFormElName'].'" value="'.$params['itemFormElValue'].'" />'; |
||
| 38 | if (!empty($params['itemFormElValue'])) { |
||
| 39 | $output .= '<img alt="" src="'.$params['itemFormElValue'].'" />'; |
||
| 40 | } |
||
| 41 | return $output; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Helper to get flexform's items array for plugin "tx_dlf_collection" |
||
| 46 | * |
||
| 47 | * @access public |
||
| 48 | * |
||
| 49 | * @param array &$params: An array with parameters |
||
| 50 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 51 | * |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | public function itemsProcFunc_collectionList(&$params, &$pObj) { |
||
|
1 ignored issue
–
show
|
|||
| 55 | $pages = $params['row']['pages']; |
||
| 56 | if (!empty($pages)) { |
||
| 57 | foreach ($pages as $page) { |
||
| 58 | // There is a strange behavior where the uid from the flexform is prepended by the table's name and appended by its title. |
||
| 59 | // i.e. instead of "18" it reads "pages_18|Title" |
||
| 60 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($page)) { |
||
| 61 | $parts = explode('|', $page); |
||
| 62 | $page = array_pop(explode('_', $parts[0])); |
||
| 63 | } |
||
| 64 | if ($page > 0) { |
||
| 65 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
||
| 66 | 'label,uid', |
||
| 67 | 'tx_dlf_collections', |
||
| 68 | 'pid='.intval($page) |
||
| 69 | .' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' |
||
| 70 | .Helper::whereClause('tx_dlf_collections'), |
||
| 71 | '', |
||
| 72 | 'label', |
||
| 73 | '' |
||
| 74 | ); |
||
| 75 | if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) > 0) { |
||
| 76 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_row($result)) { |
||
| 77 | $params['items'][] = $resArray; |
||
| 78 | } |
||
| 79 | } |
||
| 80 | } |
||
| 81 | } |
||
| 82 | } |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Helper to get flexform's items array for plugin "Search" |
||
| 87 | * |
||
| 88 | * @access public |
||
| 89 | * |
||
| 90 | * @param array &$params: An array with parameters |
||
| 91 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 92 | * |
||
| 93 | * @return void |
||
| 94 | */ |
||
| 95 | public function itemsProcFunc_extendedSearchList(&$params, &$pObj) { |
||
|
1 ignored issue
–
show
|
|||
| 96 | $pages = $params['row']['pages']; |
||
| 97 | if (!empty($pages)) { |
||
| 98 | // There is a strange behavior where the uid from the flexform is prepended by the table's name and appended by its title. |
||
| 99 | // i.e. instead of "18" it reads "pages_18|Title" |
||
| 100 | if (!\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($pages)) { |
||
| 101 | $_parts = explode('|', $pages); |
||
| 102 | $pages = array_pop(explode('_', $_parts[0])); |
||
| 103 | } |
||
| 104 | if ($pages > 0) { |
||
| 105 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
||
| 106 | 'label,index_name', |
||
| 107 | 'tx_dlf_metadata', |
||
| 108 | 'index_indexed=1' |
||
| 109 | .' AND pid='.intval($pages) |
||
| 110 | .' AND (sys_language_uid IN (-1,0) OR l18n_parent=0)' |
||
| 111 | .Helper::whereClause('tx_dlf_metadata'), |
||
| 112 | '', |
||
| 113 | 'sorting', |
||
| 114 | '' |
||
| 115 | ); |
||
| 116 | if ($GLOBALS['TYPO3_DB']->sql_num_rows($result) > 0) { |
||
| 117 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_row($result)) { |
||
| 118 | $params['items'][] = $resArray; |
||
| 119 | } |
||
| 120 | } |
||
| 121 | } |
||
| 122 | } |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * Helper to get flexform's items array for plugin "Search" |
||
| 127 | * |
||
| 128 | * @access public |
||
| 129 | * |
||
| 130 | * @param array &$params: An array with parameters |
||
| 131 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 132 | * |
||
| 133 | * @return void |
||
| 134 | */ |
||
| 135 | public function itemsProcFunc_facetsList(&$params, &$pObj) { |
||
| 159 | } |
||
| 160 | } |
||
| 161 | } |
||
| 162 | } |
||
| 163 | } |
||
| 164 | |||
| 165 | /** |
||
| 166 | * Helper to get flexform's items array for plugin "OaiPmh" |
||
| 167 | * |
||
| 168 | * @access public |
||
| 169 | * |
||
| 170 | * @param array &$params: An array with parameters |
||
| 171 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 172 | * |
||
| 173 | * @return void |
||
| 174 | */ |
||
| 175 | public function itemsProcFunc_libraryList(&$params, &$pObj) { |
||
| 198 | } |
||
| 199 | } |
||
| 200 | } |
||
| 201 | } |
||
| 202 | } |
||
| 203 | |||
| 204 | /** |
||
| 205 | * Helper to get flexform's items array for plugin "Search" |
||
| 206 | * |
||
| 207 | * @access public |
||
| 208 | * |
||
| 209 | * @param array &$params: An array with parameters |
||
| 210 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 211 | * |
||
| 212 | * @return void |
||
| 213 | */ |
||
| 214 | public function itemsProcFunc_solrList(&$params, &$pObj) { |
||
| 237 | } |
||
| 238 | } |
||
| 239 | } |
||
| 240 | } |
||
| 241 | } |
||
| 242 | } |
||
| 243 | |||
| 244 | /** |
||
| 245 | * Helper to get flexform's items array for plugin "Toolbox" |
||
| 246 | * |
||
| 247 | * @access public |
||
| 248 | * |
||
| 249 | * @param array &$params: An array with parameters |
||
| 250 | * @param \TYPO3\CMS\Backend\Form\FormEngine &$pObj: The parent object |
||
| 251 | * |
||
| 252 | * @return void |
||
| 253 | */ |
||
| 254 | public function itemsProcFunc_toolList(&$params, &$pObj) { |
||
| 257 | } |
||
| 258 | } |
||
| 260 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths