diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e26492d5d..ddac065b56 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,5 +5,6 @@ We welcome contributions! We'll improve this guide over time... *Please note: although our application is open-source we run a for-profit hosted service at [invoiceninja.com](https://www.invoiceninja.com).* Guidelines -- Please try to follow [PSR-2 guidlines](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) +- Try to follow [PSR-2 guidlines](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) +- Create pull requests against the develop branch - Add translations in our [Transifex](https://www.transifex.com/invoice-ninja/) project diff --git a/app/Models/Currency.php b/app/Models/Currency.php index 944f9f2d8e..eb058aa674 100644 --- a/app/Models/Currency.php +++ b/app/Models/Currency.php @@ -6,8 +6,12 @@ class Currency extends Eloquent { public $timestamps = false; - public function getName() + protected $casts = [ + 'swap_currency_symbol' => 'boolean', + ]; + + public function getName() { return $this->name; - } + } }