Completeness: Ensure all is_* functions are implemented
An easy task to get you started on the route to becoming a bonafide Respect . Don't fear you are never on your own, you will get all the support you need from the team. Just post to this issue stating your intention to complete this task and its all yours.
Task: Ensure that we have implemented all the is_* Variable handling Functions the unwritten convention thus far is just to drop the is_ part ie. is_numeric() becomes v::numeric() when naming the new rules.
Tip: Try and do small incremental commits focused around a single change. This simplifies the review process. Use git diff to ensure you are only committing the changes which can be explained in a single line, as commit description. Avoid whitespace fixes in your commits or combine them all into one single commit.
- [x] is_a
- [x] is_array
- [x] is_bool
- [x] is_callable
- [x] is_dir
- [x] is_double, is_float, is_real
- [x] is_executable
- [x] is_file
- [x] is_finite
- [x] is_infinite
- [x] is_int, is_integer, is_long
- [x] is_link
- [x] is_nan
- [x] is_null
- [x] is_numeric
- [x] is_object
- [x] is_readable
- [x] is_resource
- [x] is_scalar
- [x] is_string
- [x] is_subclass_of
- [x] is_uploaded_file
- [x] is_writable, is_writeable
- [x] isset
Have fun!
I have created a branch "files" (see #102) and I'm working on this branch to implements all the is_* about files:
For now, we have:
is_dir();is_file();file_exists();is_link();is_readable();is_uploaded_file();is_writeable();
I have to do:
is_executable();
I hope today I can finish this.
Could you link to documentation please?
This issue was specifically in reference to Variable handling Functions
Listed here with tics for those which are correctly implemented, a another name where name deviation apply or if another method is used to accomplish the same. If nothing was mentioned this may not be implemented yet.
- empty — Determine whether a variable is empty
NotEmpty - is_array — Finds whether a variable is an array
Arr - ✓ is_bool — Finds out whether a variable is a boolean
- is_callable — Verify that the contents of a variable can be called as a function
Callback - ✓ is_float — Finds whether the type of a variable is float
- is_double — Alias of is_float
- is_real — Alias of is_float
- is_int — Find whether the type of a variable is integer
Int uses is_numeric - is_integer — Alias of is_int
- is_long — Alias of is_int
- is_null — Finds whether a variable is NULL
NullValue - ✓ is_numeric — Finds whether a variable is a number or a numeric string
- ✓ is_object — Finds whether a variable is an object
- is_resource — Finds whether a variable is a resource
- is_scalar — Finds whether a variable is a scalar
- ✓ is_string — Find whether the type of a variable is string
- isset — Determine if a variable is set and is not NULL
NotEmpty
There exists several discrepancies where different naming was used or the correct name but alternative methods were used to accomplish the same.
The complete list of is* functions would probably looks like this as of date:
- is_a
- ✓ is_array
- ✓ is_bool
- ✓ is_callable
- ✓ is_dir
- ✓ is_double
- ✓ is_executable
- ✓ is_file
- is_finite
- ✓ is_float
- is_infinite
- is_int
- is_integer
- ✓ is_link
- is_long
- is_nan
- is_null
- is_numeric
- is_object
- ✓ is_readable
- ✓ is_real
- is_resource
- is_scalar
- is_soap_fault
- ✓ is_string
- is_subclass_of
- ✓ is_uploaded_file
- ✓ is_writable
- ✓ is_writeable
this issue have 10 months, it's up to date? I'll get some
@leonnleite Still up for grabs. If you can fill in the blanks for us that would be awesome!
Shout if you need a hand with anything...
Have fun!