Skip to content

Commit

Permalink
chore: removed unused constructors and extra spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
vbyndych committed Oct 12, 2023
1 parent 0734075 commit 17de0e1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
2 changes: 1 addition & 1 deletion common/class.Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class common_Utils
* @access public
* @author Joel Bout, <joel@taotesting.com>
* @param string strarg
* @return boolean
* @return bool
*/
public static function isUri($strarg)
{
Expand Down
15 changes: 0 additions & 15 deletions core/kernel/classes/class.Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,6 @@ public function setProperty(core_kernel_classes_Property $property)
return (bool) $this->getImplementation()->setProperty($this, $property);
}

/**
* Short description of method __construct
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param string uri
* @param string debug
* @throws common_exception_Error
*/
public function __construct($uri, $debug = '')
{
parent::__construct($uri, $debug);
}


/**
* Should not be called by application code, please use
* core_kernel_classes_ResourceFactory::create() instead
Expand Down
4 changes: 2 additions & 2 deletions core/kernel/persistence/starsql/class.Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function createProperty(core_kernel_classes_Class $resource, $label = '',
$propertyClass = $this->getModel()->getClass(OntologyRdf::RDF_PROPERTY);
$properties = [
OntologyRdfs::RDFS_DOMAIN => $resource->getUri(),
GenerisRdf::PROPERTY_IS_LG_DEPENDENT => ((bool)$isLgDependent) ? GenerisRdf::GENERIS_TRUE : GenerisRdf::GENERIS_FALSE
GenerisRdf::PROPERTY_IS_LG_DEPENDENT => ((bool)$isLgDependent) ? GenerisRdf::GENERIS_TRUE : GenerisRdf::GENERIS_FALSE,
];
if (!empty($label)) {
$properties[OntologyRdfs::RDFS_LABEL] = $label;
Expand All @@ -284,7 +284,7 @@ public function createProperty(core_kernel_classes_Class $resource, $label = '',
$resource,
[
'propertyUri' => $propertyInstance->getUri(),
'propertyLabel' => $propertyInstance->getLabel()
'propertyLabel' => $propertyInstance->getLabel(),
]
)
);
Expand Down
15 changes: 0 additions & 15 deletions core/kernel/rules/class.Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,6 @@ public function evaluate($variable = [])
return (bool) $returnValue;
}

/**
* Short description of method __construct
*
* @access public
* @author firstname and lastname of author, <author@example.org>
* @param string uri
* @param string debug
* @return void
*/
public function __construct($uri, $debug = '')
{

parent::__construct($uri);
}

/**
* Short description of method getLogicalOperator
*
Expand Down

0 comments on commit 17de0e1

Please sign in to comment.