Completed
Push — master ( b819b4...8115f1 )
by Sherif
14:17
created
src/Modules/Reporting/Database/Seeds/ReportingDatabaseSeeder.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class ReportingDatabaseSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $this->call(ClearDataSeeder::class);
17
-        $this->call(ReportsTableSeeder::class);
18
-        $this->call(AssignRelationsSeeder::class);
19
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$this->call(ClearDataSeeder::class);
17
+		$this->call(ReportsTableSeeder::class);
18
+		$this->call(AssignRelationsSeeder::class);
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/Core/Database/Seeds/CoreDatabaseSeeder.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class CoreDatabaseSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $this->call(ClearDataSeeder::class);
17
-        $this->call(SettingsTableSeeder::class);
18
-        $this->call(AssignRelationsSeeder::class);
19
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$this->call(ClearDataSeeder::class);
17
+		$this->call(SettingsTableSeeder::class);
18
+		$this->call(AssignRelationsSeeder::class);
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/Core/Facades/Media.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class Media extends Facade
6 6
 {
7
-    protected static function getFacadeAccessor()
8
-    {
9
-        return 'Media';
10
-    }
7
+	protected static function getFacadeAccessor()
8
+	{
9
+		return 'Media';
10
+	}
11 11
 }
Please login to merge, or discard this patch.
src/Modules/Core/Facades/Core.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class Core extends Facade
6 6
 {
7
-    protected static function getFacadeAccessor()
8
-    {
9
-        return 'Core';
10
-    }
7
+	protected static function getFacadeAccessor()
8
+	{
9
+		return 'Core';
10
+	}
11 11
 }
Please login to merge, or discard this patch.
src/Modules/Core/Facades/ApiConsumer.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class ApiConsumer extends Facade
6 6
 {
7
-    protected static function getFacadeAccessor()
8
-    {
9
-        return 'ApiConsumer';
10
-    }
7
+	protected static function getFacadeAccessor()
8
+	{
9
+		return 'ApiConsumer';
10
+	}
11 11
 }
Please login to merge, or discard this patch.
src/Modules/Core/Traits/Translatable.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             return $values;
39 39
         }
40 40
 
41
-        if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
41
+        if ( ! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
42 42
             return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : '';
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -4,46 +4,46 @@
 block discarded – undo
4 4
 
5 5
 trait Translatable
6 6
 {
7
-    /**
8
-     * Create a new model instance that is existing.
9
-     *
10
-     * @param  array  $attributes
11
-     * @param  string|null  $connection
12
-     * @return static
13
-     */
14
-    public function newFromBuilder($attributes = [], $connection = null)
15
-    {
16
-        $model = parent::newFromBuilder($attributes, $connection);
17
-
18
-        foreach ($model->attributes as $key => $value) {
19
-            if (isset($this->translatable) && in_array($key, $this->translatable)) {
20
-                $model->$key = $this->getTranslatedAttribute($value);
21
-            }
22
-        }
23
-
24
-        return $model;
25
-    }
26
-
27
-    /**
28
-     * Returns a translatable model attribute based on the application's locale settings.
29
-     *
30
-     * @param $values
31
-     * @return string
32
-     */
33
-    protected function getTranslatedAttribute($values)
34
-    {
35
-        $values         = json_decode($values);
36
-        $primaryLocale  = \Session::get('locale');
37
-        $fallbackLocale = 'en';
38
-
39
-        if ($primaryLocale == 'all') {
40
-            return $values;
41
-        }
42
-
43
-        if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
44
-            return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : '';
45
-        }
46
-
47
-        return $primaryLocale == 'all' ? $values : $values->$primaryLocale;
48
-    }
7
+	/**
8
+	 * Create a new model instance that is existing.
9
+	 *
10
+	 * @param  array  $attributes
11
+	 * @param  string|null  $connection
12
+	 * @return static
13
+	 */
14
+	public function newFromBuilder($attributes = [], $connection = null)
15
+	{
16
+		$model = parent::newFromBuilder($attributes, $connection);
17
+
18
+		foreach ($model->attributes as $key => $value) {
19
+			if (isset($this->translatable) && in_array($key, $this->translatable)) {
20
+				$model->$key = $this->getTranslatedAttribute($value);
21
+			}
22
+		}
23
+
24
+		return $model;
25
+	}
26
+
27
+	/**
28
+	 * Returns a translatable model attribute based on the application's locale settings.
29
+	 *
30
+	 * @param $values
31
+	 * @return string
32
+	 */
33
+	protected function getTranslatedAttribute($values)
34
+	{
35
+		$values         = json_decode($values);
36
+		$primaryLocale  = \Session::get('locale');
37
+		$fallbackLocale = 'en';
38
+
39
+		if ($primaryLocale == 'all') {
40
+			return $values;
41
+		}
42
+
43
+		if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
44
+			return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : '';
45
+		}
46
+
47
+		return $primaryLocale == 'all' ? $values : $values->$primaryLocale;
48
+	}
49 49
 }
Please login to merge, or discard this patch.
src/Modules/Notifications/Resources/Lang/en/notifications.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * Here goes your notification messages.
7
-     */
5
+	/**
6
+	 * Here goes your notification messages.
7
+	 */
8 8
 
9 9
 ];
Please login to merge, or discard this patch.
src/Modules/Core/Interfaces/BaseFactoryInterface.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 interface BaseFactoryInterface
4 4
 {
5
-    /**
6
-     * Construct the repository class name based on
7
-     * the method name called, search in the
8
-     * given namespaces for the class and
9
-     * return an instance.
10
-     *
11
-     * @param  string $name the called method name
12
-     * @param  array  $arguments the method arguments
13
-     * @return object
14
-     */
15
-    public function __call($name, $arguments);
5
+	/**
6
+	 * Construct the repository class name based on
7
+	 * the method name called, search in the
8
+	 * given namespaces for the class and
9
+	 * return an instance.
10
+	 *
11
+	 * @param  string $name the called method name
12
+	 * @param  array  $arguments the method arguments
13
+	 * @return object
14
+	 */
15
+	public function __call($name, $arguments);
16 16
 }
Please login to merge, or discard this patch.
src/Modules/Core/Http/Resources/General.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 
7 7
 class General extends JsonResource
8 8
 {
9
-    /**
10
-     * Transform the resource into an array.
11
-     *
12
-     * @param Request $request
13
-     * @return array
14
-     */
15
-    public function toArray($request)
16
-    {
17
-        return ['status' => $this->resource ?? 'success'];
18
-    }
9
+	/**
10
+	 * Transform the resource into an array.
11
+	 *
12
+	 * @param Request $request
13
+	 * @return array
14
+	 */
15
+	public function toArray($request)
16
+	{
17
+		return ['status' => $this->resource ?? 'success'];
18
+	}
19 19
 }
Please login to merge, or discard this patch.