The exchange of new line & br HTML tag could refer to PHP - nl2br() function, which uses to inserts HTML line breaks before all newlines in a string.
These JavaScript functions consider whether to use insert or replace to handle the swap.
| <?php | |
| use App\Models\Deposit; | |
| use Illuminate\Support\Facades\Schema; | |
| describe('Deposit model', function () { | |
| test('should match fillable properties', function () { | |
| $fillable = [ | |
| 'category_id', | |
| 'status', |
| # create a local .env file with the following 4 properties: | |
| # | |
| # MYSQL_DATABASE=<something> | |
| # MYSQL_USER=<something> | |
| # MYSQL_PASSWORD=<something> | |
| # MYSQL_ROOT_PASSWORD=<something> | |
| # | |
| version: "3.8" | |
| services: |
| [{"stateName":"South Carolina","stateCode":"SC","details":[{"county":"Abbeville","countyFIPSCode":"45001","cityDetails":[{"city":"ABBEVILLE","latitude":"+34.215714","longitude":"-082.446307"},{"city":"CALHOUN FALLS","latitude":"+34.191846","longitude":"-082.490284"},{"city":"DONALDS","latitude":"+34.330362","longitude":"-082.336693"},{"city":"DUE WEST","latitude":"+34.326755","longitude":"-082.430787"},{"city":"LOWNDESVILLE","latitude":"+34.221282","longitude":"-082.631810"}]},{"county":"Aiken","countyFIPSCode":"45003","cityDetails":[{"city":"AIKEN","latitude":"+33.537730","longitude":"-081.599891"},{"city":"BATH","latitude":"+33.496998","longitude":"-081.850871"},{"city":"BEECH ISLAND","latitude":"+33.470747","longitude":"-081.863900"},{"city":"CLEARWATER","latitude":"+33.499656","longitude":"-081.864850"},{"city":"GLOVERVILLE","latitude":"+33.518235","longitude":"-081.827708"},{"city":"GRANITEVILLE","latitude":"+33.641442","longitude":"-081.792870"},{"city":"JACKSON","latitude":"+33.421714","longitude":"-08 |
| <?php | |
| class User | |
| { | |
| public static $name = "Undefined"; | |
| public static function stateName() | |
| { | |
| return self::$name; | |
| } |
The exchange of new line & br HTML tag could refer to PHP - nl2br() function, which uses to inserts HTML line breaks before all newlines in a string.
These JavaScript functions consider whether to use insert or replace to handle the swap.
| ## ENABLE GZIP COMPRESSION ## | |
| <IfModule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/plain | |
| AddOutputFilterByType DEFLATE text/html | |
| AddOutputFilterByType DEFLATE text/xml | |
| AddOutputFilterByType DEFLATE text/css | |
| AddOutputFilterByType DEFLATE application/xml | |
| AddOutputFilterByType DEFLATE application/xhtml+xml | |
| AddOutputFilterByType DEFLATE application/rss+xml |
| <?php | |
| /** | |
| * A class to create simple custom routes. | |
| * | |
| * Example usage: | |
| * | |
| * $theme_routes = new CustomRoutes(); | |
| * $theme_routes->addRoute( | |
| * |
| $username = "some-username"; | |
| $password = "some-password"; | |
| $remote_url = 'http://www.somedomain.com/path/to/file'; | |
| // Create a stream | |
| $opts = array( | |
| 'http'=>array( | |
| 'method'=>"GET", | |
| 'header' => "Authorization: Basic " . base64_encode("$username:$password") | |
| ) |
| license: apache-2.0 |
| // source: http://doublespringlabs.blogspot.com.br/2012/11/decoding-polylines-from-google-maps.html | |
| function decode(encoded){ | |
| // array that holds the points | |
| var points=[ ] | |
| var index = 0, len = encoded.length; | |
| var lat = 0, lng = 0; | |
| while (index < len) { | |
| var b, shift = 0, result = 0; |