Completed
Push — develop ( 240a1a...08956b )
by John
03:03
created
Alpha/Controller/ListActiveRecordsController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @param alpha\Util\Http\Request $request
98 98
      *
99
-     * @return alpha\Util\Http\Response
99
+     * @return Response
100 100
      *
101 101
      * @since 1.0
102 102
      */
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @param alpha\Util\Http\Request $request
122 122
      *
123
-     * @return alpha\Util\Http\Response
123
+     * @return Response
124 124
      *
125 125
      * @since 1.0
126 126
      */
Please login to merge, or discard this patch.
phpunit.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 $config = ConfigProvider::getInstance();
10 10
 
11 11
 $dirs = array(
12
-	$config->get('app.file.store.dir').'logs',
13
-	$config->get('app.file.store.dir').'cache',
14
-	$config->get('app.file.store.dir').'cache/html',
15
-	$config->get('app.file.store.dir').'cache/images',
16
-	$config->get('app.file.store.dir').'cache/pdf',
17
-	$config->get('app.file.store.dir').'cache/xls',
18
-	$config->get('app.file.store.dir').'attachments',
19
-	);
12
+    $config->get('app.file.store.dir').'logs',
13
+    $config->get('app.file.store.dir').'cache',
14
+    $config->get('app.file.store.dir').'cache/html',
15
+    $config->get('app.file.store.dir').'cache/images',
16
+    $config->get('app.file.store.dir').'cache/pdf',
17
+    $config->get('app.file.store.dir').'cache/xls',
18
+    $config->get('app.file.store.dir').'attachments',
19
+    );
20 20
 
21 21
 foreach ($dirs as $dir) {
22
-	if (!file_exists($dir)) {
23
-		mkdir($dir, 0774);
24
-	}
22
+    if (!file_exists($dir)) {
23
+        mkdir($dir, 0774);
24
+    }
25 25
 }
26 26
 
27 27
 ?>
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
Alpha/Controller/Front/FrontController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@
 block discarded – undo
615 615
                 }
616 616
             }
617 617
 
618
-             // route URIs with params missing (will attempt to layer on defaults later on in Request class)
618
+                // route URIs with params missing (will attempt to layer on defaults later on in Request class)
619 619
             foreach ($this->routes as $route => $callback) {
620 620
                 $pattern = '#^'.$route.'$#s';
621 621
                 $pattern = preg_replace('#\/\{\S+\}#', '\/?', $pattern);
Please login to merge, or discard this patch.
Alpha/Util/Code/Highlight/HighlightProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * A static method that attempts to return a HighlightProviderInterface instance
64 64
      * based on the name of the provider class supplied.
65 65
      *
66
-     * @param $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface
66
+     * @param string $providerName The fully-qualified class name of the provider class, should implement Alpha\Util\Code\Highlight\HighlightProviderInterface
67 67
      *
68 68
      * @throws \Alpha\Exception\IllegalArguementException
69 69
      *
Please login to merge, or discard this patch.
public/index.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,36 +14,36 @@
 block discarded – undo
14 14
 use Alpha\View\View;
15 15
 
16 16
 try {
17
-	$config = ConfigProvider::getInstance();
17
+    $config = ConfigProvider::getInstance();
18 18
 
19
-	set_exception_handler('Alpha\Util\ErrorHandlers::catchException');
20
-	set_error_handler('Alpha\Util\ErrorHandlers::catchError', $config->get('php.error.log.level'));
19
+    set_exception_handler('Alpha\Util\ErrorHandlers::catchException');
20
+    set_error_handler('Alpha\Util\ErrorHandlers::catchError', $config->get('php.error.log.level'));
21 21
 
22
-	$front = new FrontController();
22
+    $front = new FrontController();
23 23
 	
24
-	if ($config->get('security.client.blacklist.filter.enabled')) {
25
-		$front->registerFilter(new ClientBlacklistFilter());
26
-	}
24
+    if ($config->get('security.client.blacklist.filter.enabled')) {
25
+        $front->registerFilter(new ClientBlacklistFilter());
26
+    }
27 27
 
28
-	if ($config->get('security.ip.blacklist.filter.enabled')) {
29
-		$front->registerFilter(new IPBlacklistFilter());
30
-	}
28
+    if ($config->get('security.ip.blacklist.filter.enabled')) {
29
+        $front->registerFilter(new IPBlacklistFilter());
30
+    }
31 31
 
32
-	if ($config->get('security.client.temp.blacklist.filter.enabled')) {
33
-		$front->registerFilter(new ClientTempBlacklistFilter());
34
-	}
32
+    if ($config->get('security.client.temp.blacklist.filter.enabled')) {
33
+        $front->registerFilter(new ClientTempBlacklistFilter());
34
+    }
35 35
 
36
-	$request = new Request();
37
-	$response = $front->process($request);
36
+    $request = new Request();
37
+    $response = $front->process($request);
38 38
 
39 39
 } catch (ResourceNotFoundException $rnfe) {
40
-	$response = new Response(404, View::renderErrorPage(404, $rnfe->getMessage(), array('Content-Type' => 'text/html')));
40
+    $response = new Response(404, View::renderErrorPage(404, $rnfe->getMessage(), array('Content-Type' => 'text/html')));
41 41
 } catch (ResourceNotAllowedException $rnae) {
42
-	$response = new Response(403, View::renderErrorPage(403, $rnae->getMessage(), array('Content-Type' => 'text/html')));
42
+    $response = new Response(403, View::renderErrorPage(403, $rnae->getMessage(), array('Content-Type' => 'text/html')));
43 43
 }
44 44
 
45 45
 if ($config->get('security.http.header.x.frame.options') != '' && $response->getHeader('X-Frame-Options') == null) {
46
-	$response->setHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options'));
46
+    $response->setHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options'));
47 47
 }
48 48
 
49 49
 echo $response->send();
Please login to merge, or discard this patch.
Alpha/Util/Extension/TCPDFFacade.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -234,16 +234,16 @@  discard block
 block discarded – undo
234 234
         self::$logger->debug('<<__construct()');
235 235
     }
