We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -10,55 +10,55 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | return array ( |
| 13 | - 'ctrl' => array ( |
|
| 14 | - 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
|
| 15 | - 'label' => 'label', |
|
| 16 | - 'sortby' => 'sorting', |
|
| 17 | - 'delete' => 'deleted', |
|
| 18 | - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfemail.png', |
|
| 19 | - 'rootLevel' => 0, |
|
| 20 | - 'dividers2tabs' => 2, |
|
| 21 | - 'searchFields' => 'label,name,mail', |
|
| 22 | - ), |
|
| 23 | - 'interface' => array ( |
|
| 24 | - 'showRecordFieldList' => 'label,name,mail', |
|
| 25 | - ), |
|
| 26 | - 'feInterface' => array ( |
|
| 27 | - 'fe_admin_fieldList' => '', |
|
| 28 | - ), |
|
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 31 | - 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
|
| 32 | - 'config' => array ( |
|
| 33 | - 'type' => 'input', |
|
| 34 | - 'size' => 30, |
|
| 35 | - 'max' => 255, |
|
| 36 | - 'eval' => 'required', |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 'name' => array ( |
|
| 40 | - 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.name', |
|
| 41 | - 'config' => array ( |
|
| 42 | - 'type' => 'input', |
|
| 43 | - 'size' => 30, |
|
| 44 | - 'max' => 255, |
|
| 45 | - 'eval' => '', |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - 'mail' => array ( |
|
| 49 | - 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.mail', |
|
| 50 | - 'config' => array ( |
|
| 51 | - 'type' => 'input', |
|
| 52 | - 'size' => 30, |
|
| 53 | - 'max' => 255, |
|
| 54 | - 'eval' => 'unique', |
|
| 55 | - ), |
|
| 56 | - ), |
|
| 57 | - ), |
|
| 58 | - 'types' => array ( |
|
| 59 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 60 | - ), |
|
| 61 | - 'palettes' => array ( |
|
| 62 | - '1' => array ('showitem' => ''), |
|
| 63 | - ), |
|
| 13 | + 'ctrl' => array ( |
|
| 14 | + 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
|
| 15 | + 'label' => 'label', |
|
| 16 | + 'sortby' => 'sorting', |
|
| 17 | + 'delete' => 'deleted', |
|
| 18 | + 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfemail.png', |
|
| 19 | + 'rootLevel' => 0, |
|
| 20 | + 'dividers2tabs' => 2, |
|
| 21 | + 'searchFields' => 'label,name,mail', |
|
| 22 | + ), |
|
| 23 | + 'interface' => array ( |
|
| 24 | + 'showRecordFieldList' => 'label,name,mail', |
|
| 25 | + ), |
|
| 26 | + 'feInterface' => array ( |
|
| 27 | + 'fe_admin_fieldList' => '', |
|
| 28 | + ), |
|
| 29 | + 'columns' => array ( |
|
| 30 | + 'label' => array ( |
|
| 31 | + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
|
| 32 | + 'config' => array ( |
|
| 33 | + 'type' => 'input', |
|
| 34 | + 'size' => 30, |
|
| 35 | + 'max' => 255, |
|
| 36 | + 'eval' => 'required', |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 'name' => array ( |
|
| 40 | + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.name', |
|
| 41 | + 'config' => array ( |
|
| 42 | + 'type' => 'input', |
|
| 43 | + 'size' => 30, |
|
| 44 | + 'max' => 255, |
|
| 45 | + 'eval' => '', |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + 'mail' => array ( |
|
| 49 | + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.mail', |
|
| 50 | + 'config' => array ( |
|
| 51 | + 'type' => 'input', |
|
| 52 | + 'size' => 30, |
|
| 53 | + 'max' => 255, |
|
| 54 | + 'eval' => 'unique', |
|
| 55 | + ), |
|
| 56 | + ), |
|
| 57 | + ), |
|
| 58 | + 'types' => array ( |
|
| 59 | + '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 60 | + ), |
|
| 61 | + 'palettes' => array ( |
|
| 62 | + '1' => array ('showitem' => ''), |
|
| 63 | + ), |
|
| 64 | 64 | ); |
| 65 | 65 | \ No newline at end of file |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'sortby' => 'sorting', |
@@ -20,34 +20,34 @@ discard block |
||
| 20 | 20 | 'dividers2tabs' => 2, |
| 21 | 21 | 'searchFields' => 'label,name,mail', |
| 22 | 22 | ), |
| 23 | - 'interface' => array ( |
|
| 23 | + 'interface' => array( |
|
| 24 | 24 | 'showRecordFieldList' => 'label,name,mail', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 29 | + 'columns' => array( |
|
| 30 | + 'label' => array( |
|
| 31 | 31 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail', |
| 32 | - 'config' => array ( |
|
| 32 | + 'config' => array( |
|
| 33 | 33 | 'type' => 'input', |
| 34 | 34 | 'size' => 30, |
| 35 | 35 | 'max' => 255, |
| 36 | 36 | 'eval' => 'required', |
| 37 | 37 | ), |
| 38 | 38 | ), |
| 39 | - 'name' => array ( |
|
| 39 | + 'name' => array( |
|
| 40 | 40 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.name', |
| 41 | - 'config' => array ( |
|
| 41 | + 'config' => array( |
|
| 42 | 42 | 'type' => 'input', |
| 43 | 43 | 'size' => 30, |
| 44 | 44 | 'max' => 255, |
| 45 | 45 | 'eval' => '', |
| 46 | 46 | ), |
| 47 | 47 | ), |
| 48 | - 'mail' => array ( |
|
| 48 | + 'mail' => array( |
|
| 49 | 49 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_mail.mail', |
| 50 | - 'config' => array ( |
|
| 50 | + 'config' => array( |
|
| 51 | 51 | 'type' => 'input', |
| 52 | 52 | 'size' => 30, |
| 53 | 53 | 'max' => 255, |
@@ -55,10 +55,10 @@ discard block |
||
| 55 | 55 | ), |
| 56 | 56 | ), |
| 57 | 57 | ), |
| 58 | - 'types' => array ( |
|
| 59 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 58 | + 'types' => array( |
|
| 59 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_mail.tab1, label;;;;1-1-1, name;;;;2-2-2, mail;;;;2-2-2'), |
|
| 60 | 60 | ), |
| 61 | - 'palettes' => array ( |
|
| 62 | - '1' => array ('showitem' => ''), |
|
| 61 | + 'palettes' => array( |
|
| 62 | + '1' => array('showitem' => ''), |
|
| 63 | 63 | ), |
| 64 | 64 | ); |
| 65 | 65 | \ No newline at end of file |
@@ -10,46 +10,46 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | return array ( |
| 13 | - 'ctrl' => array ( |
|
| 14 | - 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer', |
|
| 15 | - 'label' => 'label', |
|
| 16 | - 'default_sortby' => 'ORDER BY label', |
|
| 17 | - 'delete' => 'deleted', |
|
| 18 | - 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfprinter.png', |
|
| 19 | - 'rootLevel' => 0, |
|
| 20 | - 'dividers2tabs' => 2, |
|
| 21 | - 'searchFields' => 'label,print', |
|
| 22 | - ), |
|
| 23 | - 'interface' => array ( |
|
| 24 | - 'showRecordFieldList' => 'label,name,address', |
|
| 25 | - ), |
|
| 26 | - 'feInterface' => array ( |
|
| 27 | - 'fe_admin_fieldList' => '', |
|
| 28 | - ), |
|
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 31 | - 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.label', |
|
| 32 | - 'config' => array ( |
|
| 33 | - 'type' => 'input', |
|
| 34 | - 'size' => 30, |
|
| 35 | - 'max' => 255, |
|
| 36 | - 'eval' => 'required,trim', |
|
| 37 | - ), |
|
| 38 | - ), |
|
| 39 | - 'print' => array ( |
|
| 40 | - 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.printcommand', |
|
| 41 | - 'config' => array ( |
|
| 42 | - 'type' => 'input', |
|
| 43 | - 'size' => 30, |
|
| 44 | - 'max' => 255, |
|
| 45 | - 'eval' => 'required', |
|
| 46 | - ), |
|
| 47 | - ), |
|
| 48 | - ), |
|
| 49 | - 'types' => array ( |
|
| 50 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 51 | - ), |
|
| 52 | - 'palettes' => array ( |
|
| 53 | - '1' => array ('showitem' => ''), |
|
| 54 | - ), |
|
| 13 | + 'ctrl' => array ( |
|
| 14 | + 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer', |
|
| 15 | + 'label' => 'label', |
|
| 16 | + 'default_sortby' => 'ORDER BY label', |
|
| 17 | + 'delete' => 'deleted', |
|
| 18 | + 'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('dlf').'res/icons/txdlfprinter.png', |
|
| 19 | + 'rootLevel' => 0, |
|
| 20 | + 'dividers2tabs' => 2, |
|
| 21 | + 'searchFields' => 'label,print', |
|
| 22 | + ), |
|
| 23 | + 'interface' => array ( |
|
| 24 | + 'showRecordFieldList' => 'label,name,address', |
|
| 25 | + ), |
|
| 26 | + 'feInterface' => array ( |
|
| 27 | + 'fe_admin_fieldList' => '', |
|
| 28 | + ), |
|
| 29 | + 'columns' => array ( |
|
| 30 | + 'label' => array ( |
|
| 31 | + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.label', |
|
| 32 | + 'config' => array ( |
|
| 33 | + 'type' => 'input', |
|
| 34 | + 'size' => 30, |
|
| 35 | + 'max' => 255, |
|
| 36 | + 'eval' => 'required,trim', |
|
| 37 | + ), |
|
| 38 | + ), |
|
| 39 | + 'print' => array ( |
|
| 40 | + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.printcommand', |
|
| 41 | + 'config' => array ( |
|
| 42 | + 'type' => 'input', |
|
| 43 | + 'size' => 30, |
|
| 44 | + 'max' => 255, |
|
| 45 | + 'eval' => 'required', |
|
| 46 | + ), |
|
| 47 | + ), |
|
| 48 | + ), |
|
| 49 | + 'types' => array ( |
|
| 50 | + '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 51 | + ), |
|
| 52 | + 'palettes' => array ( |
|
| 53 | + '1' => array ('showitem' => ''), |
|
| 54 | + ), |
|
| 55 | 55 | ); |
| 56 | 56 | \ No newline at end of file |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'default_sortby' => 'ORDER BY label', |
@@ -20,25 +20,25 @@ discard block |
||
| 20 | 20 | 'dividers2tabs' => 2, |
| 21 | 21 | 'searchFields' => 'label,print', |
| 22 | 22 | ), |
| 23 | - 'interface' => array ( |
|
| 23 | + 'interface' => array( |
|
| 24 | 24 | 'showRecordFieldList' => 'label,name,address', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'columns' => array ( |
|
| 30 | - 'label' => array ( |
|
| 29 | + 'columns' => array( |
|
| 30 | + 'label' => array( |
|
| 31 | 31 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.label', |
| 32 | - 'config' => array ( |
|
| 32 | + 'config' => array( |
|
| 33 | 33 | 'type' => 'input', |
| 34 | 34 | 'size' => 30, |
| 35 | 35 | 'max' => 255, |
| 36 | 36 | 'eval' => 'required,trim', |
| 37 | 37 | ), |
| 38 | 38 | ), |
| 39 | - 'print' => array ( |
|
| 39 | + 'print' => array( |
|
| 40 | 40 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_printer.printcommand', |
| 41 | - 'config' => array ( |
|
| 41 | + 'config' => array( |
|
| 42 | 42 | 'type' => 'input', |
| 43 | 43 | 'size' => 30, |
| 44 | 44 | 'max' => 255, |
@@ -46,10 +46,10 @@ discard block |
||
| 46 | 46 | ), |
| 47 | 47 | ), |
| 48 | 48 | ), |
| 49 | - 'types' => array ( |
|
| 50 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 49 | + 'types' => array( |
|
| 50 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_printer.tab1, label;;;;1-1-1, print;;;;2-2-2'), |
|
| 51 | 51 | ), |
| 52 | - 'palettes' => array ( |
|
| 53 | - '1' => array ('showitem' => ''), |
|
| 52 | + 'palettes' => array( |
|
| 53 | + '1' => array('showitem' => ''), |
|
| 54 | 54 | ), |
| 55 | 55 | ); |
| 56 | 56 | \ No newline at end of file |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -return array ( |
|
| 13 | - 'ctrl' => array ( |
|
| 12 | +return array( |
|
| 13 | + 'ctrl' => array( |
|
| 14 | 14 | 'title' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores', |
| 15 | 15 | 'label' => 'label', |
| 16 | 16 | 'tstamp' => 'tstamp', |
@@ -23,25 +23,25 @@ discard block |
||
| 23 | 23 | 'dividers2tabs' => 2, |
| 24 | 24 | 'searchFields' => 'label,index_name', |
| 25 | 25 | ), |
| 26 | - 'feInterface' => array ( |
|
| 26 | + 'feInterface' => array( |
|
| 27 | 27 | 'fe_admin_fieldList' => '', |
| 28 | 28 | ), |
| 29 | - 'interface' => array ( |
|
| 29 | + 'interface' => array( |
|
| 30 | 30 | 'showRecordFieldList' => 'label,index_name', |
| 31 | 31 | ), |
| 32 | - 'columns' => array ( |
|
| 33 | - 'label' => array ( |
|
| 32 | + 'columns' => array( |
|
| 33 | + 'label' => array( |
|
| 34 | 34 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.label', |
| 35 | - 'config' => array ( |
|
| 35 | + 'config' => array( |
|
| 36 | 36 | 'type' => 'input', |
| 37 | 37 | 'size' => 30, |
| 38 | 38 | 'max' => 255, |
| 39 | 39 | 'eval' => 'required,trim', |
| 40 | 40 | ), |
| 41 | 41 | ), |
| 42 | - 'index_name' => array ( |
|
| 42 | + 'index_name' => array( |
|
| 43 | 43 | 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.index_name', |
| 44 | - 'config' => array ( |
|
| 44 | + 'config' => array( |
|
| 45 | 45 | 'type' => 'none', |
| 46 | 46 | 'size' => 30, |
| 47 | 47 | 'max' => 255, |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | ), |
| 50 | 50 | ), |
| 51 | 51 | ), |
| 52 | - 'types' => array ( |
|
| 53 | - '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.tab1, label;;;;1-1-1, index_name;;;;2-2-2'), |
|
| 52 | + 'types' => array( |
|
| 53 | + '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.tab1, label;;;;1-1-1, index_name;;;;2-2-2'), |
|
| 54 | 54 | ), |
| 55 | - 'palettes' => array ( |
|
| 56 | - '1' => array ('showitem' => ''), |
|
| 55 | + 'palettes' => array( |
|
| 56 | + '1' => array('showitem' => ''), |
|
| 57 | 57 | ), |
| 58 | 58 | ); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @var array |
| 44 | 44 | * @access protected |
| 45 | 45 | */ |
| 46 | - protected $piVars = array (); |
|
| 46 | + protected $piVars = array(); |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * This holds the DLF parameter prefix |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | if (!empty($this->piVars['id'])) { |
| 162 | 162 | |
| 163 | 163 | // Get instance of tx_dlf_document. |
| 164 | - $this->doc =& tx_dlf_document::getInstance($this->piVars['id']); |
|
| 164 | + $this->doc = & tx_dlf_document::getInstance($this->piVars['id']); |
|
| 165 | 165 | |
| 166 | 166 | if (!$this->doc->ready) { |
| 167 | 167 | |
@@ -402,7 +402,7 @@ |
||
| 402 | 402 | |
| 403 | 403 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'] as $class => $label) { |
| 404 | 404 | |
| 405 | - $params['items'][] = array ($GLOBALS['LANG']->sL($label), $class); |
|
| 405 | + $params['items'][] = array($GLOBALS['LANG']->sL($label), $class); |
|
| 406 | 406 | |
| 407 | 407 | } |
| 408 | 408 | |
@@ -131,8 +131,8 @@ discard block |
||
| 131 | 131 | // Trim path and append trailing slash. |
| 132 | 132 | $path = (trim($conf['solrPath'], '/') ? trim($conf['solrPath'], '/').'/' : ''); |
| 133 | 133 | |
| 134 | - $context = stream_context_create(array ( |
|
| 135 | - 'http' => array ( |
|
| 134 | + $context = stream_context_create(array( |
|
| 135 | + 'http' => array( |
|
| 136 | 136 | 'method' => 'GET', |
| 137 | 137 | 'user_agent' => ($conf['useragent'] ? $conf['useragent'] : ini_get('user_agent')) |
| 138 | 138 | ) |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | // Solr core could not be created, thus unset field array. |
| 169 | - $fieldArray = array (); |
|
| 169 | + $fieldArray = array(); |
|
| 170 | 170 | |
| 171 | 171 | break; |
| 172 | 172 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | if (count($fieldArray) < 2) { |
| 245 | 245 | |
| 246 | 246 | // Unset the whole field array. |
| 247 | - $fieldArray = array (); |
|
| 247 | + $fieldArray = array(); |
|
| 248 | 248 | |
| 249 | 249 | } else { |
| 250 | 250 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | } else { |
| 338 | 338 | |
| 339 | 339 | // Reindex document. |
| 340 | - $doc =& tx_dlf_document::getInstance($id); |
|
| 340 | + $doc = & tx_dlf_document::getInstance($id); |
|
| 341 | 341 | |
| 342 | 342 | if ($doc->ready) { |
| 343 | 343 | |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | */ |
| 383 | 383 | public function processCmdmap_postProcess($command, $table, $id, $value, $pObj) { |
| 384 | 384 | |
| 385 | - if (in_array($command, array ('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 385 | + if (in_array($command, array('move', 'delete', 'undelete')) && $table == 'tx_dlf_documents') { |
|
| 386 | 386 | |
| 387 | 387 | // Get Solr core. |
| 388 | 388 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | case 'undelete': |
| 423 | 423 | |
| 424 | 424 | // Reindex document. |
| 425 | - $doc =& tx_dlf_document::getInstance($id); |
|
| 425 | + $doc = & tx_dlf_document::getInstance($id); |
|
| 426 | 426 | |
| 427 | 427 | if ($doc->ready) { |
| 428 | 428 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @var array |
| 26 | 26 | * @access protected |
| 27 | 27 | */ |
| 28 | - protected $conf = array (); |
|
| 28 | + protected $conf = array(); |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * This holds the output ready to return |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | // Build request URI. |
| 68 | 68 | $url = 'http://'.$host.':'.$port.'/'.$path.'admin/cores?wt=xml'; |
| 69 | 69 | |
| 70 | - $context = stream_context_create(array ( |
|
| 71 | - 'http' => array ( |
|
| 70 | + $context = stream_context_create(array( |
|
| 71 | + 'http' => array( |
|
| 72 | 72 | 'method' => 'GET', |
| 73 | 73 | 'user_agent' => (!empty($this->conf['useragent']) ? $this->conf['useragent'] : ini_get('user_agent')) |
| 74 | 74 | ) |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | // Check if user is configured properly. |
| 154 | - if (count(array_diff(array ($groupUid), $resArray['usergroup'])) == 0 |
|
| 154 | + if (count(array_diff(array($groupUid), $resArray['usergroup'])) == 0 |
|
| 155 | 155 | && !$resArray['admin'] |
| 156 | 156 | && $GLOBALS['TYPO3_DB']->sql_num_rows($result2) > 0) { |
| 157 | 157 | |
@@ -170,11 +170,11 @@ discard block |
||
| 170 | 170 | if (!$checkOnly && $groupUid) { |
| 171 | 171 | |
| 172 | 172 | // Keep exisiting values and add the new ones. |
| 173 | - $usergroup = array_unique(array_merge(array ($groupUid), $resArray['usergroup'])); |
|
| 173 | + $usergroup = array_unique(array_merge(array($groupUid), $resArray['usergroup'])); |
|
| 174 | 174 | |
| 175 | 175 | // Try to configure user. |
| 176 | 176 | $data = array(); |
| 177 | - $data['be_users'][$resArray['uid']] = array ( |
|
| 177 | + $data['be_users'][$resArray['uid']] = array( |
|
| 178 | 178 | 'admin' => 0, |
| 179 | 179 | 'usergroup' => implode(',', $usergroup), |
| 180 | 180 | $GLOBALS['TCA']['be_users']['ctrl']['enablecolumns']['disabled'] => 0, |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $tempUid = uniqid('NEW'); |
| 232 | 232 | |
| 233 | 233 | $data = array(); |
| 234 | - $data['be_users'][$tempUid] = array ( |
|
| 234 | + $data['be_users'][$tempUid] = array( |
|
| 235 | 235 | 'pid' => 0, |
| 236 | 236 | 'username' => '_cli_dlf', |
| 237 | 237 | 'password' => md5($tempUid), |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * |
| 297 | 297 | * @return integer UID of usergroup or 0 if something is wrong |
| 298 | 298 | */ |
| 299 | - protected function checkCliGroup($checkOnly, $settings = array ()) { |
|
| 299 | + protected function checkCliGroup($checkOnly, $settings = array()) { |
|
| 300 | 300 | |
| 301 | 301 | // Set default return value. |
| 302 | 302 | $grpUid = 0; |
@@ -304,9 +304,9 @@ discard block |
||
| 304 | 304 | // Set default configuration for usergroup. |
| 305 | 305 | if (empty($settings)) { |
| 306 | 306 | |
| 307 | - $settings = array ( |
|
| 308 | - 'non_exclude_fields' => array (), |
|
| 309 | - 'tables_select' => array ( |
|
| 307 | + $settings = array( |
|
| 308 | + 'non_exclude_fields' => array(), |
|
| 309 | + 'tables_select' => array( |
|
| 310 | 310 | 'tx_dlf_documents', |
| 311 | 311 | 'tx_dlf_collections', |
| 312 | 312 | 'tx_dlf_libraries', |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | 'tx_dlf_formats', |
| 317 | 317 | 'tx_dlf_solrcores' |
| 318 | 318 | ), |
| 319 | - 'tables_modify' => array ( |
|
| 319 | + 'tables_modify' => array( |
|
| 320 | 320 | 'tx_dlf_documents', |
| 321 | 321 | 'tx_dlf_collections', |
| 322 | 322 | 'tx_dlf_libraries' |
@@ -342,10 +342,10 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | // Check if group "_cli_dlf" exists and is not disabled. |
| 344 | 344 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 345 | - 'uid,non_exclude_fields,tables_select,tables_modify,' . |
|
| 345 | + 'uid,non_exclude_fields,tables_select,tables_modify,'. |
|
| 346 | 346 | $GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'], |
| 347 | 347 | 'be_groups', |
| 348 | - 'title=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups') . |
|
| 348 | + 'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups'). |
|
| 349 | 349 | \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups') |
| 350 | 350 | ); |
| 351 | 351 | |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | */ |
| 567 | 567 | public function checkMetadataFormats(&$params, &$pObj) { |
| 568 | 568 | |
| 569 | - $nsDefined = array ( |
|
| 569 | + $nsDefined = array( |
|
| 570 | 570 | 'MODS' => FALSE, |
| 571 | 571 | 'TEIHDR' => FALSE |
| 572 | 572 | ); |
@@ -585,12 +585,12 @@ discard block |
||
| 585 | 585 | } |
| 586 | 586 | |
| 587 | 587 | // Build data array. |
| 588 | - $data = array (); |
|
| 588 | + $data = array(); |
|
| 589 | 589 | |
| 590 | 590 | // Add MODS namespace. |
| 591 | 591 | if (!$nsDefined['MODS']) { |
| 592 | 592 | |
| 593 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 593 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 594 | 594 | 'pid' => 0, |
| 595 | 595 | 'type' => 'MODS', |
| 596 | 596 | 'root' => 'mods', |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | // Add TEIHDR namespace. |
| 604 | 604 | if (!$nsDefined['TEIHDR']) { |
| 605 | 605 | |
| 606 | - $data['tx_dlf_formats'][uniqid('NEW')] = array ( |
|
| 606 | + $data['tx_dlf_formats'][uniqid('NEW')] = array( |
|
| 607 | 607 | 'pid' => 0, |
| 608 | 608 | 'type' => 'TEIHDR', |
| 609 | 609 | 'root' => 'teiHeader', |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * |
| 32 | 32 | * @return void |
| 33 | 33 | */ |
| 34 | - public function construct_postProcessRecordId(SimpleXMLElement &$xml, &$record_id) { |
|
| 34 | + public function construct_postProcessRecordId(SimpleXMLElement&$xml, &$record_id) { |
|
| 35 | 35 | |
| 36 | 36 | if (!$record_id) { |
| 37 | 37 | |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | 'tx_dlf_modIndexing' => $extensionPath.'modules/indexing/index.php', |
| 34 | 34 | 'tx_dlf_modNewclient' => $extensionPath.'modules/newclient/index.php', |
| 35 | 35 | 'tx_dlf_audioplayer' => $extensionPath.'plugins/audioplayer/class.tx_dlf_audioplayer.php', |
| 36 | - 'tx_dlf_basket' => $extensionPath.'plugins/basket/class.tx_dlf_basket.php', |
|
| 37 | - 'tx_dlf_collection' => $extensionPath.'plugins/collection/class.tx_dlf_collection.php', |
|
| 36 | + 'tx_dlf_basket' => $extensionPath.'plugins/basket/class.tx_dlf_basket.php', |
|
| 37 | + 'tx_dlf_collection' => $extensionPath.'plugins/collection/class.tx_dlf_collection.php', |
|
| 38 | 38 | 'tx_dlf_feeds' => $extensionPath.'plugins/feeds/class.tx_dlf_feeds.php', |
| 39 | 39 | 'tx_dlf_listview' => $extensionPath.'plugins/listview/class.tx_dlf_listview.php', |
| 40 | 40 | 'tx_dlf_metadata' => $extensionPath.'plugins/metadata/class.tx_dlf_metadata.php', |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | $extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('dlf'); |
| 13 | 13 | |
| 14 | -return array ( |
|
| 14 | +return array( |
|
| 15 | 15 | 'tx_dlf_cli' => $extensionPath.'cli/class.tx_dlf_cli.php', |
| 16 | 16 | 'tx_dlf_alto' => $extensionPath.'common/class.tx_dlf_alto.php', |
| 17 | 17 | 'tx_dlf_document' => $extensionPath.'common/class.tx_dlf_document.php', |