From 68b8e2f086e209ee7637196454f33c5bfbfa2fc3 Mon Sep 17 00:00:00 2001 From: Marko Kruljac Date: Mon, 30 Oct 2017 16:36:56 +0100 Subject: [PATCH] executed phpcbf --standard=Degordian --- src/ACFDataProvider.php | 2 +- src/AssetBundle.php | 15 ++++++--------- src/FlexibleLayoutRenderer.php | 5 +---- src/SocialSharer.php | 5 ++--- src/WPSocialSharer.php | 20 +++++++++----------- 5 files changed, 19 insertions(+), 28 deletions(-) diff --git a/src/ACFDataProvider.php b/src/ACFDataProvider.php index affa243..509fb83 100644 --- a/src/ACFDataProvider.php +++ b/src/ACFDataProvider.php @@ -128,4 +128,4 @@ public function getUserField($name, $userID = null, $prefixed = true) return ''; } -} \ No newline at end of file +} diff --git a/src/AssetBundle.php b/src/AssetBundle.php index 2567185..cb3c2e6 100644 --- a/src/AssetBundle.php +++ b/src/AssetBundle.php @@ -7,7 +7,6 @@ namespace degordian\wpHelpers; - class AssetBundle { protected static $includeBasePath = '/static/'; @@ -31,8 +30,8 @@ public static function register() protected function enqueueScripts() { - foreach($this->js as $handle => $data) { - if(isset($data['path']) === false) { + foreach ($this->js as $handle => $data) { + if (isset($data['path']) === false) { throw new \Exception('Missing path definition for ' . $handle); } @@ -46,8 +45,8 @@ protected function enqueueScripts() protected function enqueueStyles() { - if($this->asyncCss) { - add_action('wp_head', function() { + if ($this->asyncCss) { + add_action('wp_head', function () { ?>