Skip to content

Commit

Permalink
Standardize phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersoncasimir committed Jan 28, 2025
1 parent ffbc5db commit 5833aca
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 64 deletions.
8 changes: 1 addition & 7 deletions modules/instrument_manager/php/instrument_data.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ use LORIS\server_processes_manager as SP;
/**
* Upload instrument data
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Loris Team <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
*/
class Instrument_Data extends \NDB_Page
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,14 @@
/**
* This file contains code to perform a complete MRI upload on the server.
*
* PHP Version 5
*
* @category ServerProcessLauncher
* @package Loris
* @author Nicolas Brossard <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://github.com/aces/Loris
*/
namespace LORIS\server_processes_manager;

/**
* A class for holding a set of functions to parse large instrument data uploads
*
* @category ServerProcessLauncher
* @package Loris
* @author Nicolas Brossard <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://github.com/aces/Loris
*/

class ParseInstrumentDataServerProcess extends AbstractServerProcess
Expand Down
12 changes: 0 additions & 12 deletions php/libraries/CSVParser.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
/**
* This file contains a class used to parse csv files
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/

namespace LORIS;
Expand All @@ -20,13 +14,7 @@ use SplFileObject;
/**
* This class is used as a helper for parsing csv files
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/
class CSVParser
{
Expand Down
12 changes: 0 additions & 12 deletions php/libraries/InstrumentDataParser.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
/**
* This file contains a class used to parse Instrument Data csv files
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/

namespace LORIS;
Expand All @@ -27,13 +21,7 @@ use \LORIS\Data\Dictionary\DictionaryItem as DictionaryItem;
/**
* This class is used to parse instrument data
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/
class InstrumentDataParser extends CSVParser
{
Expand Down
10 changes: 0 additions & 10 deletions test/unittests/CSVParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,15 @@
/**
* Unit test for CSV Parser class
*
* PHP Version 8
*
* @category Tests
* @package Main
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris
*/
require_once __DIR__ . '/../../vendor/autoload.php';

use PHPUnit\Framework\TestCase;
/**
* Unit test for CSV Parser class
*
* @category Tests
* @package Main
* @author Jefferson Casimir <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris
*/
class CSVParserTest extends TestCase
{
Expand Down
6 changes: 0 additions & 6 deletions tools/monitor_instrument_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
* Checks and update status of running processes
* Intended to be periodically run from cron
*
* PHP Version 8
*
* @category Main
* @package LORIS
* @author Loris Team <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
* @link https://www.github.com/aces/Loris/
*/

namespace LORIS\server_processes_manager;
Expand Down
9 changes: 2 additions & 7 deletions tools/parse_instrument_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
* "Usage: php parse_instrument_data.php instrument fileLocation userID examinerID"
* "Ex: php parse_instrument_data.php bmi /data/uploads/bmi_data.csv admin admin";
*
* PHP Version 8
*
* @category Main
* @package Loris
* @author Loris Team <[email protected]>
* @license Loris license
* @link https://www.github.com/aces/Loris/
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3
*/

require_once __DIR__ . "/generic_includes.php";
use LORIS\InstrumentDataParser;

Expand Down

0 comments on commit 5833aca

Please sign in to comment.