mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
chore: remove accidental changes
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace FireflyIII\Providers;
|
namespace FireflyIII\Providers;
|
||||||
|
@@ -19,7 +19,6 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace FireflyIII\TransactionRules\Factory;
|
namespace FireflyIII\TransactionRules\Factory;
|
||||||
@@ -28,7 +27,6 @@ use FireflyIII\Exceptions\FireflyException;
|
|||||||
use FireflyIII\Models\RuleAction;
|
use FireflyIII\Models\RuleAction;
|
||||||
use FireflyIII\Support\Domain;
|
use FireflyIII\Support\Domain;
|
||||||
use FireflyIII\TransactionRules\Actions\ActionInterface;
|
use FireflyIII\TransactionRules\Actions\ActionInterface;
|
||||||
use FireflyIII\TransactionRules\Expressions\ActionExpression;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ActionFactory can create actions.
|
* Class ActionFactory can create actions.
|
||||||
@@ -66,12 +64,12 @@ class ActionFactory
|
|||||||
$actionTypes = self::getActionTypes();
|
$actionTypes = self::getActionTypes();
|
||||||
|
|
||||||
if (!array_key_exists($actionType, $actionTypes)) {
|
if (!array_key_exists($actionType, $actionTypes)) {
|
||||||
throw new FireflyException('No such action exists ("' . e($actionType) . '").');
|
throw new FireflyException('No such action exists ("'.e($actionType).'").');
|
||||||
}
|
}
|
||||||
|
|
||||||
$class = $actionTypes[$actionType];
|
$class = $actionTypes[$actionType];
|
||||||
if (!class_exists($class)) {
|
if (!class_exists($class)) {
|
||||||
throw new FireflyException('Could not instantiate class for rule action type "' . e($actionType) . '" (' . e($class) . ').');
|
throw new FireflyException('Could not instantiate class for rule action type "'.e($actionType).'" ('.e($class).').');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $class;
|
return $class;
|
||||||
|
Reference in New Issue
Block a user