By default phpcs does NOT display the relevant name of the sniff when a sniff fails. By adding the ‘-s’ argument, the sniff names will be displayed. See the following from ‘phpcs –help’. Alternatively, this can be added to your PHP CodeSniffer XML Ruleset.
Curl is a fantastic tool for making web requests from the command line. As a developer, I find this tool particularly useful. Retrieve Content at a URL curl https://salferrarello.com/ Making a HEAD Call Sometimes, we want to see the Header Values returned from a URL using the HEAD. The HTTP HEAD method requests the headers […]
Sometimes after running git stash pop, I get a conflict warning and I want to discard any changes to a file. However, when I try to checkout the file I get an error message. Using reset and then checkout, lets me accomplish this goal.
I’m currently reading Neal Stephenson’s “Fall; or, Dodge in Hell” and it includes a description of a band called Pompitus Bombasticus.
This seemed like the perfect music to listen to when I’m programming. I was disappointed to find out Pompitus Bombasticus does not exist. However, if you too are in search of the mythical Pompitus Bombasticus, I suggest you check out the group Two Steps from Hell (which does actually exist).
When setting up a new site using PHPUnit 8.x and PHP 7.2, I got the error message: setUp() must be compatible with PHPUnit\Framework\TestCase::setUp Because we can now define the method as returning no value (with :void) and this is part of the method definition starting in PHPUnit 8.0.0, we need to add this in our […]
Why did the unicycle win the race against the bicycle? The bicycle was two tired. But what about the Corvette?
When using the WordPress plugin [The Events Calendar](https://theeventscalendar.com/) by Modern Tribe the default link in the calendar will point to the Event page. However, sometimes we want to point this link to the Event Website value (which we can set when creating the event). This is the code I use to do this.
I spend most of my time doing my writing in markdown. One of the features I have mixed feelings about, is auto-numbering of ordered. There are often times when I need to modify the numbering. I like to do this by adding a backslash (\) before the period after the number, which renders the list as text. If you want to render the list with the ol/li markup, you can write the exact markup you want in your markdown document and it will render without any modifications.
On August 7, 2019 a proposal was made on the WordPress Make Core website to Auto-Update Old Versions to 4.7, which is a long term plan that would start with automatically upgrading those on the minimum supported version of WordPress to the next version. This proposal has created a great deal of conversation and controversy.