Passed
Push — main ( 4ddaea...7c5fe7 )
by Thierry
04:58
created
jaxon-core/src/App/Metadata/Data/DatabagData.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     protected function validateName(string $sName): void
52 52
     {
53
-        if(preg_match('/^[a-zA-Z][a-zA-Z0-9_\-\.]*$/', $sName) > 0)
53
+        if (preg_match('/^[a-zA-Z][a-zA-Z0-9_\-\.]*$/', $sName) > 0)
54 54
         {
55 55
             return;
56 56
         }
Please login to merge, or discard this patch.
Switch Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -22,61 +22,61 @@
 block discarded – undo
22 22
 
23 23
 class DatabagData extends AbstractData
24 24
 {
25
-    /**
25
+/**
26 26
      * The databag names
27 27
      *
28 28
      * @var array
29 29
      */
30
-    protected $aNames = [];
30
+protected $aNames = [];
31 31
 
32
-    /**
32
+/**
33 33
      * @return string
34 34
      */
35
-    public function getName(): string
36
-    {
37
-        return 'bags';
38
-    }
35
+public function getName(): string
36
+{
37
+return 'bags';
38
+}
39 39
 
40
-    /**
40
+/**
41 41
      * @return mixed
42 42
      */
43
-    public function getValue(): mixed
44
-    {
45
-        return array_values($this->aNames);
46
-    }
43
+public function getValue(): mixed
44
+{
45
+return array_values($this->aNames);
46
+}
47 47
 
48
-    /**
48
+/**
49 49
      * @param string $sName
50 50
      *
51 51
      * @return void
52 52
      */
53
-    protected function validateName(string $sName): void
54
-    {
55
-        if(preg_match('/^[a-zA-Z][a-zA-Z0-9_\-\.]*$/', $sName) > 0)
56
-        {
57
-            return;
58
-        }
59
-        throw new SetupException("$sName is not a valid \"name\" value for databag");
60
-    }
53
+protected function validateName(string $sName): void
54
+{
55
+if(preg_match('/^[a-zA-Z][a-zA-Z0-9_\-\.]*$/', $sName) > 0)
56
+{
57
+return;
58
+}
59
+throw new SetupException("$sName is not a valid \"name\" value for databag");
60
+}
61 61
 
62
-    /**
62
+/**
63 63
      * @param string $sName
64 64
      *
65 65
      * @return void
66 66
      */
67
-    public function addValue(string $sName): void
68
-    {
69
-        $this->validateName($sName);
67
+public function addValue(string $sName): void
68
+{
69
+$this->validateName($sName);
70 70
 
71
-        $this->aNames[$sName] = $sName;
72
-    }
71
+$this->aNames[$sName] = $sName;
72
+}
73 73
 
74
-    /**
74
+/**
75 75
      * @inheritDoc
76 76
      */
77
-    public function encode(string $sVarName): array
78
-    {
79
-        return array_map(fn($sName) =>
80
-            "{$sVarName}->addValue('$sName');", $this->aNames);
81
-    }
77
+public function encode(string $sVarName): array
78
+{
79
+return array_map(fn($sName) =>
80
+"{$sVarName}->addValue('$sName');", $this->aNames);
81
+}
82 82
 }
Please login to merge, or discard this patch.
jaxon-core/src/App/Metadata/Data/AfterData.php 1 patch
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 
17 17
 class AfterData extends HookData
18 18
 {
19
-    /**
19
+/**
20 20
      * @inheritDoc
21 21
      */
22
-    protected function getType(): string
23
-    {
24
-        return 'after';
25
-    }
22
+protected function getType(): string
23
+{
24
+return 'after';
25
+}
26 26
 }
Please login to merge, or discard this patch.
jaxon-core/src/App/Metadata/Data/BeforeData.php 1 patch
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 
17 17
 class BeforeData extends HookData
18 18
 {
19
-    /**
19
+/**
20 20
      * @inheritDoc
21 21
      */
22
-    protected function getType(): string
23
-    {
24
-        return 'before';
25
-    }
22
+protected function getType(): string
23
+{
24
+return 'before';
25
+}
26 26
 }
Please login to merge, or discard this patch.
jaxon-core/src/Plugin/AbstractRequestPlugin.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@
 block discarded – undo
30 30
 
31 31
 abstract class AbstractRequestPlugin extends AbstractPlugin implements CallableRegistryInterface, RequestHandlerInterface
32 32
 {
33
-    /**
33
+/**
34 34
      * @var Target
35 35
      */
36
-    protected $xTarget = null;
36
+protected $xTarget = null;
37 37
 
38
-    /**
38
+/**
39 39
      * @inheritDoc
40 40
      */
41
-    public function getTarget(): ?Target
42
-    {
43
-        return $this->xTarget;
44
-    }
41
+public function getTarget(): ?Target
42
+{
43
+return $this->xTarget;
44
+}
45 45
 }
Please login to merge, or discard this patch.
jaxon-core/src/Plugin/RequestHandlerInterface.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@  discard block
 block discarded – undo
7 7
 
8 8
 interface RequestHandlerInterface
9 9
 {
10
-    /**
10
+/**
11 11
      * Get the target function or class and method
12 12
      *
13 13
      * @return Target|null
14 14
      */
15
-    public function getTarget(): ?Target;
15
+public function getTarget(): ?Target;
16 16
 
17
-    /**
17
+/**
18 18
      * @param ServerRequestInterface $xRequest
19 19
      *
20 20
      * @return Target
21 21
      */
22
-    public function setTarget(ServerRequestInterface $xRequest): Target;
22
+public function setTarget(ServerRequestInterface $xRequest): Target;
23 23
 
24
-    /**
24
+/**
25 25
      * Check if this plugin can process the current request
26 26
      *
27 27
      * Called by the <Jaxon\Plugin\RequestManager> when a request has been received to determine
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return bool
33 33
      */
34
-    public static function canProcessRequest(ServerRequestInterface $xRequest): bool;
34
+public static function canProcessRequest(ServerRequestInterface $xRequest): bool;
35 35
 
36
-    /**
36
+/**
37 37
      * Process the current request
38 38
      *
39 39
      * Called by the <Jaxon\Plugin\RequestManager> when a request is being processed.
@@ -42,5 +42,5 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return void
44 44
      */
45
-    public function processRequest(): void;
45
+public function processRequest(): void;
46 46
 }
Please login to merge, or discard this patch.
jaxon-annotations/tests/TestAnnotation/AttrAnnotationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $aFiles = scandir($this->sCacheDir);
46 46
         foreach ($aFiles as $sFile)
47 47
         {
48
-            if($sFile !== '.' && $sFile !== '..')
48
+            if ($sFile !== '.' && $sFile !== '..')
49 49
             {
50 50
                 @unlink($this->sCacheDir . DIRECTORY_SEPARATOR . $sFile);
51 51
             }
Please login to merge, or discard this patch.
jaxon-annotations/tests/TestAnnotation/DocBlockAnnotationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $aFiles = scandir($this->sCacheDir);
46 46
         foreach ($aFiles as $sFile)
47 47
         {
48
-            if($sFile !== '.' && $sFile !== '..')
48
+            if ($sFile !== '.' && $sFile !== '..')
49 49
             {
50 50
                 @unlink($this->sCacheDir . DIRECTORY_SEPARATOR . $sFile);
51 51
             }
Please login to merge, or discard this patch.
jaxon-annotations/tests/TestAnnotation/TraitAnnotationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $aFiles = scandir($this->sCacheDir);
46 46
         foreach ($aFiles as $sFile)
47 47
         {
48
-            if($sFile !== '.' && $sFile !== '..')
48
+            if ($sFile !== '.' && $sFile !== '..')
49 49
             {
50 50
                 @unlink($this->sCacheDir . DIRECTORY_SEPARATOR . $sFile);
51 51
             }
Please login to merge, or discard this patch.
jaxon-annotations/tests/TestAnnotation/AnnotationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $aFiles = scandir($this->sCacheDir);
46 46
         foreach ($aFiles as $sFile)
47 47
         {
48
-            if($sFile !== '.' && $sFile !== '..')
48
+            if ($sFile !== '.' && $sFile !== '..')
49 49
             {
50 50
                 @unlink($this->sCacheDir . DIRECTORY_SEPARATOR . $sFile);
51 51
             }
Please login to merge, or discard this patch.