@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - //Stuff |
|
5 | - 'stuff' => 1, |
|
4 | + //Stuff |
|
5 | + 'stuff' => 1, |
|
6 | 6 | ]; |
7 | 7 | \ No newline at end of file |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | * @return null |
22 | 22 | */ |
23 | 23 | public static function getFirstMatch($regexp, $target) |
24 | - { |
|
25 | - preg_match_all($regexp, $target, $matches); |
|
26 | - $match = array_key_exists(0,$matches[1]) ? $matches[1][0] : null; |
|
27 | - return $match; |
|
28 | - } |
|
24 | + { |
|
25 | + preg_match_all($regexp, $target, $matches); |
|
26 | + $match = array_key_exists(0,$matches[1]) ? $matches[1][0] : null; |
|
27 | + return $match; |
|
28 | + } |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param $regexp |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | * @return null |
34 | 34 | */ |
35 | 35 | public static function getAllMatch($regexp, $target) |
36 | - { |
|
37 | - $matches = null; |
|
38 | - preg_match_all($regexp, $target, $matches); |
|
39 | - return $matches; |
|
40 | - } |
|
36 | + { |
|
37 | + $matches = null; |
|
38 | + preg_match_all($regexp, $target, $matches); |
|
39 | + return $matches; |
|
40 | + } |
|
41 | 41 | |
42 | 42 | } |
43 | 43 | \ No newline at end of file |
@@ -20,12 +20,12 @@ |
||
20 | 20 | * @return string |
21 | 21 | */ |
22 | 22 | public static function getHtml($node) { |
23 | - $innerHTML= ''; |
|
24 | - $children = $node->childNodes; |
|
25 | - foreach ($children as $child) { |
|
26 | - $innerHTML .= $child->ownerDocument->saveXML( $child ); |
|
27 | - } |
|
28 | - return $innerHTML; |
|
29 | - } |
|
23 | + $innerHTML= ''; |
|
24 | + $children = $node->childNodes; |
|
25 | + foreach ($children as $child) { |
|
26 | + $innerHTML .= $child->ownerDocument->saveXML( $child ); |
|
27 | + } |
|
28 | + return $innerHTML; |
|
29 | + } |
|
30 | 30 | |
31 | 31 | } |
32 | 32 | \ No newline at end of file |
@@ -5,25 +5,25 @@ |
||
5 | 5 | class EloquentConnectionTest extends PHPUnit_Framework_TestCase |
6 | 6 | { |
7 | 7 | |
8 | - /** |
|
9 | - * |
|
10 | - */ |
|
11 | - public function testIlluminateConnection() |
|
12 | - { |
|
13 | - Illuminate\Database\Capsule\Manager::schema()->create('test', function (Blueprint $table) { |
|
14 | - $table->increments('id'); |
|
15 | - $table->string('email')->unique(); |
|
16 | - $table->timestamps(); |
|
17 | - }); |
|
8 | + /** |
|
9 | + * |
|
10 | + */ |
|
11 | + public function testIlluminateConnection() |
|
12 | + { |
|
13 | + Illuminate\Database\Capsule\Manager::schema()->create('test', function (Blueprint $table) { |
|
14 | + $table->increments('id'); |
|
15 | + $table->string('email')->unique(); |
|
16 | + $table->timestamps(); |
|
17 | + }); |
|
18 | 18 | |
19 | - \Illuminate\Database\Capsule\Manager::table('test')->insert( |
|
20 | - [ |
|
21 | - 'email' => '[email protected]' |
|
22 | - ] |
|
23 | - ); |
|
19 | + \Illuminate\Database\Capsule\Manager::table('test')->insert( |
|
20 | + [ |
|
21 | + 'email' => '[email protected]' |
|
22 | + ] |
|
23 | + ); |
|
24 | 24 | |
25 | - $test = \Illuminate\Database\Capsule\Manager::table('test')->first(); |
|
26 | - $this->assertNotEmpty($test); |
|
27 | - \Illuminate\Database\Capsule\Manager::schema()->drop('test'); |
|
28 | - } |
|
25 | + $test = \Illuminate\Database\Capsule\Manager::table('test')->first(); |
|
26 | + $this->assertNotEmpty($test); |
|
27 | + \Illuminate\Database\Capsule\Manager::schema()->drop('test'); |
|
28 | + } |
|
29 | 29 | } |