236 236
 
237
-     /**
238
-      * Facade method which will invoke our custom markdown class rather than the standard one.
239
-      *
240
-      * @param $text The markdown content to parse
241
-      *
242
-      * @since 1.0
243
-      */
244
-     private function markdown($text)
245
-     {
246
-         $config = ConfigProvider::getInstance();
237
+        /**
238
+         * Facade method which will invoke our custom markdown class rather than the standard one.
239
+         *
240
+         * @param $text The markdown content to parse
241
+         *
242
+         * @since 1.0
243
+         */
244
+        private function markdown($text)
245
+        {
246
+            $config = ConfigProvider::getInstance();
247 247
 
248 248
         /*
249 249
          * Initialize the parser and return the result of its transform method.
@@ -251,9 +251,9 @@  discard block
 block discarded – undo
251 251
          */
252 252
         static $parser;
253 253
 
254
-         if (!isset($parser)) {
255
-             $parser = new Markdown();
256
-         }
254
+            if (!isset($parser)) {
255
+                $parser = new Markdown();
256
+            }
257 257
 
258 258
         /*
259 259
          * Replace all instances of $sysURL in the text with the app.url setting from config
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
         // transform text using parser.
265 265
         return $parser->transform($text);
266
-     }
266
+        }
267 267
 
268 268
     /**
269 269
      * Fetter for the content.
Please login to merge, or discard this patch.
Alpha/View/Widget/DateBox.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      */
120 120
     public function render()
121 121
     {
122
-         $value = $this->dateObject->getValue();
122
+            $value = $this->dateObject->getValue();
123 123
 
124 124
         if ($value == '0000-00-00') {
125 125
             $value = '';
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
      * A static method that attempts to return a ActiveRecordProviderInterface instance
68 68
      * based on the name of the provider class supplied.
69 69
      *
70
-     * @param $providerName The fully-qualified class name of the provider class.
71
-     * @param $Record The (optional) active record instance to pass to the persistance provider for mapping.
70
+     * @param string $providerName The fully-qualified class name of the provider class.
71
+     * @param ActiveRecord $Record The (optional) active record instance to pass to the persistance provider for mapping.
72 72
      *
73 73
      * @throws \Alpha\Exception\IllegalArguementException
74 74
      *
Please login to merge, or discard this patch.