Completed
Push — master ( 4042ac...870657 )
by Afshin
02:23
created
core/Facades/Auth.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * @param Core\Services\AuthService\AuthService
17 17
      * @return AuthService
18
-    */
18
+     */
19 19
     protected static function getFacadeAccessor()
20 20
     {
21 21
         return 'AuthService';
Please login to merge, or discard this patch.
core/Interfaces/AbstractSession.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 class AbstractSession
13 13
 {
14 14
 
15
-     public function getRecursiveSessionKey($data , $keyArr){
15
+        public function getRecursiveSessionKey($data , $keyArr){
16 16
         $arrayFound  = isset($data[$keyArr[0]]) ? $data[$keyArr[0]] : '';
17 17
         if($arrayFound){
18 18
             unset($keyArr[0]);
Please login to merge, or discard this patch.
core/Handlers/Session/SessionHandler.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
 
35 35
     public function exists($key,$val)
36 36
     {
37
-       $keySession = $this->get($key);
37
+        $keySession = $this->get($key);
38 38
 
39
-       if($keySession){
40
-          return true;
41
-       }
42
-       return false;
39
+        if($keySession){
40
+            return true;
41
+        }
42
+        return false;
43 43
     }
44 44
 
45 45
 
Please login to merge, or discard this patch.
core/Facades/Image.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     /**
9 9
      * @param Core\Services\AuthService\AuthService
10 10
      * @return AuthService
11
-    */
11
+     */
12 12
     protected static function getFacadeAccessor()
13 13
     {
14 14
         return 'ImageService';
Please login to merge, or discard this patch.
core/Facades/File.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * @param Core\Services\AuthService\AuthService
17 17
      * @return AuthService
18
-    */
18
+     */
19 19
     protected static function getFacadeAccessor()
20 20
     {
21 21
         return 'FileService';
Please login to merge, or discard this patch.
core/Services/FileService.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 
7 7
 class FileService extends _Service
8 8
 {
9
-	public function moveUploadedFile($directory,$fileName, UploadedFile $uploadedFile)
10
-	{
11
-	    $extension = pathinfo($uploadedFile->getClientFilename(), PATHINFO_EXTENSION);
12
-	    $basename = bin2hex(random_bytes(8)); // see http://php.net/manual/en/function.random-bytes.php
13
-	    $filename = sprintf('%s.%0.8s', $fileName, $extension);
14
-	    $uploadedFile->moveTo($directory . DIRECTORY_SEPARATOR . $filename);
15
-	    return $directory . DIRECTORY_SEPARATOR . $filename;
16
-	}
17
-	public function delete($file)
18
-	{
19
-		@unlink($file);
20
-	}
9
+    public function moveUploadedFile($directory,$fileName, UploadedFile $uploadedFile)
10
+    {
11
+        $extension = pathinfo($uploadedFile->getClientFilename(), PATHINFO_EXTENSION);
12
+        $basename = bin2hex(random_bytes(8)); // see http://php.net/manual/en/function.random-bytes.php
13
+        $filename = sprintf('%s.%0.8s', $fileName, $extension);
14
+        $uploadedFile->moveTo($directory . DIRECTORY_SEPARATOR . $filename);
15
+        return $directory . DIRECTORY_SEPARATOR . $filename;
16
+    }
17
+    public function delete($file)
18
+    {
19
+        @unlink($file);
20
+    }
21 21
 
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
bootstrap/app.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
 }
18 18
 $i=0;
19 19
 foreach($filesInConfig as $config_file){
20
-	if($config_file === 'phpmig.php'){continue;}
21
-	$file[$i] = include_once  __APP_ROOT__.'config/'.$config_file;
22
-	if(is_array($file[$i])){
23
-		$configs = array_merge($configs, $file[$i]);
24
-		$i++;
25
-	}
20
+    if($config_file === 'phpmig.php'){continue;}
21
+    $file[$i] = include_once  __APP_ROOT__.'config/'.$config_file;
22
+    if(is_array($file[$i])){
23
+        $configs = array_merge($configs, $file[$i]);
24
+        $i++;
25
+    }
26 26
 
27 27
 }
28 28
 
Please login to merge, or discard this patch.
core/Translator/Translator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * @var ContainerInterface $setting
17 17
      *
18
-    */
18
+     */
19 19
     public function init()
20 20
     {
21 21
         $setting = $this->settings['app']['translation'];
Please login to merge, or discard this patch.
config/image.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
                 'm' => [400,250,70],
11 11
                 'l'  => [800,600,80],
12 12
                 'thumb'  => [250, 250,80,true],
13
-           ],
13
+            ],
14 14
         ],
15 15
         'category_photo' => [
16 16
             'dimensions' => [
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                 'l'  => [800,600,80],
19 19
                 'thumb'  => [250, 250,80,true],
20 20
                 's'  => [150, 80,80],
21
-           ],
21
+            ],
22 22
         ],
23 23
         'minquality' => 200 // kamtar az in width va height nemigirim
24 24
     ]
Please login to merge, or discard this patch.