. */ declare(strict_types=1); namespace FireflyIII\Support\Http\Controllers; /** * Trait BasicDataSupport * */ trait BasicDataSupport { /** * Find the ID in a given array. Return '0' of not there (amount). * * @param array $array * @param int $entryId * * @return null|mixed */ protected function isInArray(array $array, int $entryId) // helper for data (math, calculations) { $result = $array[$entryId] ?? '0'; return $result; } }