Skip to content

Commit

Permalink
Made changes to improve the code style. (#29)
Browse files Browse the repository at this point in the history
* Corrected the code style.

1. Replaced the wrong class doc comment with an example format in
\administrator\components\com_workflow\Helper\WorkflowHelper.php. Change
the example format with the relevant content.
2. Rest I corrected the alignment.

* Changes return

replace the class doc exmple format with correct one :)
  • Loading branch information
shubhamnba2009 authored and Janek committed Jun 26, 2017
1 parent 3652f71 commit 6585f4a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
6 changes: 3 additions & 3 deletions administrator/components/com_workflow/Controller/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class Status extends Form
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* @param array $config An optional associative array of configuration settings.
* @param MvcFactoryInterface $factory The factory.
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
*
* @since 1.6
* @see \JControllerLegacy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class Transition extends Form
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* @param array $config An optional associative array of configuration settings.
* @param MvcFactoryInterface $factory The factory.
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
*
* @since 1.6
* @see \JControllerLegacy
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_workflow/Controller/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class Workflow extends Form
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
* @param array $config An optional associative array of configuration settings.
* @param MvcFactoryInterface $factory The factory.
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
* @param \CMSApplication $app The JApplication for the dispatcher
* @param \JInput $input Input
*
* @since 1.6
* @see \JControllerLegacy
Expand Down
22 changes: 16 additions & 6 deletions administrator/components/com_workflow/Helper/WorkflowHelper.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: janek
* Date: 20.06.17
* Time: 19:59
* @package Joomla.Administrator
* @subpackage com_workflow
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace Joomla\Component\Workflow\Administrator\Helper;
Expand All @@ -12,12 +13,20 @@

use Joomla\CMS\Helper\ContentHelper;

/**
* The first example class, this is in the same
* package as declared at the start of file but
* this example has a defined subpackage
*
* @since 4.0
*/
class WorkflowHelper extends ContentHelper
{
/**
* Configure the Linkbar.
*
* @param string $vName The name of the active view.
*
* @return void
*
* @since 4.0
Expand All @@ -41,8 +50,9 @@ public static function addSubmenu($vName)
/**
* Get SQL for select statuses field
*
* @param string $fieldName The name of field to which will be that sql
* @param int $workflowID ID of workflow
* @param string $fieldName The name of field to which will be that sql
* @param int $workflowID ID of workflow
*
* @return string
*
* @since 4.0
Expand Down

0 comments on commit 6585f4a

Please sign in to comment.