Passed
Push — master ( 03f154...764db3 )
by Marcio
04:38
created
src/Ballybran/Helpers/Utility/Ucfirst.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                 if ($characterDeficit == 0) {
86 86
                     //If the word is full and we're not short any characters, ignore the character
87 87
                     continue;
88
-                }else 
88
+                } else 
89 89
                     $characterDeficit--; //If we are short some characters, decrement the defecit and carry on with adding the character to the abbreviation
90 90
             }
91 91
             $abbreviation .= $currentChar; //Add the character to the abbreviation
Please login to merge, or discard this patch.
src/Ballybran/Core/Http/Middleware/Exception/InvalidArgumentException.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
      */
13 13
     private $invalidMiddleware;
14 14
 
15
-    public function __construct( $invalidMiddleware = null, $code = 0, Throwable $previous = null )
15
+    public function __construct($invalidMiddleware = null, $code = 0, Throwable $previous = null)
16 16
     {
17 17
         $message = \sprintf(self::ERROR_MESSAGE, MiddlewareInterface::class, $this->castStageToString($invalidMiddleware));
18
-        parent::__construct( $message, $code, $previous);
18
+        parent::__construct($message, $code, $previous);
19 19
         $this->invalidMiddleware = $invalidMiddleware;
20 20
     }
21 21
 
@@ -23,20 +23,20 @@  discard block
 block discarded – undo
23 23
      *  return the invalid middleware
24 24
      * @return mixed|null
25 25
      */
26
-    public function getInvalidMiddleware(){
26
+    public function getInvalidMiddleware() {
27 27
         return $this->invalidMiddleware;
28 28
     }
29 29
     private function castStageToString(string $stage) : string{
30 30
         
31
-        if(\is_scalar($stage)){
32
-            return (string) $stage;
31
+        if (\is_scalar($stage)) {
32
+            return (string)$stage;
33 33
         }
34 34
 
35
-        if(\is_scalar($stage)){
35
+        if (\is_scalar($stage)) {
36 36
             return \json_encode($stage) ?: 'array';
37 37
         }
38 38
         
39
-        if(\is_object($stage)){
39
+        if (\is_object($stage)) {
40 40
             return \get_class($stage) ?: 'array';
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Ballybran/Config/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@
 block discarded – undo
125 125
  *
126 126
  *  O URL base do sistema
127 127
  */
128
-$root=(isset($_SERVER['HTTPS']) ? "https://" : "http://").$_SERVER['HTTP_HOST'];
129
-$root.= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
128
+$root = (isset($_SERVER['HTTPS']) ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
129
+$root .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
130 130
 
131 131
 define('URL', $root);
132 132
 
Please login to merge, or discard this patch.