Skip to content

Commit

Permalink
cleanup code according to PSR-2 styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Oct 13, 2016
1 parent 92a8840 commit 7c935c7
Show file tree
Hide file tree
Showing 32 changed files with 5,772 additions and 5,466 deletions.
62 changes: 29 additions & 33 deletions Classes/Scheduler/class.tx_kesearch_indexertask.php
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
<?php

/***************************************************************
* Copyright notice
*
* (c) 2011 Andreas Kiefer <kiefer@kennziffer.com>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

* Copyright notice
* (c) 2011 Andreas Kiefer <kiefer@kennziffer.com>
* All rights reserved
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/


// include indexer class
require_once(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'Classes/indexer/class.tx_kesearch_indexer.php');

class tx_kesearch_indexertask extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
class tx_kesearch_indexertask extends \TYPO3\CMS\Scheduler\Task\AbstractTask
{

public function execute() {
public function execute()
{

// get extension configuration
$this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['ke_search']);
// get extension configuration
$this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['ke_search']);

// make indexer instance
$indexer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_kesearch_indexer');
// make indexer instance
$indexer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_kesearch_indexer');

// process
$indexer->startIndexing(true, $this->extConf, 'CLI');
// process
$indexer->startIndexing(true, $this->extConf, 'CLI');

return true;
}
}
return true;
}
}
55 changes: 25 additions & 30 deletions Classes/lib/class.tx_kesearch_config.php
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
<?php
/***************************************************************
* Copyright notice
*
* (c) 2012 Stefan Froemken
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
* Copyright notice
* (c) 2012 Stefan Froemken
* All rights reserved
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

/**
* Class to save ke_search configuration
*
* @author Stefan Froemken
* @package TYPO3
* @subpackage tx_kesearch
* @author Stefan Froemken
* @package TYPO3
* @subpackage tx_kesearch
*/
class tx_kesearch_config {
public function initialize() {

}
}
class tx_kesearch_config
{
public function initialize()
{
}
}
Loading

0 comments on commit 7c935c7

Please sign in to comment.