Completed
Push — master ( 0a9499...367e0c )
by Thierry
01:37
created
src/Jaxon.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public static function getInstance()
84 84
     {
85
-        if(self::$xInstance == null)
85
+        if (self::$xInstance == null)
86 86
         {
87 87
             self::$xInstance = new Jaxon();
88 88
         }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function __construct()
96 96
     {
97
-        if(self::$xContainer == null)
97
+        if (self::$xContainer == null)
98 98
         {
99 99
             self::$xContainer = new Container();
100 100
         }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             'core.prefix.class'                 => 'Jaxon',
149 149
             // 'core.request.uri'               => '',
150 150
             'core.request.mode'                 => 'asynchronous',
151
-            'core.request.method'               => 'POST',    // W3C: Method is case sensitive
151
+            'core.request.method'               => 'POST', // W3C: Method is case sensitive
152 152
             'core.response.send'                => true,
153 153
             'core.response.merge.ap'            => true,
154 154
             'core.response.merge.js'            => true,
@@ -234,11 +234,11 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function register($sType, $sCallable, $xOptions = [])
236 236
     {
237
-        if($sType == Jaxon::PROCESSING_EVENT)
237
+        if ($sType == Jaxon::PROCESSING_EVENT)
238 238
         {
239 239
             $sEvent = $sCallable;
240 240
             $xCallback = $xOptions;
241
-            switch($sEvent)
241
+            switch ($sEvent)
242 242
             {
243 243
             case Jaxon::PROCESSING_EVENT_BEFORE:
244 244
                 $this->callback()->before($xCallback);
Please login to merge, or discard this patch.
src/Features/View/Namespaces.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         $this->sDirectory = '';
62 62
         $this->sExtension = '';
63
-        if(key_exists($sNamespace, $this->aDirectories))
63
+        if (key_exists($sNamespace, $this->aDirectories))
64 64
         {
65 65
             // Make sure there's only one '/' at the end of the string
66 66
             $this->sDirectory = rtrim($this->aDirectories[$sNamespace]['path'], '/') . '/';
Please login to merge, or discard this patch.
src/Features/App.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * Get the Jaxon response.
19 19
      *
20
-     * @return Response
20
+     * @return \Jaxon\Response\Response
21 21
      */
22 22
     public function ajaxResponse()
23 23
     {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Get a request to a registered class
41 41
      *
42
-     * @param string        $sClass             The class name
42
+     * @param string        $sClassName             The class name
43 43
      *
44 44
      * @return \Jaxon\Request\Factory\CallableClass\Request
45 45
      */
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Get the view renderer
110 110
      *
111
-     * @return Jaxon\Utils\View\Renderer
111
+     * @return \Jaxon\Utils\View\Renderer
112 112
      */
113 113
     public function view()
114 114
     {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * Get the session manager
120 120
      *
121
-     * @return Jaxon\Contracts\Session
121
+     * @return \Jaxon\Contracts\Session
122 122
      */
123 123
     public function session()
124 124
     {
Please login to merge, or discard this patch.
src/Utils/Template/Engine.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function addNamespace($sNamespace, $sDirectory, $sExtension = '')
56 56
     {
57 57
         // The 'jaxon' key cannot be overriden
58
-        if($sNamespace == 'jaxon')
58
+        if ($sNamespace == 'jaxon')
59 59
         {
60 60
             return;
61 61
         }
@@ -92,18 +92,18 @@  discard block
 block discarded – undo
92 92
         // Get the namespace name
93 93
         $sNamespace = '';
94 94
         $iSeparatorPosition = strrpos($sTemplate, '::');
95
-        if($iSeparatorPosition !== false)
95
+        if ($iSeparatorPosition !== false)
96 96
         {
97 97
             $sNamespace = substr($sTemplate, 0, $iSeparatorPosition);
98 98
             $sTemplate = substr($sTemplate, $iSeparatorPosition + 2);
99 99
         }
100 100
         // The default namespace is 'jaxon'
101
-        if(!($sNamespace = trim($sNamespace)))
101
+        if (!($sNamespace = trim($sNamespace)))
102 102
         {
103 103
             $sNamespace = 'jaxon';
104 104
         }
105 105
         // Check if the namespace is defined
106
-        if(!key_exists($sNamespace, $this->aNamespaces))
106
+        if (!key_exists($sNamespace, $this->aNamespaces))
107 107
         {
108 108
             return '';
109 109
         }
Please login to merge, or discard this patch.