Completed
Push — master ( 28419e...7a0d48 )
by Doğa
03:05
created
Features/Templates/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 namespace Flynt\Features\Templates;
4 4
 
5 5
 // Set Config Path
6
-add_filter('Flynt/configPath', function ($filePath, $fileName) {
6
+add_filter('Flynt/configPath', function($filePath, $fileName) {
7 7
     return get_template_directory() . '/config/templates/' . $fileName;
8 8
 }, 10, 2);
Please login to merge, or discard this patch.
Features/Components/Component.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         }
17 17
 
18 18
         // collect script dependencies
19
-        $scriptDeps = array_reduce($dependencies, function ($list, $dependency) {
19
+        $scriptDeps = array_reduce($dependencies, function($list, $dependency) {
20 20
             if ($dependency['type'] === 'script') {
21 21
                 array_push($list, $dependency['name']);
22 22
             }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         }
36 36
 
37 37
         // collect style dependencies
38
-        $styleDeps = array_reduce($dependencies, function ($list, $dependency) {
38
+        $styleDeps = array_reduce($dependencies, function($list, $dependency) {
39 39
             if ($dependency['type'] === 'style') {
40 40
                 array_push($list, $dependency['name']);
41 41
             }
Please login to merge, or discard this patch.
Features/RemoveEditor/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Features\RemoveEditor;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     remove_post_type_support('page', 'editor');
7 7
     remove_post_type_support('post', 'editor');
8 8
 });
Please login to merge, or discard this patch.
Features/Navigation/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Flynt\Features\Navigation;
4 4
 
5
-add_action('init', function () {
5
+add_action('init', function() {
6 6
     register_nav_menus([
7 7
         'navigation_main' => __('Navigation Main', 'flynt-starter-theme'),
8 8
         'navigation_footer' => __('Navigation Footer', 'flynt-starter-theme')
Please login to merge, or discard this patch.
Features/CleanRss/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  *
13 13
  * Don't return the default description in the RSS feed if it hasn't been changed
14 14
  */
15
-add_filter('get_bloginfo_rss', function ($bloginfo) {
15
+add_filter('get_bloginfo_rss', function($bloginfo) {
16 16
     $defaultTagline = 'Just another WordPress site';
17 17
     return ($bloginfo === $defaultTagline) ? '' : $bloginfo;
18 18
 });
Please login to merge, or discard this patch.
Features/CleanHead/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  * Remove self-closing tag
13 13
  *
14 14
  */
15
-add_action('init', function () {
15
+add_action('init', function() {
16 16
     // Originally from http://wpengineer.com/1438/wordpress-header/
17 17
     remove_action('wp_head', 'feed_links_extra', 3);
18 18
     add_action('wp_head', 'ob_start', 1, 0);
19
-    add_action('wp_head', function () {
19
+    add_action('wp_head', function() {
20 20
         $pattern = '/.*' . preg_quote(esc_url(get_feed_link('comments_' . get_default_feed())), '/') . '.*[\r\n]+/';
21 21
         echo preg_replace($pattern, '', ob_get_clean());
22 22
     }, 3, 0);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  *
45 45
  * Clean up output of stylesheet <link> tags
46 46
  */
47
-add_filter('style_loader_tag', function ($input) {
47
+add_filter('style_loader_tag', function($input) {
48 48
     preg_match_all(
49 49
         "!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!",
50 50
         $input,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
  *
64 64
  * Clean up output of <script> tags
65 65
  */
66
-add_filter('script_loader_tag', function ($input) {
66
+add_filter('script_loader_tag', function($input) {
67 67
     $input = str_replace("type='text/javascript' ", '', $input);
68 68
     return str_replace("'", '"', $input);
69 69
 });
Please login to merge, or discard this patch.
Components/LayoutSinglePost/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 use Timber\Timber;
6 6
 use Flynt\Features\Components\Component;
7 7
 
8
-add_action('wp_enqueue_scripts', function () {
8
+add_action('wp_enqueue_scripts', function() {
9 9
     Component::enqueueAssets('LayoutSinglePost');
10 10
 });
11 11
 
12
-add_filter('Flynt/addComponentData?name=LayoutSinglePost', function ($data) {
12
+add_filter('Flynt/addComponentData?name=LayoutSinglePost', function($data) {
13 13
     $query = !empty($data['query']) ? $data['query'] : false;
14 14
     $post = Timber::get_post($query);
15 15
     if (!empty($post)) {
Please login to merge, or discard this patch.
Components/DocumentDefault/functions.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@
 block discarded – undo
7 7
 add_action('wp_enqueue_scripts', function () {
8 8
     Component::enqueueAssets('DocumentDefault', [
9 9
     [
10
-      'name' => 'console-polyfill',
11
-      'type' => 'script',
12
-      'path' => 'vendor/console.js'
10
+        'name' => 'console-polyfill',
11
+        'type' => 'script',
12
+        'path' => 'vendor/console.js'
13 13
     ],
14 14
     [
15
-      'name' => 'babel-polyfill',
16
-      'type' => 'script',
17
-      'path' => 'vendor/babel-polyfill.js'
15
+        'name' => 'babel-polyfill',
16
+        'type' => 'script',
17
+        'path' => 'vendor/babel-polyfill.js'
18 18
     ],
19 19
     [
20
-      'name' => 'document-register-element',
21
-      'type' => 'script',
22
-      'path' => 'vendor/document-register-element.js'
20
+        'name' => 'document-register-element',
21
+        'type' => 'script',
22
+        'path' => 'vendor/document-register-element.js'
23 23
     ],
24 24
     [
25
-      'name' => 'picturefill',
26
-      'path' => 'vendor/picturefill.js',
27
-      'type' => 'script'
25
+        'name' => 'picturefill',
26
+        'path' => 'vendor/picturefill.js',
27
+        'type' => 'script'
28 28
     ],
29 29
     [
30
-      'name' => 'normalize',
31
-      'path' => 'vendor/normalize.css',
32
-      'type' => 'style'
30
+        'name' => 'normalize',
31
+        'path' => 'vendor/normalize.css',
32
+        'type' => 'style'
33 33
     ]
34 34
     ]);
35 35
 }, 0);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 use Timber\Timber;
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_action('wp_enqueue_scripts', function () {
7
+add_action('wp_enqueue_scripts', function() {
8 8
     Component::enqueueAssets('DocumentDefault', [
9 9
     [
10 10
       'name' => 'console-polyfill',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     ]);
35 35
 }, 0);
36 36
 
37
-add_filter('Flynt/addComponentData?name=DocumentDefault', function ($data) {
37
+add_filter('Flynt/addComponentData?name=DocumentDefault', function($data) {
38 38
     $context = Timber::get_context();
39 39
 
40 40
     $output = array(
Please login to merge, or discard this patch.
Components/LayoutMultiplePosts/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 use Timber\Timber;
6 6
 use Flynt\Features\Components\Component;
7 7
 
8
-add_action('wp_enqueue_scripts', function () {
8
+add_action('wp_enqueue_scripts', function() {
9 9
     Component::enqueueAssets('LayoutMultiplePosts');
10 10
 });
11 11
 
12
-add_filter('Flynt/addComponentData?name=LayoutMultiplePosts', function ($data) {
12
+add_filter('Flynt/addComponentData?name=LayoutMultiplePosts', function($data) {
13 13
     $query = !empty($data['query']) ? $data['query'] : false;
14 14
     $posts = Timber::get_posts($query);
15 15
     if (!empty($posts)) {
16
-        $posts = array_map(function ($post) {
16
+        $posts = array_map(function($post) {
17 17
             $fields = get_fields($post->id);
18 18
             $post->fields = $fields === false ? [] : $fields;
19 19
             return $post;
Please login to merge, or discard this patch.