This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
@include('partials.page-header') | |
@if (!have_posts()) | |
<div class="alert alert-warning"> | |
{{ __('Sorry, no results were found.', 'sage') }} | |
</div> | |
{!! get_search_form(false) !!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
@debug('hierarchy') | |
@include('partials.page-header') | |
@if (!have_posts()) | |
<div class="alert alert-warning"> | |
{{ __('Sorry, no results were found.', 'sage') }} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
my-wpdb: | |
image: mariadb | |
ports: | |
- "8081:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: MyHiddenPassword | |
my-wp: | |
image: wordpress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example of routine with coincidental cohesion | |
function handleStuff() { | |
// Stuff to action with database | |
// Stuff to action with user input | |
// Stuff to action with more unrelated things,... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example of routine with logical cohesion | |
function update($name, $input) { | |
switch($name) { | |
case 'person': | |
// Stuff to update person with input data | |
break; | |
case 'car': | |
// Stuff to update car with input data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example of routine with logical cohesion | |
function update($name, $input) { | |
switch($name) { | |
case 'person': | |
// Stuff to update person with input data | |
break; | |
case 'car': | |
// Stuff to update car with input data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example of routine with procedural cohesion | |
// Imagine that you have a input screen that display the input fields in the order: email, name, address,.. of employee | |
function getNameEmailAddressInputEmployee() { | |
// Stuff to get the input name | |
// Stuff to get the input email | |
// Stuff to get the input address | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example of routine with procedural cohesion | |
// Imagine that you have a input screen that display the input fields in the order: email, name, address,.. of employee | |
function getNameEmailAddressInputEmployee($input) { | |
// Stuff to get the input name | |
// Stuff to get the input email | |
// Stuff to get the input address | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Call other routines inside temporal cohesion | |
function Initializes() { | |
ReadConfigurationFile(); | |
SetupMemoryManager() | |
SetupMoreThing(); | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Example if routines with temporal cohesion | |
function Initialize() { | |
// All actions when intialize come here | |
} | |
function Shutdown() { | |
// All actions when shut down come here | |
} |