Code clean up.

This commit is contained in:
James Cole
2017-11-15 12:25:49 +01:00
parent 57dcdfa0c4
commit ffca858b8d
476 changed files with 2055 additions and 4181 deletions

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Support\Import\Information;
@@ -38,14 +37,11 @@ use Log;
use Preferences;
/**
* Class BunqInformation
*
* @package FireflyIII\Support\Import\Information
* Class BunqInformation.
*/
class BunqInformation implements InformationInterface
{
/** @var User */
/** @var User */
private $user;
/**
@@ -92,7 +88,7 @@ class BunqInformation implements InformationInterface
];
/** @var Alias $alias */
foreach ($account->getAliases() as $alias) {
if ($alias->getType() === 'IBAN') {
if ('IBAN' === $alias->getType()) {
$current['number'] = $alias->getValue();
}
}
@@ -161,6 +157,7 @@ class BunqInformation implements InformationInterface
* @param SessionToken $sessionToken
*
* @return int
*
* @throws FireflyException
*/
private function getUserInformation(SessionToken $sessionToken): int

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Support\Import\Information;
@@ -26,13 +25,10 @@ namespace FireflyIII\Support\Import\Information;
use FireflyIII\User;
/**
* Interface InformationInterface
*
* @package FireflyIII\Support\Import\Information
* Interface InformationInterface.
*/
interface InformationInterface
{
/**
* Returns a collection of accounts. Preferrably, these follow a uniform Firefly III format so they can be managed over banks.
*