Closed (fixed)
Project:
Fraction
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Nov 2019 at 13:29 UTC
Updated:
17 Jan 2020 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Patch after phpcs, phpcbf and a bit of manual cleaning.
Opens a bit the question on #2892160-15: Provide Fraction targets for Feeds integration regarding typing on the Fraction class, this patch is loosely typing/assuming numerator and denominator to be ints (not strings) and value/decimal to be float.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3097812-4.patch | 11.27 KB | pcambra |
| #2 | 3097812-2.patch | 12.7 KB | pcambra |
Comments
Comment #2
pcambraComment #3
m.stentaCan you separate the coding standards portions and the int/string changes to consider them separately?
We use BC Math for arithmetic where possible, which uses strings instead of floats. But it may still make sense to use ints in some places. I'd like to separate it out so that I can think it through apart from other changes.
Comment #4
pcambraSure thing, let's open a separate issue for the fraction typing
Comment #6
m.stentaMerged - thanks @pcambra!