Completed
Push — master ( cde0cf...bb1ccc )
by Asif
02:18
created
src/Compilers/ShortcodeCompiler.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
 
131 131
     /**
132 132
      * Get Compiled Attributes.
133
-     * @return \Webwizo\Shortcodes\Shortcode
133
+     * @return Shortcode
134 134
      */
135 135
     protected function compileShortcode($matches)
136 136
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@
 block discarded – undo
352 352
             . '\\[\\/\\2\\]'            // Closing shortcode tag
353 353
             . ')?'
354 354
             . ')'
355
-            . '(\\]?)';                 // 6: Optional second closing brocket for escaping shortcodes: [[tag]]
355
+            . '(\\]?)'; // 6: Optional second closing brocket for escaping shortcodes: [[tag]]
356 356
     }
357 357
 
358 358
     /**
Please login to merge, or discard this patch.
src/ShortcodesServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     /**
93 93
      * Get the services provided by the provider.
94 94
      *
95
-     * @return array
95
+     * @return string[]
96 96
      */
97 97
     public function provides()
98 98
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function registerShortcodeCompiler()
49 49
     {
50
-        $this->app->singleton('shortcode.compiler', function ($app) {
50
+        $this->app->singleton('shortcode.compiler', function($app) {
51 51
             return new ShortcodeCompiler();
52 52
         });
53 53
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function registerShortcode()
59 59
     {
60
-        $this->app->singleton('shortcode', function ($app) {
60
+        $this->app->singleton('shortcode', function($app) {
61 61
             return new Shortcode($app['shortcode.compiler']);
62 62
         });
63 63
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function registerView()
69 69
     {
70
-        $this->app->singleton('view', function ($app) {
70
+        $this->app->singleton('view', function($app) {
71 71
             // Next we need to grab the engine resolver instance that will be used by the
72 72
             // environment. The resolver will be used by an environment to get each of
73 73
             // the various engine implementations such as plain PHP or Blade engine.
Please login to merge, or discard this patch.
tests/ShortcodeRegistrationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function testRegistrationAndCompileShortcode()
25 25
     {
26
-        $this->shortcode->register('b', function ($shortcode, $content) {
26
+        $this->shortcode->register('b', function($shortcode, $content) {
27 27
             return sprintf('<strong class="%s">%s</strong>', $shortcode->class, $content);
28 28
         });
29 29
 
Please login to merge, or discard this patch.