Skip to content

Commit

Permalink
Apply PSR-2 ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
u01jmg3 committed Mar 24, 2017
1 parent fdab738 commit 6e90d6e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docx2md.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* @param boolean $isTestMode
* @return string
*/
function docx2md(array $args, $isTestMode = false) {
function docx2md(array $args, $isTestMode = false)
{
$debugDumpWord = false;
$debugDumpIntermediary = false;

Expand Down Expand Up @@ -358,7 +359,8 @@ function docx2md(array $args, $isTestMode = false) {
* @param string $mdFilename
* @return void
*/
function extractFolder($zip, $folderName, $destination, $imageFolder = null, $mdFilename = null) {
function extractFolder($zip, $folderName, $destination, $imageFolder = null, $mdFilename = null)
{
for ($i = 0; $i < $zip->numFiles; $i++) {
$fileName = $zip->getNameIndex($i);

Expand All @@ -381,7 +383,8 @@ function extractFolder($zip, $folderName, $destination, $imageFolder = null, $md
* @param string $directory
* @return void
*/
function rrmdir($directory) {
function rrmdir($directory)
{
foreach (glob($directory . '/*') as $file) {
if (is_dir($file)) {
rrmdir($file);
Expand All @@ -400,7 +403,8 @@ function rrmdir($directory) {
* @param string $data
* @return string
*/
function cleanData($data){
function cleanData($data)
{
$replacementChars = array("'", "'", '"', '"', '-', '--', '...', ' ');

// Replace UTF-8 characters
Expand All @@ -419,7 +423,8 @@ function cleanData($data){
* @param $args
* @return void
*/
function runTests($args){
function runTests($args)
{
$src = 'examples';
$formatter = " %s. %s\033[0m: %s" . PHP_EOL;
$formatter = " %s. %s\033[0m: %s" . PHP_EOL;
Expand Down

0 comments on commit 6e90d6e

Please sign in to comment.