Completed
Push — master ( 8a1f93...8358ba )
by Tomas Norre
13:47
created
Classes/Domain/Repository/GolfCourseRepository.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -36,50 +36,50 @@
 block discarded – undo
36 36
 class GolfCourseRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
37 37
 {
38 38
 
39
-    /**
40
-     * @param $countryUid
41
-     *
42
-     * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
43
-     */
44
-    public function findAllInCountry($countryUid)
45
-    {
46
-        /** @var QueryInterface $query */
47
-        $query = $this->createQuery();
39
+	/**
40
+	 * @param $countryUid
41
+	 *
42
+	 * @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
43
+	 */
44
+	public function findAllInCountry($countryUid)
45
+	{
46
+		/** @var QueryInterface $query */
47
+		$query = $this->createQuery();
48 48
 
49
-        $querySettings = $query->getQuerySettings();
50
-        $querySettings->setRespectStoragePage(false);
51
-        $querySettings->setIgnoreEnableFields(false);
49
+		$querySettings = $query->getQuerySettings();
50
+		$querySettings->setRespectStoragePage(false);
51
+		$querySettings->setIgnoreEnableFields(false);
52 52
 
53
-        $query->matching($query->equals('country', $countryUid));
54
-        $query->setOrderings(['name' => 'ASC']);
55
-        $query->setQuerySettings($querySettings);
53
+		$query->matching($query->equals('country', $countryUid));
54
+		$query->setOrderings(['name' => 'ASC']);
55
+		$query->setQuerySettings($querySettings);
56 56
 
57
-        return $query->execute();
58
-    }
57
+		return $query->execute();
58
+	}
59 59
 
60
-    /**
61
-     * @return array
62
-     */
63
-    public function findCountriesUidsInUse()
64
-    {
65
-        $uids = [];
66
-        $courses = $this->getDatabaseConnection()->exec_SELECTquery(
67
-            'DISTINCT country',
68
-            'tx_golfcourses_domain_model_golfcourse',
69
-            ''
70
-        );
60
+	/**
61
+	 * @return array
62
+	 */
63
+	public function findCountriesUidsInUse()
64
+	{
65
+		$uids = [];
66
+		$courses = $this->getDatabaseConnection()->exec_SELECTquery(
67
+			'DISTINCT country',
68
+			'tx_golfcourses_domain_model_golfcourse',
69
+			''
70
+		);
71 71
 
72
-        foreach ($courses as $course) {
73
-            $uids[] = $course['country'];
74
-        }
72
+		foreach ($courses as $course) {
73
+			$uids[] = $course['country'];
74
+		}
75 75
 
76
-        return $uids;
77
-    }
76
+		return $uids;
77
+	}
78 78
 
79
-    /**
80
-     * @return DatabaseConnection
81
-     */
82
-    protected function getDatabaseConnection() {
83
-        return $GLOBALS['TYPO3_DB'];
84
-    }
79
+	/**
80
+	 * @return DatabaseConnection
81
+	 */
82
+	protected function getDatabaseConnection() {
83
+		return $GLOBALS['TYPO3_DB'];
84
+	}
85 85
 }
86 86
\ No newline at end of file
Please login to merge, or discard this patch.