Passed
Pull Request — master (#25)
by Faruk
06:19
created
src/EasyPdfServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function register(): void
25 25
     {
26 26
         // Register the main class to use with the facade
27
-        $this->app->singleton(EasyPdf::class, function () {
27
+        $this->app->singleton(EasyPdf::class, function() {
28 28
             return new EasyPdf();
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/EasyPdf.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function __construct(?string $imagePath = null)
47 47
     {
48
-        if ($imagePath !== null && ! defined('K_PATH_IMAGES')) {
48
+        if ($imagePath !== null && !defined('K_PATH_IMAGES')) {
49 49
             define('K_PATH_IMAGES', $imagePath);
50 50
         }
51 51
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      */
332 332
     public function setHeader($header = null)
333 333
     {
334
-        if (! is_null($header)) {
334
+        if (!is_null($header)) {
335 335
             $this->header = $header;
336 336
         }
337 337
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      */
349 349
     public function setFooter($footer = null)
350 350
     {
351
-        if (! is_null($footer)) {
351
+        if (!is_null($footer)) {
352 352
             $this->footer = $footer;
353 353
         }
354 354
 
Please login to merge, or discard this patch.