Completed
Push — master ( 0a305e...08804e )
by Mark
04:38 queued 03:25
created
src/MigrationCreator.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -7,30 +7,30 @@
 block discarded – undo
7 7
 
8 8
 class MigrationCreator extends MC
9 9
 {
10
-    protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = null)
11
-    {
12
-        if (! empty($migrationPath)) {
13
-            $migrationPath = $migrationPath.'/'.date('Y').'/'.date('m');
14
-            $migrationFiles = $this->files->glob($migrationPath.'/*.php');
15
-
16
-            foreach ($migrationFiles as $migrationFile) {
17
-                $this->files->requireOnce($migrationFile);
18
-            }
19
-        }
20
-
21
-        if (class_exists($className = $this->getClassName($name))) {
22
-            throw new InvalidArgumentException("A {$className} class already exists.");
23
-        }
24
-    }
25
-
26
-    protected function getPath($name, $path)
27
-    {
28
-        $path = $path.'/'.date('Y').'/'.date('m');
29
-
30
-        if (! $this->files->exists($path)) {
31
-            $this->files->makeDirectory($path, 0775, true);
32
-        }
33
-
34
-        return $path.'/'.$this->getDatePrefix().'_'.$name.'.php';
35
-    }
10
+	protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = null)
11
+	{
12
+		if (! empty($migrationPath)) {
13
+			$migrationPath = $migrationPath.'/'.date('Y').'/'.date('m');
14
+			$migrationFiles = $this->files->glob($migrationPath.'/*.php');
15
+
16
+			foreach ($migrationFiles as $migrationFile) {
17
+				$this->files->requireOnce($migrationFile);
18
+			}
19
+		}
20
+
21
+		if (class_exists($className = $this->getClassName($name))) {
22
+			throw new InvalidArgumentException("A {$className} class already exists.");
23
+		}
24
+	}
25
+
26
+	protected function getPath($name, $path)
27
+	{
28
+		$path = $path.'/'.date('Y').'/'.date('m');
29
+
30
+		if (! $this->files->exists($path)) {
31
+			$this->files->makeDirectory($path, 0775, true);
32
+		}
33
+
34
+		return $path.'/'.$this->getDatePrefix().'_'.$name.'.php';
35
+	}
36 36
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = null)
11 11
     {
12
-        if (! empty($migrationPath)) {
12
+        if ( ! empty($migrationPath)) {
13 13
             $migrationPath = $migrationPath.'/'.date('Y').'/'.date('m');
14 14
             $migrationFiles = $this->files->glob($migrationPath.'/*.php');
15 15
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $path = $path.'/'.date('Y').'/'.date('m');
29 29
 
30
-        if (! $this->files->exists($path)) {
30
+        if ( ! $this->files->exists($path)) {
31 31
             $this->files->makeDirectory($path, 0775, true);
32 32
         }
33 33
 
Please login to merge, or discard this patch.