for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wabel\Zoho\CRM\Copy;
use function Stringy\create as s;
use Wabel\Zoho\CRM\AbstractZohoDao;
/**
* ZohoDatabaseHelper : Helper class.
*/
class ZohoDatabaseHelper
{
* Computes the name of the table based on the DAO plural module name.
*
* @param AbstractZohoDao $dao
* @return string
public static function getTableName(AbstractZohoDao $dao, $prefix)
$tableName = $prefix.$dao->getPluralModuleName();
getPluralModuleName()
Wabel\Zoho\CRM\AbstractZohoDao
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.
$tableName = s($tableName)->upperCamelize()->underscored();
return (string) $tableName;
}
public static function getFlatFields(array $fields)
$flatFields = [];
foreach ($fields as $cat) {
$flatFields = array_merge($flatFields, $cat);
return $flatFields;
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.