mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 22:24:42 +09:00
Rector & PHP-CS-Fixer Improvements (#2047)
* Added the rector cache to the action * Enabled PHP-CS fixer for the tests & library folder * Use the PHP-CS-Fixer Cache * Fix the tests * Ensure the Sentry placeholder isn't messed up from CS changes * Typo..
This commit is contained in:
1 parent
bb630852d9
commit
32d011225b
361 files changed
+17168
-17542
No files matched your search
@@ -1,60 +1,57 @@
|
||||
<?php
|
||||
|
||||
class Example
|
||||
{
|
||||
public function __construct(private readonly ?array $config = null)
|
||||
{
|
||||
}
|
||||
|
||||
public function activate($service, $order, $params = array())
|
||||
|
||||
public function activate($service, $order, $params = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function renew($service, $order, $params = array())
|
||||
|
||||
public function renew($service, $order, $params = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function suspend($service, $order, $params = array())
|
||||
|
||||
public function suspend($service, $order, $params = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function unsuspend($service, $order, $params = array())
|
||||
|
||||
public function unsuspend($service, $order, $params = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function cancel($service, $order, $params = array())
|
||||
|
||||
public function cancel($service, $order, $params = [])
|
||||
{
|
||||
return $this->suspend($service, $order, $params);
|
||||
}
|
||||
|
||||
public function uncancel($service, $order, $params = array())
|
||||
|
||||
public function uncancel($service, $order, $params = [])
|
||||
{
|
||||
return $this->unsuspend($service, $order, $params);
|
||||
}
|
||||
|
||||
public function delete($service, $order, $params = array())
|
||||
|
||||
public function delete($service, $order, $params = [])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function get_config()
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Custom function to return passed params
|
||||
*
|
||||
* Custom function to return passed params.
|
||||
*
|
||||
* @param type $service
|
||||
* @param type $order
|
||||
* @param type $params
|
||||
* @return type
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function return_params($service, $order, $params = array())
|
||||
public function return_params($service, $order, $params = [])
|
||||
{
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user