mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Fix coding standards (using PHP Coding Standards Fixer)
This commit is contained in:
@@ -1506,7 +1506,7 @@ class Arrays
|
|||||||
*
|
*
|
||||||
* @param array $array The array to verify
|
* @param array $array The array to verify
|
||||||
* @param mixed $element The element who index / key is needed
|
* @param mixed $element The element who index / key is needed
|
||||||
* @return bool|null|mixed
|
* @return bool|mixed|null
|
||||||
*/
|
*/
|
||||||
public static function getIndexOf(array $array, $element)
|
public static function getIndexOf(array $array, $element)
|
||||||
{
|
{
|
||||||
@@ -1594,7 +1594,7 @@ class Arrays
|
|||||||
*
|
*
|
||||||
* @param array $array The array with elements
|
* @param array $array The array with elements
|
||||||
* @param mixed $element Element for who next element should be returned
|
* @param mixed $element Element for who next element should be returned
|
||||||
* @return null|mixed
|
* @return mixed|null
|
||||||
*/
|
*/
|
||||||
public static function getNextElement(array $array, $element)
|
public static function getNextElement(array $array, $element)
|
||||||
{
|
{
|
||||||
@@ -1606,7 +1606,7 @@ class Arrays
|
|||||||
*
|
*
|
||||||
* @param array $array The array with elements
|
* @param array $array The array with elements
|
||||||
* @param mixed $element Element for who previous element should be returned
|
* @param mixed $element Element for who previous element should be returned
|
||||||
* @return null|mixed
|
* @return mixed|null
|
||||||
*/
|
*/
|
||||||
public static function getPreviousElement(array $array, $element)
|
public static function getPreviousElement(array $array, $element)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Date
|
|||||||
*
|
*
|
||||||
* @param int $period The period, type of period. One of DatePeriod class constants, e.g. DatePeriod::LAST_WEEK.
|
* @param int $period The period, type of period. One of DatePeriod class constants, e.g. DatePeriod::LAST_WEEK.
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @return null|DatePeriod
|
* @return DatePeriod|null
|
||||||
*/
|
*/
|
||||||
public static function getDatesForPeriod($period)
|
public static function getDatesForPeriod($period)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class QueryBuilderUtility
|
|||||||
* If null is returned, alias was not found.
|
* If null is returned, alias was not found.
|
||||||
*
|
*
|
||||||
* @param QueryBuilder $queryBuilder The query builder to retrieve root alias
|
* @param QueryBuilder $queryBuilder The query builder to retrieve root alias
|
||||||
* @return null|string
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public static function getRootAlias(QueryBuilder $queryBuilder)
|
public static function getRootAlias(QueryBuilder $queryBuilder)
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ class QueryBuilderUtility
|
|||||||
*
|
*
|
||||||
* @param QueryBuilder $queryBuilder The query builder to verify
|
* @param QueryBuilder $queryBuilder The query builder to verify
|
||||||
* @param string $property Name of property that maybe is joined
|
* @param string $property Name of property that maybe is joined
|
||||||
* @return null|string
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public static function getJoinedPropertyAlias(QueryBuilder $queryBuilder, $property)
|
public static function getJoinedPropertyAlias(QueryBuilder $queryBuilder, $property)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ class Reflection
|
|||||||
* @param string $property Name of the property
|
* @param string $property Name of the property
|
||||||
* @param int $filter (optional) Filter of properties. Uses \ReflectionProperty class constants.
|
* @param int $filter (optional) Filter of properties. Uses \ReflectionProperty class constants.
|
||||||
* By default all properties are allowed / processed.
|
* By default all properties are allowed / processed.
|
||||||
* @return null|\ReflectionProperty
|
* @return \ReflectionProperty|null
|
||||||
*/
|
*/
|
||||||
public static function getProperty($class, $property, $filter = null)
|
public static function getProperty($class, $property, $filter = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class QueryBuilderUtilityTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param QueryBuilder $queryBuilder The query builder to retrieve root alias
|
* @param QueryBuilder $queryBuilder The query builder to retrieve root alias
|
||||||
* @param null|string $rootAlias Expected root alias of given query builder
|
* @param string|null $rootAlias Expected root alias of given query builder
|
||||||
*
|
*
|
||||||
* @dataProvider provideQueryBuilderAndRootAlias
|
* @dataProvider provideQueryBuilderAndRootAlias
|
||||||
*/
|
*/
|
||||||
@@ -45,7 +45,7 @@ class QueryBuilderUtilityTest extends BaseTestCase
|
|||||||
/**
|
/**
|
||||||
* @param QueryBuilder $queryBuilder The query builder to verify
|
* @param QueryBuilder $queryBuilder The query builder to verify
|
||||||
* @param string $propertyName Name of property that maybe is joined
|
* @param string $propertyName Name of property that maybe is joined
|
||||||
* @param null|string $propertyAlias Expected alias of given property joined in given query builder
|
* @param string|null $propertyAlias Expected alias of given property joined in given query builder
|
||||||
*
|
*
|
||||||
* @dataProvider provideQueryBuilderAndPropertyAlias
|
* @dataProvider provideQueryBuilderAndPropertyAlias
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user